1. Home
  2. ERPAG
  3. API Script
  4. Get Customer IDs

Get Customer IDs

By calling the URL endpoint with the GET method, this endpoint returns a list of all customer IDs. If you want to get the ID of a specific customer, you need to define the EMAIL parameter in the URL.

Examples:

1. Get all Customer IDs (call URL https://api.erpag.com/customers with GET method)

Result:


2. Get the ID for the customer whose EMAIL is [email protected] (call URL https://api.erpag.com/[email protected] with GET method)

Result:

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/customers?ApiKey=key_056a9spfg1qubg34e409ee233d&ApiSecret=sec_IKJ4Sc2G8jHfr3sHbxQwEfev-Az-1YaF

How can we help?