GET
/businesses/{bid}/partiesList parties
GET /businesses/{bid}/parties
Requires the businesses scope.
Path parameters
| Name | Type | Description | |
|---|---|---|---|
bid | string | required | Business id, from POST /businesses. |
Query parameters
| Name | Type | Description | |
|---|---|---|---|
kind | string | Filter by party kind. Omit for all. One of: customer, supplier, both. | |
stats | string | Adds stats: { documents, lastDocumentDate } to each party (drafts not counted). One of: 1. |
Response
200: { "ok": true, … }
| Field | Type | Description | |
|---|---|---|---|
ok | boolean | required | |
parties | array of Party | required |
Errors: 400, 401, 403, 404, 429. Every failure answers { "error", "reason", "hint", "param", "doc_url", "retryable", "request_id" }: branch on reason, and read hint for what to change (https://docs.billos.co.il/errors.md).