Get document PDF
Returns the rendered PDF file for a document. The PDF uses the invoice templates and document settings configured on your Swipe account. Pass delivery_challan=1 to get a delivery-challan copy instead.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is an API key from the API Integration section of your dashboard. Keys are scoped to the company they are generated in — for testing, add a separate test company and generate the key there, so requests never touch your real books.
Path Parameters
The hash id of the document to be fetched
Query Parameters
Set to 1 if you want to get a delivery challan copy of the document
Response
File will be downloaded

