Version: 2024-10
Curl example: "curl -X POST \\\nhttps://your-development-store.myshopify.com/admin/api/2024-10/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" PHP example: "use Shopify\\Clients\\Graphql;\n\n$client = new Graphql(\"your-development-store.myshopify.com\", $accessToken);\n$query = <<<QUERY\n query {\n customers(first: 5, query: \"country:canada\") {\n edges {\n node {\n id\n }\n }\n }\n }\nQUERY;\n\n$response = $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}"
input: null
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" } } ] } } }
Curl example: "curl -X POST \\\nhttps://your-development-store.myshopify.com/admin/api/2024-10/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" PHP example: "use Shopify\\Clients\\Graphql;\n\n$client = new Graphql(\"your-development-store.myshopify.com\", $accessToken);\n$query = <<<QUERY\n query {\n customers(first: 10) {\n edges {\n node {\n id\n }\n }\n }\n }\nQUERY;\n\n$response = $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}"
input: null
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" } } ] } } }
Curl example: "curl -X POST \\\nhttps://your-development-store.myshopify.com/admin/api/2024-10/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" PHP example: "use Shopify\\Clients\\Graphql;\n\n$client = new Graphql(\"your-development-store.myshopify.com\", $accessToken);\n$query = <<<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\n$response = $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}"
input: null
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" } } ] } } }
Curl example: "curl -X POST \\\nhttps://your-development-store.myshopify.com/admin/api/2024-10/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" PHP example: "use Shopify\\Clients\\Graphql;\n\n$client = new Graphql(\"your-development-store.myshopify.com\", $accessToken);\n$query = <<<QUERY\n query {\n customers(first: 10, query: \"state:'ENABLED'\") {\n edges {\n node {\n id\n state\n }\n }\n }\n }\nQUERY;\n\n$response = $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}"
input: null
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" } } ] } } }
Curl example: "curl -X POST \\\nhttps://your-development-store.myshopify.com/admin/api/2024-10/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" PHP example: "use Shopify\\Clients\\Graphql;\n\n$client = new Graphql(\"your-development-store.myshopify.com\", $accessToken);\n$query = <<<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\n$response = $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}"
input: null
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" } } ] } } }