Print purchase order (Create a file)

Print purchase order

Print a purchase order

ParameterMandatoryDescriptionExamplesMore Info
APIYesThe API areapurchases.json
GeneralYesParameters described in overviewuser=user&password=user&version=3.7v3.7 Overview
ActionYesThe action to performpurchaseinputfiles -2096
Purchase orderYesPurchase IDpurchase=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.7&action=purchaseinputfiles  -2096&purchase=10009372

Example response:

Downloads a PDF file to the browser