By calling the URL endpoint with the PUT method, this endpoint returns a JSON object with ID of updated Customer.
Example:
Put the JSON object in body request for Customer whose JSON looks like sample below (call URL https://api.erpag.com/customer/update?id=8BV635H91C3FGMF0 with PUT method and JSON body).
Body JSON sample:
{
"key": "04758",
"name": "Example Customer B",
"address1": "154 Sun str.",
"address2": null,
"city":"Hickory Hills",
"zipcode": "60457",
"tin":null,
"email":null
}Explanation:
- key – The Customer Key (optional)
- name – Customer Name (optional)
- address1 – Customer address 1 (optional)
- address2 – Customer address 2 (optional)
- city – Customer city (optional)
- zipcode – Customer ZIP code (optional)
- tin – Customer Tax Identification Number (TIN) (optional)
- email – Customer email address (optional)
Note: All provided data will overwrite an existing data with a new one.
Result:
{
"id": "8BV635H91C3FGMF0"
}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