Get all customers
GET https://api.ecartapi.com/api/v2/customers
Returns a list of Customers. Optional filter parameters can be passed in.
More information about the ecommerce's resource.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
limit | string | Default value: 50. The maximum number of documents returned in the response | |
ids | string | Filter by the required identifier. | |
createdAt[from] | string | Filter orders by range. Requires createdAt[to]. Set the lower treshold. | |
createdAt[to] | string | Filter orders by range. Requires createdAt[from]. Set the upper treshold. | |
updatedAt[from] | string | Filter orders by range. Requires updatedAt[to]. Set the lower treshold. | |
updatedAt[to] | string | Filter orders by range. Requires updatedAt[from]. Set the upper treshold. | |
email | string | Filter results by email. | |
name | string | Filter results by name. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string |
RESPONSES
status: OK
{"success":true,"customers":[{"id":"1","email":"fake@email.com","firstName":"Jane","lastName":"Doe","status":{"id":null,"status":null},"note":null,"phone":"8111111111","currency":null,"addresses":[],"dates":{"createdAt":"2021-12-10T21:29:36Z","updatedAt":"2021-12-10T21:29:36Z"}}]}