iotoms Docs

Get quotation PDF

GET
/api/v1/sales/quotations/{id}/pdf

Returns a link (pdfUrl) to the quotation's PDF, regenerating it from the merchant's template if the stored copy is out of date.

Authorization

BearerAuth
headerAuthorizationBearer <JWT>

Path Parameters

id*string

ID of the record (UUID).

Formatuuid

Header Parameters

X-TenantID*string

Your merchant's tenant code — the value typed in the Domain field on the iotoms login screen. See Concepts.

Response Body

OK

*/*
  1. response
status*string

Outcome of the call: SUCCESS when the request was processed; otherwise an error status.

message*string

Short human-readable message describing the outcome, e.g. which record was saved or why the call failed.

data?

Where to download the quotation PDF and which template produced it.

Example Request
curl -X GET 'https://beta.iotoms.com/api/v1/sales/quotations/497f6eca-6276-4993-bfeb-53cbbbba6f08/pdf' \  -H 'X-TenantID: your-tenant-code'
Example Response
{  "status": "string",  "message": "string",  "data": {    "quotationId": "98c8afab-b1d9-462f-9483-5a2dbf34985f",    "quoteNumber": "string",    "templateId": 0,    "templateVersion": 0,    "pdfUrl": "string",    "generatedAt": "string"  }}