delete https://api.zenoti.com/v1/invoices//invoiceitems/
Use this API to delete a product from an invoice.
Provide unique identifiers of the invoice as invoice_id
and invoice_item_id
of the product you want to delete from the invoice and this API will delete that from the invoice.
Note: Comments are either mandatory or optional based on your configuration. If the comments are optional, then pass "comments" as an empty string ("") in the body of the API.
Response Details
Name | Type | Description |
---|---|---|
success | boolean | Status of the product deletion from the invoice. |
message | string | The message of the API |
error | object | Object containing the error information for the API. Check the error object for more info. |
error Object
code | message |
---|---|
602 | Cannot access. |
602 | Cannot access. |
438 | User doesn't have the permission to add the appointments. |
500 | Object reference is not set to an instance of an object. |
400 | The request is invalid. |
500 | Invoice not found. |
429 | invoice item passed is not found, invoice item id passed. |