Create a sales invoice
Creates a sales invoice conforming to UBL 2.1 with PINT AE customization. See the right panel for request samples and response JSON.
Path parameters
Required data
Customer party objects — Complete accounting customer party with name, address, and tax scheme when required
Business profile identifier — Business profile ID of the supplier (in path)
Business profile identifier — Must exist in your organization
Line items — At least one document line with name, quantity, unit code, price, and classified tax category
VAT information — Tax category and scheme per line and for charges/allowances as applicable
System behavior
VAT rules are applied according to UAE VAT law
The sales invoice is recorded
Invoice status and transmission events are tracked
Validation rules
Response
Status code: 201 Created
The API returns an invoice object containing all request fields plus calculated fields.
System-generated fields
Calculated monetary totals
Additional response fields
Document lines in response
Each line includes calculated fields: base_amount, net_amount, total_amount, tax_amount. The price object in the response contains price_amount (instead of base_amount in the request).
Charges and allowances
Document-level charges and allowances are applied after line item totals
Line-level charges and allowances are applied per line item
All charges and allowances require a
tax_categoryfor proper VAT calculationThe reason code field uses UN/ECE Recommendation 20 codes (e.g.
FCfor freight charges,95for early payment discount,100for volume discount)
See the right panel for complete response examples.
