v1

latestOpenAPI 3.1.02026-07-2422707.0 MB

Add a product to an invoice

Use this API to add a product to an invoice.

put/v1/invoices/{invoice_id}/products

Path parameters

invoice_idstring required

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

Query parameters

productsstring required

Mandatory List of objects that contains the purchase details.

products[0].idstring required

Mandatory Unique identifier of the product.

products[0].quantityinteger

Optional Quantity of the product that is to be added to invoice.

products[0].sale_by_idstring

Optional Unique identifier of the employee who is selling the product.

Response

200

invoice_idstring

Example response

{
  "invoice_id": "1471fa74-eeb7-4209-a856-d8a20ab48bca"
}