Skip to main content

Get Blank Invoice As JSON API

Introduction​

Print JSON for blank invoices using BLANK_INVOICE_TEMPLATE_NAME. Same general flow as single invoice JSON (customer load, line formatting, invoiceDetails with totals and amount in words) but invoiceDetails does not include the truck field.

Source: GenerateInvoiceAPI.getBlankInvoiceJSON (@Path("getBlankInvoiceAsJson")).

See also: Generate Invoice — all endpoints.


HTTP Endpoint​

| URL | /rest/generateinvoice/getBlankInvoiceAsJson | | Method | POST |


Request Body (JSON)​

FieldRequired
userNameYes
authKeyYes
branchYes
invoiceNumberYes

Response (top-level)​

KeyDescription
invoiceDetailsBLANK_INVOICE_TEMPLATE_NAME, currency, costs, words (no truck).
customerDetailsCustomer / single-invoice block.
firstPageDetailsLine array.

Headers: Access-Control-Allow-Origin: *


Example​

{
"userName": "alice",
"authKey": "k",
"branch": "default",
"invoiceNumber": "INV-BLANK-001"
}