put https://api.zenoti.com/v1/invoices//cancel
Use this API to cancel a service booking.
You must specify the invoice_id
parameter, and this API will cancel all the appointments and purchases associated with the invoice.
This API also allows guests to cancel service bookings of family members. Provided, there is a relationship defined in Zenoti and only the host can cancel the service booking of family members.
Response Details
Name | Type | Description |
---|---|---|
success | boolean | Indicates whether the cancellation is successful. |
is_charge_applied | boolean | Indicates whether a cancellation or no-show charge is applied. |
error | object | Object that contains error message and error code details. For more information, refer to the error Object table. |
error Object
code | message |
---|---|
602 | Cannot access. |
502 | payments are added to invoice, delete payments and retry. |
438 | cannot access. |
602 | User does not have access. |
400 | The request is invalid. |
428 | Request invoices are Invalid. |
502 | invoice doesn't have any appointments. |