The Get Customers API retrieves a paginated list of customers based on specified filters. This API allows searching, filtering by country and state, and sorting the results.
Your secret API key. Include it with every request.
Every query parameter below is optional. Combine as many as you need and append them to the endpoint as a query string. The example shows a few to get you started.
/v1/customers?search_query=<search_query>&country=<country>&page=<page>Search term to filter customers by name or other details
Country code in ISO 3166-1 alpha-2 format (e.g., 'US')
AFAXALDZASADAOAIAQAGARAMAWAUATAZBSBHBDBBBYBEBZBJBMBTBOBQBABWBVBRIOBNBGBFBICVKHCMCAKYCFTDCLCNCXCCCOKMCGCDCKCRHRCUCWCYCZDKDJDMDOECEGSVGQEREESZETFKFOFJFIFRGFPFTFGAGMGEDEGHGIGRGLGDGPGUGTGGGNGWGYHTHMVAHNHKHUISINIDIRIQIEIMILITCIJMJPJEJOKZKEKIKPKRKWKGLALVLBLSLRLYLILTLUMOMGMWMYMVMLMTMHMQMRMUYTMXFMMDMCMNMEMSMAMZMMNANRNPNLNCNZNINENGNUNFMKMPNOOMPKPWPSPAPGPYPEPHPNPLPTPRQARERORURWBLSHKNLCMFPMVCWSSMSTSASNRSSCSLSGSXSKSISBSOZAGSSSESLKSDSRSJSECHSYTWTJTZTHTLTGTKTOTTTNTRTMTCTVUGUAAEGBUSUMUYUZVUVEVNVGVIWFEHYEZMZWXKZZ_EUState or province code to filter customers
Filter customers by source (comma-separated)
SHOPIFYAPIFilter customers by connection ID (comma-separated)
conn_abc123conn_def456Comma-separated list of fields to sort results by.
created_atstreet_1street_2citystatepostal_codecountrystatusSuccessfully retrieved customers
The request is missing a valid x-api-key.
Entered an incorrect URL.
Query parameters failed validation, such as an out-of-range page number.
An unexpected server error occurred.