Download a Pdf of a Purchase order.
ID of the Purchase Order you want to download a Pdf of
FM_api( 'PurchaseOrder_getPdf',[ 'id'=>'304102`' ] );
{"ok":1,"base64":"aW5jb3JyZWN0IHBhc3N3b3Jk"}
If there's no ID parameter or the chosen ID is less than 1
If the chosen ID does not match any existing Purchase Order
Last updated 3 years ago
{"error":"missing or invalid parameter: id"}
{"error":"purchase order does not exist"}