PATCH
/businesses/{bid}/services/{id}Edit or hide a service
PATCH /businesses/{bid}/services/{id}
Requires the businesses scope.
A service is never deleted once it exists (appointments point at it): active: false takes it off the picker.
Path parameters
| Name | Type | Description | |
|---|---|---|---|
bid | string | required | Business id, from POST /businesses. |
id | string | required | Service id. |
Body
| Field | Type | Description | |
|---|---|---|---|
name | string | Required on create. ≤120 chars. | |
minutes | integer | 5..1440. Default 60. | |
priceAgorot | integer | Integer agorot (₪1 = 100). | |
priceMode | string | One of: gross, net. Default gross. | |
color | string | #RRGGBB | |
active | boolean | ||
sortOrder | integer |
Response
200: { "ok": true, … }
| Field | Type | Description | |
|---|---|---|---|
ok | boolean | required | |
service | Service | required | Something the business sells by the appointment. Picking it fills an appointment's length, price and title. |
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).