Generate an invoice PDF
POST
Renders a fresh invoice PDF for the transaction and returns its signed download link. Uses your active invoice template unless you pass templateId to pick a specific one.
How to use it
- Take the transactionId from Create a transaction from a cart or List transactions.
- Optionally choose a template from List report templates and pass it as templateId; otherwise the active invoice template is used.
- Download the PDF from the signed link in the response. Get the invoice PDF reuses the stored PDF only while it matches the active template version; otherwise it re-renders.
BearerAuthheader
AuthorizationBearer <JWT>transactionId*stringThe sale to render the invoice for, from List transactions.
Format
uuidtemplateId?integerOptional invoice report template to render with, from List report templates. Defaults to the active sales invoice template.
Format
int64OK
*/*- response
status*stringOutcome of the call: SUCCESS when the request worked, ERROR when it did not.
message*stringShort human-readable message describing the result, for logs or display; do not parse it.
data?|Key-value result. For PDF endpoints: pdfUrl (a temporary signed download link), templateId, templateVersion, generatedAt plus document keys such as dayCycleId.
Example Request
curl -X POST 'https://beta.iotoms.com/api/v1/transaction/transactions/497f6eca-6276-4993-bfeb-53cbbbba6f08/pdf'Example Response
{ "status": "string", "message": "string", "data": { "property1": {}, "property2": {} }}