_getPdf

Download a Pdf of a Purchase order.

Parameters

id

ID of the Purchase Order you want to download a Pdf of

Example

FM_api(
    'PurchaseOrder_getPdf',[
      'id'=>'304102`'
    ]
);

Result

On Success

{"ok":1,"base64":"aW5jb3JyZWN0IHBhc3N3b3Jk"}

On Failure

If there's no ID parameter or the chosen ID is less than 1

{"error":"missing or invalid parameter: id"}

If the chosen ID does not match any existing Purchase Order

{"error":"purchase order does not exist"}

Last updated