Print purchase order
Print a purchase order
Parameter | Mandatory | Description | Examples | More Info |
---|---|---|---|---|
API | Yes | The API area | purchases.json | |
General | Yes | Parameters described in overview | see overview | Structure of an API call |
Action | Yes | The action to perform | purchaseinputprints -2096 | |
Purchase order | Yes | Purchase ID | purchase=10009372 |
Example requests:
Note: The number displayed after the action parameter is the internal ID of the requested HM reports layout used to build the document. To find the available template IDs see List print templates/files
example - returns -a Base64 Blob
http://<SERVER>/jsonapi/purchases.json?user=user&password=user&version=3.9&action=purchaseinputprints-2096&purchase=10009372
Example response:
{
"responsecode": 1,
"responsestatus": "OK",
"errorcode": 0,
"errormessage": "",
"responsemessage": "PDF created successfully.",
"warningmessage": "",
"success": true
"data": [
{
"expensesheetAttachmentBase64Blob": "JVBERi0xLjMKJeLjz9MKNSAwIG9iajw8L0ZpbHRlci9GbGF0ZURlY29kZgbiAKMDAwMDAwMDAzNjc0IDAwMDASb290IDEgMCBSL1NpemUgMTU+PgpzdGFydHhyZWYKOTcwNzkzCiUlRU9GCg==",
"expensesheetAttachmentFilename": "Expense Sheet1914.PDF"
}
]
}