get https://{shopdomain}.myshoplaza.com/openapi/2022-01/customers/count
Requires
read_customeraccess scope.
Retrieve the total number of customers in the shop.
This API is especially useful for:
- Getting the total count of customers in a shop.
 - Displaying customer metrics on dashboards or reports.
 - Verifying the number of customers in bulk operations.
 
Note: The operation is scoped to a specific shop, identified by its unique domain prefix (shopdomain), ensuring all queries are applied to the correct store.
Request Parameters
Public Request Parameters
Response Explanation
Public Response Parameters
Successful Response
| Field | Type | Example | Description | 
|---|---|---|---|
count | integer | 4 | Total number of customers. | 
Error Response
Error responses in the API can be represented using two different fields: errors and error. Both fields provide details about issues encountered during request processing. Below is an explanation of the fields with their respective examples and descriptions.
| Field | Type | Example | Description | 
|---|---|---|---|
errors | Email or Phone is already taken | ["No Context"] | A list of errors encountered during the request processing. | 
| Field | Type | Example | Description | 
|---|---|---|---|
error | String |  "store is not active" | Indicates an error encountered during the process | 
Error Detail
| Status Code | Message | Possible Reason | Example Response | 
|---|---|---|---|
| 400 | Bad Request | Invalid input format or request structure (e.g., missing required fields or incorrect data types). | Bad Request | 
| Unauthorized | The request is missing valid authentication credentials or the credentials provided are invalid. | Unauthorized | 
