By calling the URL endpoint with the GET method, this endpoint returns a product/service JSON object for the specific ID defined in the URL parameter.
Example:
Get the JSON object for the product/services whose ID is 3D1GDHN341M0PZSD (call URL https://api.erpag.com/item?id=3D1GDHN341M0PZSD with GET method)
Result:
{
"basicInfo": {
"sku": "0002",
"description": "Service A",
"eanUpc": "",
"uom": "pcs",
"active": true
},
"sellingPrice": 50,
"productCategory": {
"productType": "Service",
"category": "Default category",
"trademark": "Default trademark",
"taxCategory": "Default"
},
"billsOfMaterials": [],
"suppliers": [],
"inventory": [],
"serialNumbersLotNumbers": []
}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/item?ApiKey=key_056a9spfg1qubg34e409ee233d&ApiSecret=sec_IKJ4Sc2G8jHfr3sHbxQwEfev-Az-1YaF
BLOCKLY SCRIPT