v1

latestOpenAPI 3.1.02026-07-2422707.0 MB

Delete a product from an invoice

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.

delete/v1/invoices/{invoice_id}/invoiceitems/{invoice_item_id}

Path parameters

invoice_idstring required

Mandatory Unique 32-character identifier of the invoice from which you want to delete a product.

invoice_item_idstring required

Mandatory Unique 32-character identifier of the invoice item or product that you want to delete from the invoice.

Request body

commentsstring

Comments from guest.

Response

200

successboolean
messagestring
{"stackTrail":"paths:/v1/invoices/{invoice_id}/invoiceitems/{invoice_item_id}:delete:responses:200:content:application/json:schema:properties:error","oasType":"schema","type":"unknown"}

Example response

{
  "success": true,
  "message": "null"
}