By calling the URL endpoint with the GET method, this endpoint returns a list of all purchase order IDs. If you want to get the ID of a specific purchase order, you need to define the NUMBER parameter in the URL.
Examples:
1. Get all Purchase Order IDs (call URL https://api.erpag.com/purchaseorders with GET method)
Result:
[
"20NLYPKW1BHYYX69",
"3D1GDHN341M0PZSD",
"GHTY74SF8765FDER",
"MMFHDT9E7CCTR23D"
]2. Get the ID for the Purchase Order whose NUMBER is PO-005231 (call URL https://api.erpag.com/purchaseorders?number=PO-005231 with GET method)
Result:
[
"3D1GDHN341M0PZSD"
]Note: Access to this API endpoint is allowed only for selected API User account using the API key and API password in the request header with the key name “Authorization” and key value “Basic base64encoded(api_key:api_password)“, or URL parameters ApiKey and ApiSecret for example https://api.erpag.com/purchaseorders?ApiKey=key_056a9spfg1qubg34e409ee233d&ApiSecret=sec_IKJ4Sc2G8jHfr3sHbxQwEfev-Az-1YaF
BLOCKLY SCRIPT