v1
latestOpenAPI 3.1.02026-07-2422707.0 MBCreate an invoice for products
Use this API to generate an invoice after booking the required products.
post/v1/invoices/products
Query parameters
center_idstring required
Mandatory Unique identifier of the center.
guest_idstring required
Mandatory Unique identifier of the guest who is purchasing the product.
notesstring
Optional Specified notes will be added to the purchase.
productsstring required
Mandatory List of objects that contains purchase details.
products[0].idstring
Optional Unique identifier of the product.
products[0].quantityinteger
Optional Quantity of the product that is needed to be added to invoice.
products[0].sale_by_idstring
Optional Unique identifier of the employee who is selling the product.
created_by_idstring required
Mandatory Unique identifier of the employee who created the invoice.
Headers
application_namestring required
Name of the application
application_versionstring required
The version of the application
Request body
Response
200
Example response
{
"invoice_id": "1e023c27-6792-4cbb-b3e7-fbded3766ca9"
}