Create an invoice for products

Use this API to generate an invoice after booking the required products.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Response Details

nametypedescription
invoice_idguidUnique identifier of the invoice.
errorobjectObject that contains error message and error code details. For more information, refer to the error Object table.

error Object

codemessage
502request body is not supplied.
502Invalid center_id.
438cannot access.
502Invalid guest_id.
502Invalid quantity.
502Invalid sale_by_employee_id.
502unable to retrieve stock details of product.
502Invalid product id.
502only retail products are allowed for sale.
4023invoice create unsuccessful.
Query Params
string
required

Mandatory Unique identifier of the center.

string
required

Mandatory Unique identifier of the guest who is purchasing the product.

string

Optional Specified notes will be added to the purchase.

string
required

Mandatory List of objects that contains purchase details.

string

Optional Unique identifier of the product.

int32

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

string

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

string
required

Mandatory Unique identifier of the employee who created the invoice.

Body Params
json
Headers
string
required

Name of the application

string
required

The version of the application

Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json