By calling the URL endpoint with the PUT method, this endpoint returns a JSON object with ID of updated Item.
Example:
Put the JSON object in body request for the item whose JSON looks like sample below (call URL https://api.erpag.com/item/update?id=DC105DLSS1CN7N5H with PUT method and JSON body).
Body JSON sample:
{
"sku": "00125-1",
"description": "test product B",
"uom": "pcs",
"image_url": "https://mycompany.example.com/images/product254157.png"
}Explanation:
sku – The Item SKU number (optional)
description – Item Description/Name (optional)
uom – Unit of measure (optional)
image_url – URL address of the product image (optional)
Result:
{
"id": "DC105DLSS1CN7N5H"
}Explanation:
id – ID of the updated Item
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/add?ApiKey=key_056a9spfg1qubg34e409ee233d&ApiSecret=sec_IKJ4Sc2G8jHfr3sHbxQwEfev-Az-1YaF