Create Invoice
Invoices
Create Invoice
Create a sales invoice, purchase bill, or other document types via the BillClap API.
POST
Create Invoice
Create an invoice (or related document) for the business associated with your API token. The endpoint runs in a database transaction: party and line items are created or matched, totals are calculated, inventory and ledger entries are updated when applicable, and a shareable preview link is returned.
For full field reference, validation rules, and error codes, see the Create Invoice guide.
Your BillClap plan must include the API integration feature. See Authentication.
Request
Must be
application/json.API token from Settings → API Integration in the BillClap app.
Document type. Common values:
SALESINVOICE, QUOTATION, SALESRETURN, PURCHASEBILL, PURCHASERETURN, DELIVERYCHALLAN, ORDER, PURCHASEORDER, SELLORDER, SALEORDER.Invoice issue date (
YYYY-MM-DD).Payment due date (
YYYY-MM-DD).Amount received against the invoice. Cannot exceed the calculated total.
Customer or supplier details.
Line items. At least one entry with
product_name is required.Optional extra charges with tax.
Response
true on success.Human-readable success message.
Internal BillClap invoice id.
Shareable preview URL for the created document.
Application status code (
200 on success).