Back to Documentation
Invoices
The Invoice Object
Invoices are statements of amounts owed by a customer. Vylot automatically calculates all CGST, SGST, and IGST based on the customer's state code vs your business state code.
POST
/v1/invoicesCreate an invoice
Creates a new tax-compliant invoice. You must provide a valid customer ID and an array of items.
Parameters
customer_idstringRequiredThe ID of an existing customer.
itemsarrayRequiredA list of line items.
items[].product_idstringThe ID of an existing product.
items[].namestringRequired if product_id is omitted.
items[].unit_pricenumberRequired if product_id is omitted.
items[].qtyintegerRequiredThe quantity being sold.
items[].gst_ratenumberRequired if product_id is omitted. Total tax rate %.
payment_statusstringSet to 'PAID' or 'UNPAID'.
GET
/v1/invoicesList all invoices
Returns a paginated list of your invoices.
GET
/v1/invoices/:idRetrieve an invoice
Retrieves the details of an existing invoice, including its line items.
PATCH
/v1/invoices/:id/statusUpdate invoice status
Updates the status of an invoice.
Parameters
statusstringRequiredAllowed values: 'DRAFT', 'SENT', 'PAID', 'OVERDUE', 'VOID'.
DELETE
/v1/invoices/:idDelete an invoice
Deletes a draft invoice.