Skip to main content
GET
Use this endpoint to retrieve the details of all the customers.

Query Parameters

integer
The number of customer records to be retrieved from the system. The default value is 10. The maximum value is 100. This can be used for pagination in combination with skip.
integer
The number of customer records that must be skipped. The default value is 0. This can be used for pagination in combination with count.

Response Parameters

string
Indicates the type of entity.
string
Unique identifier of the customer. For example, cust_1Aa00000000004.
string
Customer’s name. Alphanumeric, with period (.), apostrophe (’), forward slash (/), at (@) and parentheses allowed. The name must be between 3-50 characters in length. For example, Gaurav Kumar.
string
The customer’s phone number. A maximum length of 15 characters including country code. For example, +919876543210.
string
The customer’s email address. A maximum length of 64 characters. For example, gaurav.kumar@example.com.
string
GST number linked to the customer. For example, 29XAbbA4369J1PA.
object
This is a key-value pair that can be used to store additional information about the entity. It can hold a maximum of 15 key-value pairs, 256 characters (maximum) each. For example, "note_key": "Beam me up Scotty”.
integer
UNIX timestamp, when the customer was created. For example, 1234567890.
object
The customer’s shipping address. An address object with line1, line2, city, state, country, and zipcode fields. Empty when none is set.

Errors

Code: 4xxThe API credentials passed in the API call differ from the ones generated on the Dashboard. Possible reasons:
  • Different keys for test mode and live modes.
  • Expired API key.
Solution: The API keys must be active and entered correctly with no whitespace before or after the keys.
Code: 400An invalid value was passed for the count query parameter. The API returns variants of this error depending on the input: The count must be at least 1. (for count=0 or negative values), The count may not be greater than 100. (for values above 100), or The parameter provided is not an integer (for non-integer values).Solution: Pass count as a positive integer between 1 and 100.
Code: 400A negative value was passed for the skip query parameter.Solution: Pass skip as a non-negative integer (0 or higher).
Code: 400The request contains a query parameter that is not part of the Fetch All Customers schema. Only count, skip, from and to are accepted.Solution: Remove any unknown query parameters from the request.