iotoms Docs

Get the delivery note PDF

GET
/api/v1/transaction/transactions/{transactionId}/delivery-note

Returns a signed download link for the transaction's delivery note (delivery challan). If none exists yet it is created, which allocates a delivery note number; an existing PDF is re-rendered only if the active template has changed.

Authorization

BearerAuth
headerAuthorizationBearer <JWT>

Path Parameters

transactionId*string

The sale to fetch the delivery note for, from List transactions.

Formatuuid

Header Parameters

Response Body

OK

*/*
  1. response
status*string

Outcome of the call: SUCCESS when the request worked, ERROR when it did not.

message*string

Short 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 GET 'https://beta.iotoms.com/api/v1/transaction/transactions/497f6eca-6276-4993-bfeb-53cbbbba6f08/delivery-note'
Example Response
{  "status": "string",  "message": "string",  "data": {    "property1": {},    "property2": {}  }}