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 | purchaseinputfiles -2096 | |
Purchase order | Yes | Purchase ID | purchase=10008327 |
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 - downloads a fully formed document via the browser
http://<SERVER>/jsonapi/purchases.json?user=user&password=user&version=3.9&action=purchaseinputfiles -2096&purchase=10009372
Example response:
Downloads a PDF file to the browser