# customers - admin-graphql - QUERY Version: 2025-01 ## Description Returns a list of customers. ### Access Scopes ## Arguments * [after](/docs/api/admin-graphql/2025-01/scalars/String): String - The elements that come after the specified [cursor](https://shopify.dev/api/usage/pagination-graphql). * [before](/docs/api/admin-graphql/2025-01/scalars/String): String - The elements that come before the specified [cursor](https://shopify.dev/api/usage/pagination-graphql). * [first](/docs/api/admin-graphql/2025-01/scalars/Int): Int - The first `n` elements from the [paginated list](https://shopify.dev/api/usage/pagination-graphql). * [last](/docs/api/admin-graphql/2025-01/scalars/Int): Int - The last `n` elements from the [paginated list](https://shopify.dev/api/usage/pagination-graphql). * [query](/docs/api/admin-graphql/2025-01/scalars/String): String - A filter made up of terms, connectives, modifiers, and comparators. | name | type | description | acceptable_values | default_value | example_use | | ---- | ---- | ---- | ---- | ---- | ---- | | default | string | Filter by a case-insensitive search of multiple fields in a document. | | | - `query=Bob Norman`<br/> - `query=title:green hoodie` | | email | string | The customer's email address, used to communicate information about orders and for the purposes of email marketing campaigns. You can use a wildcard value to filter the query by customers who have an email address specified. | | | - `email:bo.wang@example.com`<br/> - `email:*` | | id | id | Filter by `id` range. | | | - `id:1234`<br/> - `id:>=1234`<br/> - `id:<=1234` | | phone | string | The phone number of the customer, used to communicate information about orders and for the purposes of SMS marketing campaigns. You can use a wildcard value to filter the query by customers who have a phone number specified. | | | - `phone:+18005550100`<br/> - `phone:*` | | updated_at | time | The date and time, matching a whole day, when the customer's information was last updated. | | | - `updated_at:2024-01-01T00:00:00Z`<br/> - `updated_at:<now`<br/> - `updated_at:<=2024` | You can apply one or more filters to a query. Learn more about [Shopify API search syntax](https://shopify.dev/api/usage/search-syntax). * [reverse](/docs/api/admin-graphql/2025-01/scalars/Boolean): Boolean - Reverse the order of the underlying list. * [sortKey](/docs/api/admin-graphql/2025-01/enums/CustomerSortKeys): CustomerSortKeys - Sort the underlying list using a key. If your query is slow or returns an error, then [try specifying a sort key that matches the field used in the search](https://shopify.dev/api/usage/pagination-graphql#search-performance-considerations). ## Returns * [edges](/docs/api/admin-graphql/2025-01/objects/CustomerEdge): CustomerEdge! The connection between the node and its parent. Each edge contains a minimum of the edge's cursor and the node. * [nodes](/docs/api/admin-graphql/2025-01/objects/Customer): Customer! A list of nodes that are contained in CustomerEdge. You can fetch data about an individual node, or you can follow the edges to fetch data about a collection of related nodes. At each node, you specify the fields that you want to retrieve. * [pageInfo](/docs/api/admin-graphql/2025-01/objects/PageInfo): PageInfo! An object that’s used to retrieve [cursor information](https://shopify.dev/api/usage/pagination-graphql) about the current page. ## Examples ### Get all customers in Canada Curl example: "curl -X POST \\\nhttps://your-development-store.myshopify.com/admin/api/2025-01/graphql.json \\\n-H 'Content-Type: application/json' \\\n-H 'X-Shopify-Access-Token: {access_token}' \\\n-d '{\n\"query\": \"query { customers(first: 5, query: \\\"country:canada\\\") { edges { node { id } } } }\"\n}'\n" Node example: "const client = new shopify.clients.Graphql({session});\nconst data = await client.query({\n data: `query {\n customers(first: 5, query: \"country:canada\") {\n edges {\n node {\n id\n }\n }\n }\n }`,\n});\n" Ruby example: "session = ShopifyAPI::Auth::Session.new(\n shop: \"your-development-store.myshopify.com\",\n access_token: access_token\n)\nclient = ShopifyAPI::Clients::Graphql::Admin.new(\n session: session\n)\n\nquery = <<~QUERY\n query {\n customers(first: 5, query: \"country:canada\") {\n edges {\n node {\n id\n }\n }\n }\n }\nQUERY\n\nresponse = client.query(query: query)\n" Remix example: "const { admin } = await authenticate.admin(request);\n\nconst response = await admin.graphql(\n `#graphql\n query {\n customers(first: 5, query: \"country:canada\") {\n edges {\n node {\n id\n }\n }\n }\n }`,\n);\n\nconst data = await response.json();\n" Graphql query: "query {\n customers(first: 5, query: \"country:canada\") {\n edges {\n node {\n id\n }\n }\n }\n}" #### Graphql Input null #### Graphql Response { "data": { "customers": { "edges": [ { "node": { "id": "gid://shopify/Customer/105906728" } }, { "node": { "id": "gid://shopify/Customer/408913340" } }, { "node": { "id": "gid://shopify/Customer/544365967" } }, { "node": { "id": "gid://shopify/Customer/554456816" } }, { "node": { "id": "gid://shopify/Customer/624407574" } } ] } } } ### Get the first ten customers Curl example: "curl -X POST \\\nhttps://your-development-store.myshopify.com/admin/api/2025-01/graphql.json \\\n-H 'Content-Type: application/json' \\\n-H 'X-Shopify-Access-Token: {access_token}' \\\n-d '{\n\"query\": \"query { customers(first: 10) { edges { node { id } } } }\"\n}'\n" Node example: "const client = new shopify.clients.Graphql({session});\nconst data = await client.query({\n data: `query {\n customers(first: 10) {\n edges {\n node {\n id\n }\n }\n }\n }`,\n});\n" Ruby example: "session = ShopifyAPI::Auth::Session.new(\n shop: \"your-development-store.myshopify.com\",\n access_token: access_token\n)\nclient = ShopifyAPI::Clients::Graphql::Admin.new(\n session: session\n)\n\nquery = <<~QUERY\n query {\n customers(first: 10) {\n edges {\n node {\n id\n }\n }\n }\n }\nQUERY\n\nresponse = client.query(query: query)\n" Remix example: "const { admin } = await authenticate.admin(request);\n\nconst response = await admin.graphql(\n `#graphql\n query {\n customers(first: 10) {\n edges {\n node {\n id\n }\n }\n }\n }`,\n);\n\nconst data = await response.json();\n" Graphql query: "query {\n customers(first: 10) {\n edges {\n node {\n id\n }\n }\n }\n}" #### Graphql Input null #### Graphql Response { "data": { "customers": { "edges": [ { "node": { "id": "gid://shopify/Customer/56501169" } }, { "node": { "id": "gid://shopify/Customer/105906728" } }, { "node": { "id": "gid://shopify/Customer/305367469" } }, { "node": { "id": "gid://shopify/Customer/317070273" } }, { "node": { "id": "gid://shopify/Customer/324586928" } }, { "node": { "id": "gid://shopify/Customer/352184960" } }, { "node": { "id": "gid://shopify/Customer/408913340" } }, { "node": { "id": "gid://shopify/Customer/544365967" } }, { "node": { "id": "gid://shopify/Customer/554122808" } }, { "node": { "id": "gid://shopify/Customer/554456816" } } ] } } } ### Get the first ten customers updated after December 1, 2019 Curl example: "curl -X POST \\\nhttps://your-development-store.myshopify.com/admin/api/2025-01/graphql.json \\\n-H 'Content-Type: application/json' \\\n-H 'X-Shopify-Access-Token: {access_token}' \\\n-d '{\n\"query\": \"query { customers(first: 10, query: \\\"updated_at:>2019-12-01\\\") { edges { node { id updatedAt } } } }\"\n}'\n" Node example: "const client = new shopify.clients.Graphql({session});\nconst data = await client.query({\n data: `query {\n customers(first: 10, query: \"updated_at:>2019-12-01\") {\n edges {\n node {\n id\n updatedAt\n }\n }\n }\n }`,\n});\n" Ruby example: "session = ShopifyAPI::Auth::Session.new(\n shop: \"your-development-store.myshopify.com\",\n access_token: access_token\n)\nclient = ShopifyAPI::Clients::Graphql::Admin.new(\n session: session\n)\n\nquery = <<~QUERY\n query {\n customers(first: 10, query: \"updated_at:>2019-12-01\") {\n edges {\n node {\n id\n updatedAt\n }\n }\n }\n }\nQUERY\n\nresponse = client.query(query: query)\n" Remix example: "const { admin } = await authenticate.admin(request);\n\nconst response = await admin.graphql(\n `#graphql\n query {\n customers(first: 10, query: \"updated_at:>2019-12-01\") {\n edges {\n node {\n id\n updatedAt\n }\n }\n }\n }`,\n);\n\nconst data = await response.json();\n" Graphql query: "query {\n customers(first: 10, query: \"updated_at:>2019-12-01\") {\n edges {\n node {\n id\n updatedAt\n }\n }\n }\n}" #### Graphql Input null #### Graphql Response { "data": { "customers": { "edges": [ { "node": { "id": "gid://shopify/Customer/56501169", "updatedAt": "2024-11-04T18:56:43Z" } }, { "node": { "id": "gid://shopify/Customer/105906728", "updatedAt": "2024-11-04T18:56:43Z" } }, { "node": { "id": "gid://shopify/Customer/305367469", "updatedAt": "2024-11-04T18:56:43Z" } }, { "node": { "id": "gid://shopify/Customer/317070273", "updatedAt": "2024-11-04T18:56:43Z" } }, { "node": { "id": "gid://shopify/Customer/324586928", "updatedAt": "2024-11-04T18:56:43Z" } }, { "node": { "id": "gid://shopify/Customer/352184960", "updatedAt": "2024-11-04T18:56:43Z" } }, { "node": { "id": "gid://shopify/Customer/408913340", "updatedAt": "2024-11-04T18:56:43Z" } }, { "node": { "id": "gid://shopify/Customer/554456816", "updatedAt": "2024-11-04T18:56:43Z" } }, { "node": { "id": "gid://shopify/Customer/567375318", "updatedAt": "2024-11-04T18:56:43Z" } }, { "node": { "id": "gid://shopify/Customer/624407574", "updatedAt": "2024-11-04T18:56:43Z" } } ] } } } ### Get the first ten customers with an enabled customer account Curl example: "curl -X POST \\\nhttps://your-development-store.myshopify.com/admin/api/2025-01/graphql.json \\\n-H 'Content-Type: application/json' \\\n-H 'X-Shopify-Access-Token: {access_token}' \\\n-d '{\n\"query\": \"query { customers(first: 10, query: \\\"state:'\\''ENABLED'\\''\\\") { edges { node { id state } } } }\"\n}'\n" Node example: "const client = new shopify.clients.Graphql({session});\nconst data = await client.query({\n data: `query {\n customers(first: 10, query: \"state:'ENABLED'\") {\n edges {\n node {\n id\n state\n }\n }\n }\n }`,\n});\n" Ruby example: "session = ShopifyAPI::Auth::Session.new(\n shop: \"your-development-store.myshopify.com\",\n access_token: access_token\n)\nclient = ShopifyAPI::Clients::Graphql::Admin.new(\n session: session\n)\n\nquery = <<~QUERY\n query {\n customers(first: 10, query: \"state:'ENABLED'\") {\n edges {\n node {\n id\n state\n }\n }\n }\n }\nQUERY\n\nresponse = client.query(query: query)\n" Remix example: "const { admin } = await authenticate.admin(request);\n\nconst response = await admin.graphql(\n `#graphql\n query {\n customers(first: 10, query: \"state:'ENABLED'\") {\n edges {\n node {\n id\n state\n }\n }\n }\n }`,\n);\n\nconst data = await response.json();\n" Graphql query: "query {\n customers(first: 10, query: \"state:'ENABLED'\") {\n edges {\n node {\n id\n state\n }\n }\n }\n}" #### Graphql Input null #### Graphql Response { "data": { "customers": { "edges": [ { "node": { "id": "gid://shopify/Customer/324586928", "state": "ENABLED" } }, { "node": { "id": "gid://shopify/Customer/544365967", "state": "ENABLED" } }, { "node": { "id": "gid://shopify/Customer/554122808", "state": "ENABLED" } }, { "node": { "id": "gid://shopify/Customer/624407574", "state": "ENABLED" } }, { "node": { "id": "gid://shopify/Customer/649400230", "state": "ENABLED" } }, { "node": { "id": "gid://shopify/Customer/649509010", "state": "ENABLED" } }, { "node": { "id": "gid://shopify/Customer/839649557", "state": "ENABLED" } }, { "node": { "id": "gid://shopify/Customer/1018520244", "state": "ENABLED" } } ] } } } ### Retrieves a list of customers Curl example: "curl -X POST \\\nhttps://your-development-store.myshopify.com/admin/api/2025-01/graphql.json \\\n-H 'Content-Type: application/json' \\\n-H 'X-Shopify-Access-Token: {access_token}' \\\n-d '{\n\"query\": \"query CustomerList { customers(first: 50) { nodes { id firstName lastName email phone createdAt updatedAt numberOfOrders state amountSpent { amount currencyCode } lastOrder { id name } note verifiedEmail multipassIdentifier taxExempt tags addresses { id firstName lastName company address1 address2 city province country zip phone name provinceCode countryCodeV2 } defaultAddress { id firstName lastName company address1 address2 city province country zip phone name provinceCode countryCodeV2 } taxExemptions emailMarketingConsent { marketingState marketingOptInLevel consentUpdatedAt } smsMarketingConsent { consentCollectedFrom consentUpdatedAt marketingOptInLevel marketingState } } } }\"\n}'\n" Node example: "const client = new shopify.clients.Graphql({session});\nconst data = await client.query({\n data: `query CustomerList {\n customers(first: 50) {\n nodes {\n id\n firstName\n lastName\n email\n phone\n createdAt\n updatedAt\n numberOfOrders\n state\n amountSpent {\n amount\n currencyCode\n }\n lastOrder {\n id\n name\n }\n note\n verifiedEmail\n multipassIdentifier\n taxExempt\n tags\n addresses {\n id\n firstName\n lastName\n company\n address1\n address2\n city\n province\n country\n zip\n phone\n name\n provinceCode\n countryCodeV2\n }\n defaultAddress {\n id\n firstName\n lastName\n company\n address1\n address2\n city\n province\n country\n zip\n phone\n name\n provinceCode\n countryCodeV2\n }\n taxExemptions\n emailMarketingConsent {\n marketingState\n marketingOptInLevel\n consentUpdatedAt\n }\n smsMarketingConsent {\n consentCollectedFrom\n consentUpdatedAt\n marketingOptInLevel\n marketingState\n }\n }\n }\n }`,\n});\n" Ruby example: "session = ShopifyAPI::Auth::Session.new(\n shop: \"your-development-store.myshopify.com\",\n access_token: access_token\n)\nclient = ShopifyAPI::Clients::Graphql::Admin.new(\n session: session\n)\n\nquery = <<~QUERY\n query CustomerList {\n customers(first: 50) {\n nodes {\n id\n firstName\n lastName\n email\n phone\n createdAt\n updatedAt\n numberOfOrders\n state\n amountSpent {\n amount\n currencyCode\n }\n lastOrder {\n id\n name\n }\n note\n verifiedEmail\n multipassIdentifier\n taxExempt\n tags\n addresses {\n id\n firstName\n lastName\n company\n address1\n address2\n city\n province\n country\n zip\n phone\n name\n provinceCode\n countryCodeV2\n }\n defaultAddress {\n id\n firstName\n lastName\n company\n address1\n address2\n city\n province\n country\n zip\n phone\n name\n provinceCode\n countryCodeV2\n }\n taxExemptions\n emailMarketingConsent {\n marketingState\n marketingOptInLevel\n consentUpdatedAt\n }\n smsMarketingConsent {\n consentCollectedFrom\n consentUpdatedAt\n marketingOptInLevel\n marketingState\n }\n }\n }\n }\nQUERY\n\nresponse = client.query(query: query)\n" Remix example: "const { admin } = await authenticate.admin(request);\n\nconst response = await admin.graphql(\n `#graphql\n query CustomerList {\n customers(first: 50) {\n nodes {\n id\n firstName\n lastName\n email\n phone\n createdAt\n updatedAt\n numberOfOrders\n state\n amountSpent {\n amount\n currencyCode\n }\n lastOrder {\n id\n name\n }\n note\n verifiedEmail\n multipassIdentifier\n taxExempt\n tags\n addresses {\n id\n firstName\n lastName\n company\n address1\n address2\n city\n province\n country\n zip\n phone\n name\n provinceCode\n countryCodeV2\n }\n defaultAddress {\n id\n firstName\n lastName\n company\n address1\n address2\n city\n province\n country\n zip\n phone\n name\n provinceCode\n countryCodeV2\n }\n taxExemptions\n emailMarketingConsent {\n marketingState\n marketingOptInLevel\n consentUpdatedAt\n }\n smsMarketingConsent {\n consentCollectedFrom\n consentUpdatedAt\n marketingOptInLevel\n marketingState\n }\n }\n }\n }`,\n);\n\nconst data = await response.json();\n" Graphql query: "query CustomerList {\n customers(first: 50) {\n nodes {\n id\n firstName\n lastName\n email\n phone\n createdAt\n updatedAt\n numberOfOrders\n state\n amountSpent {\n amount\n currencyCode\n }\n lastOrder {\n id\n name\n }\n note\n verifiedEmail\n multipassIdentifier\n taxExempt\n tags\n addresses {\n id\n firstName\n lastName\n company\n address1\n address2\n city\n province\n country\n zip\n phone\n name\n provinceCode\n countryCodeV2\n }\n defaultAddress {\n id\n firstName\n lastName\n company\n address1\n address2\n city\n province\n country\n zip\n phone\n name\n provinceCode\n countryCodeV2\n }\n taxExemptions\n emailMarketingConsent {\n marketingState\n marketingOptInLevel\n consentUpdatedAt\n }\n smsMarketingConsent {\n consentCollectedFrom\n consentUpdatedAt\n marketingOptInLevel\n marketingState\n }\n }\n }\n}" #### Graphql Input null #### Graphql Response { "data": { "customers": { "nodes": [ { "id": "gid://shopify/Customer/56501169", "firstName": "Jenny", "lastName": "Test", "email": "jennytest@b2b.example.com", "phone": "+13125551219", "createdAt": "2024-11-04T18:56:43Z", "updatedAt": "2024-11-04T18:56:43Z", "numberOfOrders": "0", "state": "DISABLED", "amountSpent": { "amount": "0.0", "currencyCode": "USD" }, "lastOrder": null, "note": null, "verifiedEmail": true, "multipassIdentifier": null, "taxExempt": false, "tags": [], "addresses": [], "defaultAddress": null, "taxExemptions": [], "emailMarketingConsent": { "marketingState": "SUBSCRIBED", "marketingOptInLevel": "SINGLE_OPT_IN", "consentUpdatedAt": "2005-06-16T15:00:11Z" }, "smsMarketingConsent": null }, { "id": "gid://shopify/Customer/105906728", "firstName": "John", "lastName": "Smith", "email": "johnsmith@example.com", "phone": "+16134504532", "createdAt": "2024-11-04T18:56:43Z", "updatedAt": "2024-11-04T18:56:43Z", "numberOfOrders": "0", "state": "DISABLED", "amountSpent": { "amount": "0.0", "currencyCode": "USD" }, "lastOrder": null, "note": null, "verifiedEmail": true, "multipassIdentifier": null, "taxExempt": false, "tags": [], "addresses": [ { "id": "gid://shopify/MailingAddress/105906728?model_name=CustomerAddress", "firstName": "John", "lastName": "Smith", "company": null, "address1": "124 Big Green St", "address2": "", "city": "Ottawa", "province": "Ontario", "country": "Canada", "zip": "K2H7A8", "phone": "+1(613)555-1212", "name": "John Smith", "provinceCode": "ON", "countryCodeV2": "CA" } ], "defaultAddress": { "id": "gid://shopify/MailingAddress/105906728?model_name=CustomerAddress", "firstName": "John", "lastName": "Smith", "company": null, "address1": "124 Big Green St", "address2": "", "city": "Ottawa", "province": "Ontario", "country": "Canada", "zip": "K2H7A8", "phone": "+1(613)555-1212", "name": "John Smith", "provinceCode": "ON", "countryCodeV2": "CA" }, "taxExemptions": [ "CA_STATUS_CARD_EXEMPTION", "US_CO_RESELLER_EXEMPTION" ], "emailMarketingConsent": { "marketingState": "NOT_SUBSCRIBED", "marketingOptInLevel": null, "consentUpdatedAt": "2004-06-13T15:57:11Z" }, "smsMarketingConsent": { "consentCollectedFrom": "OTHER", "consentUpdatedAt": "2021-06-16T17:31:44Z", "marketingOptInLevel": "SINGLE_OPT_IN", "marketingState": "SUBSCRIBED" } }, { "id": "gid://shopify/Customer/305367469", "firstName": "Test", "lastName": "Customer", "email": null, "phone": null, "createdAt": "2024-11-04T18:56:43Z", "updatedAt": "2024-11-04T18:56:43Z", "numberOfOrders": "0", "state": "DISABLED", "amountSpent": { "amount": "0.0", "currencyCode": "USD" }, "lastOrder": null, "note": null, "verifiedEmail": true, "multipassIdentifier": null, "taxExempt": false, "tags": [], "addresses": [], "defaultAddress": null, "taxExemptions": [], "emailMarketingConsent": null, "smsMarketingConsent": null }, { "id": "gid://shopify/Customer/317070273", "firstName": "Bob", "lastName": "Norman", "email": null, "phone": "+16134504538", "createdAt": "2024-11-04T18:56:43Z", "updatedAt": "2024-11-04T18:56:43Z", "numberOfOrders": "0", "state": "DISABLED", "amountSpent": { "amount": "0.0", "currencyCode": "USD" }, "lastOrder": null, "note": null, "verifiedEmail": true, "multipassIdentifier": null, "taxExempt": false, "tags": [], "addresses": [ { "id": "gid://shopify/MailingAddress/317070273?model_name=CustomerAddress", "firstName": null, "lastName": null, "company": null, "address1": "Chestnut Street 92", "address2": "", "city": "Louisville", "province": "KY", "country": "US", "zip": "40202", "phone": "555-625-1199", "name": "", "provinceCode": "KY", "countryCodeV2": "US" } ], "defaultAddress": { "id": "gid://shopify/MailingAddress/317070273?model_name=CustomerAddress", "firstName": null, "lastName": null, "company": null, "address1": "Chestnut Street 92", "address2": "", "city": "Louisville", "province": "KY", "country": "US", "zip": "40202", "phone": "555-625-1199", "name": "", "provinceCode": "KY", "countryCodeV2": "US" }, "taxExemptions": [], "emailMarketingConsent": null, "smsMarketingConsent": { "consentCollectedFrom": "OTHER", "consentUpdatedAt": "2021-06-16T17:31:44Z", "marketingOptInLevel": "SINGLE_OPT_IN", "marketingState": "SUBSCRIBED" } }, { "id": "gid://shopify/Customer/324586928", "firstName": "B2B", "lastName": "Customer", "email": "b2b@example.com", "phone": "+13125551213", "createdAt": "2024-11-04T18:56:43Z", "updatedAt": "2024-11-04T18:56:43Z", "numberOfOrders": "1", "state": "ENABLED", "amountSpent": { "amount": "32.4", "currencyCode": "USD" }, "lastOrder": null, "note": null, "verifiedEmail": true, "multipassIdentifier": null, "taxExempt": false, "tags": [], "addresses": [], "defaultAddress": null, "taxExemptions": [], "emailMarketingConsent": { "marketingState": "SUBSCRIBED", "marketingOptInLevel": "SINGLE_OPT_IN", "consentUpdatedAt": "2005-06-16T15:00:11Z" }, "smsMarketingConsent": null }, { "id": "gid://shopify/Customer/352184960", "firstName": "Jenny", "lastName": "Doe", "email": "jennydoe@b2bmigration.com", "phone": null, "createdAt": "2024-11-04T18:56:43Z", "updatedAt": "2024-11-04T18:56:43Z", "numberOfOrders": "0", "state": "DISABLED", "amountSpent": { "amount": "0.0", "currencyCode": "USD" }, "lastOrder": null, "note": null, "verifiedEmail": true, "multipassIdentifier": null, "taxExempt": false, "tags": [], "addresses": [], "defaultAddress": null, "taxExemptions": [], "emailMarketingConsent": { "marketingState": "NOT_SUBSCRIBED", "marketingOptInLevel": null, "consentUpdatedAt": null }, "smsMarketingConsent": null }, { "id": "gid://shopify/Customer/408913340", "firstName": "John", "lastName": "Doe", "email": "john@doe.com", "phone": "+16134504534", "createdAt": "2024-11-04T18:56:43Z", "updatedAt": "2024-11-04T18:56:43Z", "numberOfOrders": "0", "state": "DISABLED", "amountSpent": { "amount": "0.0", "currencyCode": "USD" }, "lastOrder": null, "note": null, "verifiedEmail": true, "multipassIdentifier": null, "taxExempt": false, "tags": [], "addresses": [ { "id": "gid://shopify/MailingAddress/408913340?model_name=CustomerAddress", "firstName": "John", "lastName": "Doe", "company": null, "address1": "123 Amoebobacterieae St", "address2": null, "city": "Ottawa", "province": "Ontario", "country": "Canada", "zip": "K2P0V6", "phone": "+16134504534", "name": "John Doe", "provinceCode": "ON", "countryCodeV2": "CA" } ], "defaultAddress": { "id": "gid://shopify/MailingAddress/408913340?model_name=CustomerAddress", "firstName": "John", "lastName": "Doe", "company": null, "address1": "123 Amoebobacterieae St", "address2": null, "city": "Ottawa", "province": "Ontario", "country": "Canada", "zip": "K2P0V6", "phone": "+16134504534", "name": "John Doe", "provinceCode": "ON", "countryCodeV2": "CA" }, "taxExemptions": [ "US_AZ_RESELLER_EXEMPTION" ], "emailMarketingConsent": { "marketingState": "SUBSCRIBED", "marketingOptInLevel": "SINGLE_OPT_IN", "consentUpdatedAt": "2005-06-16T15:00:11Z" }, "smsMarketingConsent": null }, { "id": "gid://shopify/Customer/544365967", "firstName": "Bob", "lastName": "Bobsen", "email": "bob@example.com", "phone": "+13125551212", "createdAt": "2005-06-15T15:57:11Z", "updatedAt": "2005-06-16T15:57:11Z", "numberOfOrders": "25", "state": "ENABLED", "amountSpent": { "amount": "8305.6", "currencyCode": "USD" }, "lastOrder": null, "note": null, "verifiedEmail": true, "multipassIdentifier": null, "taxExempt": false, "tags": [ "Bob", "Canadian", "Léon", "Noël" ], "addresses": [ { "id": "gid://shopify/MailingAddress/544365967?model_name=CustomerAddress", "firstName": "Bob", "lastName": "Bobsen", "company": "", "address1": "123 Amoebobacterieae St", "address2": "", "city": "Ottawa", "province": "Ontario", "country": "Canada", "zip": "K2P0V6", "phone": "+1(613)555-1212", "name": "Bob Bobsen", "provinceCode": "ON", "countryCodeV2": "CA" } ], "defaultAddress": { "id": "gid://shopify/MailingAddress/544365967?model_name=CustomerAddress", "firstName": "Bob", "lastName": "Bobsen", "company": "", "address1": "123 Amoebobacterieae St", "address2": "", "city": "Ottawa", "province": "Ontario", "country": "Canada", "zip": "K2P0V6", "phone": "+1(613)555-1212", "name": "Bob Bobsen", "provinceCode": "ON", "countryCodeV2": "CA" }, "taxExemptions": [], "emailMarketingConsent": { "marketingState": "SUBSCRIBED", "marketingOptInLevel": "SINGLE_OPT_IN", "consentUpdatedAt": "2005-06-16T15:00:11Z" }, "smsMarketingConsent": { "consentCollectedFrom": "OTHER", "consentUpdatedAt": "2021-06-16T17:31:44Z", "marketingOptInLevel": "SINGLE_OPT_IN", "marketingState": "SUBSCRIBED" } }, { "id": "gid://shopify/Customer/554122808", "firstName": "Bob", "lastName": "Bobsen", "email": "test_remove@example.com", "phone": "+13125551212", "createdAt": "2005-06-15T15:57:11Z", "updatedAt": "2005-06-16T15:57:11Z", "numberOfOrders": "0", "state": "ENABLED", "amountSpent": { "amount": "0.0", "currencyCode": "USD" }, "lastOrder": null, "note": null, "verifiedEmail": true, "multipassIdentifier": null, "taxExempt": false, "tags": [], "addresses": [], "defaultAddress": { "id": "gid://shopify/MailingAddress/544365967?model_name=CustomerAddress", "firstName": "Bob", "lastName": "Bobsen", "company": "", "address1": "123 Amoebobacterieae St", "address2": "", "city": "Ottawa", "province": "Ontario", "country": "Canada", "zip": "K2P0V6", "phone": "+1(613)555-1212", "name": "Bob Bobsen", "provinceCode": "ON", "countryCodeV2": "CA" }, "taxExemptions": [], "emailMarketingConsent": { "marketingState": "NOT_SUBSCRIBED", "marketingOptInLevel": null, "consentUpdatedAt": null }, "smsMarketingConsent": { "consentCollectedFrom": "OTHER", "consentUpdatedAt": "2021-06-16T17:31:44Z", "marketingOptInLevel": "SINGLE_OPT_IN", "marketingState": "SUBSCRIBED" } }, { "id": "gid://shopify/Customer/554456816", "firstName": "test", "lastName": "test", "email": null, "phone": null, "createdAt": "2024-11-04T18:56:43Z", "updatedAt": "2024-11-04T18:56:43Z", "numberOfOrders": "0", "state": "DISABLED", "amountSpent": { "amount": "0.0", "currencyCode": "USD" }, "lastOrder": null, "note": null, "verifiedEmail": true, "multipassIdentifier": null, "taxExempt": false, "tags": [], "addresses": [ { "id": "gid://shopify/MailingAddress/568874073?model_name=CustomerAddress", "firstName": "test", "lastName": "test", "company": "", "address1": "1005 Jervis St", "address2": "", "city": "Ottawa", "province": "Ontario", "country": "Canada", "zip": "V2E 3T1", "phone": "+1(613)555-1212", "name": "test test", "provinceCode": "ON", "countryCodeV2": "CA" }, { "id": "gid://shopify/MailingAddress/768736626?model_name=CustomerAddress", "firstName": "test", "lastName": "test", "company": "", "address1": "620 King Street West", "address2": "", "city": "Toronto", "province": "Ontario", "country": "Canada", "zip": "M5V 1M6", "phone": "+1(613)555-1212", "name": "test test", "provinceCode": "ON", "countryCodeV2": "CA" } ], "defaultAddress": { "id": "gid://shopify/MailingAddress/568874073?model_name=CustomerAddress", "firstName": "test", "lastName": "test", "company": "", "address1": "1005 Jervis St", "address2": "", "city": "Ottawa", "province": "Ontario", "country": "Canada", "zip": "V2E 3T1", "phone": "+1(613)555-1212", "name": "test test", "provinceCode": "ON", "countryCodeV2": "CA" }, "taxExemptions": [], "emailMarketingConsent": null, "smsMarketingConsent": null }, { "id": "gid://shopify/Customer/567375318", "firstName": "Jane", "lastName": "Smith", "email": "janesmith@b2b.example.com", "phone": "+13125551217", "createdAt": "2024-11-04T18:56:43Z", "updatedAt": "2024-11-04T18:56:43Z", "numberOfOrders": "0", "state": "DISABLED", "amountSpent": { "amount": "0.0", "currencyCode": "USD" }, "lastOrder": null, "note": null, "verifiedEmail": true, "multipassIdentifier": null, "taxExempt": false, "tags": [], "addresses": [], "defaultAddress": null, "taxExemptions": [], "emailMarketingConsent": { "marketingState": "SUBSCRIBED", "marketingOptInLevel": "SINGLE_OPT_IN", "consentUpdatedAt": "2005-06-16T15:00:11Z" }, "smsMarketingConsent": null }, { "id": "gid://shopify/Customer/624407574", "firstName": "Bob", "lastName": "Bobsen Jr.", "email": "tobi.leetsoft@example.com", "phone": null, "createdAt": "2024-11-04T18:56:43Z", "updatedAt": "2024-11-04T18:56:43Z", "numberOfOrders": "2", "state": "ENABLED", "amountSpent": { "amount": "32.0", "currencyCode": "USD" }, "lastOrder": { "id": "gid://shopify/Order/751082136", "name": "#1015" }, "note": null, "verifiedEmail": true, "multipassIdentifier": null, "taxExempt": false, "tags": [], "addresses": [ { "id": "gid://shopify/MailingAddress/624407574?model_name=CustomerAddress", "firstName": null, "lastName": null, "company": null, "address1": "124 Amoebobacterieae St", "address2": "", "city": "Ottawa", "province": "Ontario", "country": "Canada", "zip": "K2P0V7", "phone": "+1(613)555-1212", "name": "", "provinceCode": "ON", "countryCodeV2": "CA" } ], "defaultAddress": { "id": "gid://shopify/MailingAddress/624407574?model_name=CustomerAddress", "firstName": null, "lastName": null, "company": null, "address1": "124 Amoebobacterieae St", "address2": "", "city": "Ottawa", "province": "Ontario", "country": "Canada", "zip": "K2P0V7", "phone": "+1(613)555-1212", "name": "", "provinceCode": "ON", "countryCodeV2": "CA" }, "taxExemptions": [], "emailMarketingConsent": { "marketingState": "NOT_SUBSCRIBED", "marketingOptInLevel": null, "consentUpdatedAt": "2004-06-13T15:57:11Z" }, "smsMarketingConsent": null }, { "id": "gid://shopify/Customer/649400230", "firstName": "Bob", "lastName": "Bobsen", "email": "bob_exempt@example.com", "phone": "+13125551226", "createdAt": "2005-06-15T15:57:11Z", "updatedAt": "2005-06-16T15:57:11Z", "numberOfOrders": "0", "state": "ENABLED", "amountSpent": { "amount": "0.0", "currencyCode": "USD" }, "lastOrder": null, "note": null, "verifiedEmail": true, "multipassIdentifier": null, "taxExempt": true, "tags": [], "addresses": [], "defaultAddress": { "id": "gid://shopify/MailingAddress/544365967?model_name=CustomerAddress", "firstName": "Bob", "lastName": "Bobsen", "company": "", "address1": "123 Amoebobacterieae St", "address2": "", "city": "Ottawa", "province": "Ontario", "country": "Canada", "zip": "K2P0V6", "phone": "+1(613)555-1212", "name": "Bob Bobsen", "provinceCode": "ON", "countryCodeV2": "CA" }, "taxExemptions": [ "CA_STATUS_CARD_EXEMPTION" ], "emailMarketingConsent": { "marketingState": "NOT_SUBSCRIBED", "marketingOptInLevel": null, "consentUpdatedAt": null }, "smsMarketingConsent": null }, { "id": "gid://shopify/Customer/649509010", "firstName": "Bob", "lastName": "Bobsen", "email": "email@example.com", "phone": "+13125551215", "createdAt": "2024-11-04T18:56:43Z", "updatedAt": "2024-11-04T18:56:43Z", "numberOfOrders": "0", "state": "ENABLED", "amountSpent": { "amount": "0.0", "currencyCode": "USD" }, "lastOrder": null, "note": null, "verifiedEmail": true, "multipassIdentifier": null, "taxExempt": false, "tags": [], "addresses": [ { "id": "gid://shopify/MailingAddress/649509010?model_name=CustomerAddress", "firstName": "Bob", "lastName": "Bobsen", "company": "", "address1": "", "address2": "", "city": "Ottawa", "province": "", "country": "", "zip": "", "phone": "+1(613)555-1212", "name": "Bob Bobsen", "provinceCode": null, "countryCodeV2": null } ], "defaultAddress": { "id": "gid://shopify/MailingAddress/649509010?model_name=CustomerAddress", "firstName": "Bob", "lastName": "Bobsen", "company": "", "address1": "", "address2": "", "city": "Ottawa", "province": "", "country": "", "zip": "", "phone": "+1(613)555-1212", "name": "Bob Bobsen", "provinceCode": null, "countryCodeV2": null }, "taxExemptions": [], "emailMarketingConsent": { "marketingState": "SUBSCRIBED", "marketingOptInLevel": "SINGLE_OPT_IN", "consentUpdatedAt": "2005-06-16T15:00:11Z" }, "smsMarketingConsent": null }, { "id": "gid://shopify/Customer/657584747", "firstName": "Jane", "lastName": "Deletable", "email": "jane_deletable@b2b.example.com", "phone": "+13125551218", "createdAt": "2024-11-04T18:56:43Z", "updatedAt": "2024-11-04T18:56:43Z", "numberOfOrders": "0", "state": "DISABLED", "amountSpent": { "amount": "0.0", "currencyCode": "USD" }, "lastOrder": null, "note": null, "verifiedEmail": true, "multipassIdentifier": null, "taxExempt": false, "tags": [], "addresses": [], "defaultAddress": null, "taxExemptions": [], "emailMarketingConsent": { "marketingState": "SUBSCRIBED", "marketingOptInLevel": "SINGLE_OPT_IN", "consentUpdatedAt": "2005-06-16T15:00:11Z" }, "smsMarketingConsent": null }, { "id": "gid://shopify/Customer/839649557", "firstName": "Bob", "lastName": "Bobsen", "email": "test_example@example.com", "phone": "+16136120709", "createdAt": "2005-06-15T15:57:11Z", "updatedAt": "2005-06-16T15:57:11Z", "numberOfOrders": "0", "state": "ENABLED", "amountSpent": { "amount": "0.0", "currencyCode": "USD" }, "lastOrder": null, "note": null, "verifiedEmail": true, "multipassIdentifier": null, "taxExempt": false, "tags": [], "addresses": [], "defaultAddress": { "id": "gid://shopify/MailingAddress/544365967?model_name=CustomerAddress", "firstName": "Bob", "lastName": "Bobsen", "company": "", "address1": "123 Amoebobacterieae St", "address2": "", "city": "Ottawa", "province": "Ontario", "country": "Canada", "zip": "K2P0V6", "phone": "+1(613)555-1212", "name": "Bob Bobsen", "provinceCode": "ON", "countryCodeV2": "CA" }, "taxExemptions": [], "emailMarketingConsent": { "marketingState": "NOT_SUBSCRIBED", "marketingOptInLevel": "SINGLE_OPT_IN", "consentUpdatedAt": "2004-06-16T15:57:11Z" }, "smsMarketingConsent": null }, { "id": "gid://shopify/Customer/880980251", "firstName": "Danny", "lastName": "Doe", "email": "dannydoe@b2bmigration.com", "phone": "+14155483921", "createdAt": "2024-11-04T18:56:43Z", "updatedAt": "2024-11-04T18:56:43Z", "numberOfOrders": "0", "state": "DISABLED", "amountSpent": { "amount": "0.0", "currencyCode": "USD" }, "lastOrder": null, "note": null, "verifiedEmail": true, "multipassIdentifier": null, "taxExempt": false, "tags": [], "addresses": [ { "id": "gid://shopify/MailingAddress/420236291?model_name=CustomerAddress", "firstName": "Danny", "lastName": "Doe", "company": "", "address1": "1005 Jervis St", "address2": "Apt", "city": "Ottawa", "province": "British Columbia", "country": "Canada", "zip": "V2E3T1", "phone": "16135551212", "name": "Danny Doe", "provinceCode": "BC", "countryCodeV2": "CA" } ], "defaultAddress": { "id": "gid://shopify/MailingAddress/420236291?model_name=CustomerAddress", "firstName": "Danny", "lastName": "Doe", "company": "", "address1": "1005 Jervis St", "address2": "Apt", "city": "Ottawa", "province": "British Columbia", "country": "Canada", "zip": "V2E3T1", "phone": "16135551212", "name": "Danny Doe", "provinceCode": "BC", "countryCodeV2": "CA" }, "taxExemptions": [], "emailMarketingConsent": { "marketingState": "NOT_SUBSCRIBED", "marketingOptInLevel": null, "consentUpdatedAt": null }, "smsMarketingConsent": null }, { "id": "gid://shopify/Customer/912646312", "firstName": "Bob", "lastName": "Bulk", "email": "bobbulk@example.com", "phone": null, "createdAt": "2024-11-04T18:56:43Z", "updatedAt": "2024-11-04T18:56:43Z", "numberOfOrders": "0", "state": "INVITED", "amountSpent": { "amount": "0.0", "currencyCode": "USD" }, "lastOrder": null, "note": null, "verifiedEmail": true, "multipassIdentifier": null, "taxExempt": false, "tags": [], "addresses": [], "defaultAddress": null, "taxExemptions": [], "emailMarketingConsent": { "marketingState": "NOT_SUBSCRIBED", "marketingOptInLevel": null, "consentUpdatedAt": "2004-06-13T15:57:11Z" }, "smsMarketingConsent": null }, { "id": "gid://shopify/Customer/953307753", "firstName": "Adam", "lastName": "Felix", "email": "b2b@example.com", "phone": "+13125551213", "createdAt": "2024-11-04T18:56:43Z", "updatedAt": "2024-11-04T18:56:43Z", "numberOfOrders": "0", "state": "DISABLED", "amountSpent": { "amount": "0.0", "currencyCode": "USD" }, "lastOrder": null, "note": null, "verifiedEmail": true, "multipassIdentifier": null, "taxExempt": false, "tags": [], "addresses": [], "defaultAddress": null, "taxExemptions": [], "emailMarketingConsent": { "marketingState": "SUBSCRIBED", "marketingOptInLevel": "SINGLE_OPT_IN", "consentUpdatedAt": "2005-06-16T15:00:11Z" }, "smsMarketingConsent": null }, { "id": "gid://shopify/Customer/1018520244", "firstName": "Bob", "lastName": "Bobsen", "email": "bob@example.org", "phone": "+13125551216", "createdAt": "2024-11-04T18:56:43Z", "updatedAt": "2024-11-04T18:56:43Z", "numberOfOrders": "12", "state": "ENABLED", "amountSpent": { "amount": "100122.5", "currencyCode": "USD" }, "lastOrder": null, "note": null, "verifiedEmail": true, "multipassIdentifier": null, "taxExempt": false, "tags": [ "A+ Marketing", "Canadian" ], "addresses": [ { "id": "gid://shopify/MailingAddress/1018520244?model_name=CustomerAddress", "firstName": null, "lastName": null, "company": "", "address1": "123 Amoebobacterieae St", "address2": "", "city": "Ottawa", "province": "Ontario", "country": "Canada", "zip": "K2P0V6", "phone": "+1(613)555-1212", "name": "", "provinceCode": "ON", "countryCodeV2": "CA" } ], "defaultAddress": { "id": "gid://shopify/MailingAddress/1018520244?model_name=CustomerAddress", "firstName": null, "lastName": null, "company": "", "address1": "123 Amoebobacterieae St", "address2": "", "city": "Ottawa", "province": "Ontario", "country": "Canada", "zip": "K2P0V6", "phone": "+1(613)555-1212", "name": "", "provinceCode": "ON", "countryCodeV2": "CA" }, "taxExemptions": [], "emailMarketingConsent": { "marketingState": "NOT_SUBSCRIBED", "marketingOptInLevel": "SINGLE_OPT_IN", "consentUpdatedAt": "2004-06-13T15:57:11Z" }, "smsMarketingConsent": { "consentCollectedFrom": "OTHER", "consentUpdatedAt": "2024-11-04T18:56:43Z", "marketingOptInLevel": "SINGLE_OPT_IN", "marketingState": "NOT_SUBSCRIBED" } } ] } } }