Get Customer Count

Retrieve the total number of customers.

🔒

Requires read_customer access scope.

The Get Customer Count API allows developers retrieve the total number of customers in the shop.

This API is especially useful for:

  1. Getting the total count of customers in a shop.
  2. Displaying customer metrics on dashboards or reports.
  3. 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

FieldTypeExampleDescription
codestring"success"Status code of the response
messagestringDescriptive message of the response
data.countinteger4Total number of customers.

Error Response

FieldTypeExampleDescription
codestringInvalidParameterError http message
messagestring``Error message

API Structure Overview

Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!