DELETE
/businesses/{bid}/parties/{id}Delete a party
DELETE /businesses/{bid}/parties/{id}
Requires the businesses scope.
For a card nothing in the books points at (a duplicate, a typo). A party with a document, a quote, a recurring plan or an expense is part of the record and is refused with 409 conflict naming what holds it: hide such a card with PATCH { "active": false }. Its contacts are deleted with it.
Path parameters
| Name | Type | Description | |
|---|---|---|---|
bid | string | required | Business id, from POST /businesses. |
id | string | required | Party id. |
Response
200: { "ok": true, … }
| Field | Type | Description | |
|---|---|---|---|
ok | boolean | ||
deleted | string | The party id. |
Errors: 400, 401, 403, 404, 409, 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).