Actions23
Customer → Get Many
AI-generatedSummary
Fetch many customer records with optional filtering and pagination.
Inputs
- shopUrl (required) — The full URL of the Shopify store (e.g., mycatalog.myshopify.com).
- accessToken (required) — Admin API access token used for authentication.
- returnAll — If true, returns all matching customers; otherwise limited by the limit parameter.
- limit — Maximum number of results to return when returnAll is false; must be between 1 and 250.
- options — Additional query options; can include 'query' for text search or 'ids' for a comma‑separated list of customer IDs.
Output shape
an array of customer objects
When returnAll is true the operation returns all customers matching the filter; otherwise up to limit items are returned. The result may be paginated only via the limit parameter, not via cursor; optional query or ids can further filter the results.
Examples
Example 1: Retrieve up to 20 customers whose names contain 'john'
shopUrl: mycatalog.myshopify.com, accessToken:
Example 2: Fetch specific customers by ID
shopUrl: mycatalog.myshopify.com, accessToken:
Example 3: Get all customers without a limit
shopUrl: mycatalog.myshopify.com, accessToken: