---
title: "List sold-by users for a Site"
method: GET
path: "/shop/sites/{siteId}/sold-by-users"
tags: ["Sites"]
---

# List sold-by users for a Site

`GET /shop/sites/{siteId}/sold-by-users`

Returns the combined list of Trybe users and `Practitioner`s who
can be selected as the "sold by" attribution on an `Order`,
`OrderLine`, or basket. The list is filtered to those that belong
to the named `Site`'s organisation.

Use the returned `id` and `type` values to populate `sold_by`
fields when creating or updating sales records.

## Response `200`

The sold-by entities were successfully retrieved.

- object
  - `data` SoldByUser[], required
    - `id` string, uuid, required — The ID of the underlying user or practitioner. Use this as the `sold_by` value when creating or updating orders, baskets, or order lines.
    - `name` string, required — Display name for the entity. For users this is the concatenated first and last name; for practitioners it is the practitioner record's `name`.
    - `type` 'user' | 'practitioner' | '', required — Discriminator indicating which underlying entity the row represents. An empty string is returned when the underlying model does not declare a type.

## Other responses

- `401` — The user is unauthenticated
- `404` — The resource couldn't be found

---

[API](https://skmtc.dev/try/apis/trybe-api.md) · [All operations](https://skmtc.dev/try/apis/trybe-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/try/trybe-api/revisions/f37f92702da5/schema)
