Shopify API
DtoCustomer
A unique identifier for the customer.
The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error.
As of API version 2022-04, this field is deprecated. Use email_marketing_consent instead. Whether the customer has consented to receive marketing material by email.
The date and time (ISO 8601 format) when the customer was created.
The date and time (ISO 8601 format) when the customer information was last updated
The customer's first name.
The customer's last name.
The number of orders associated with this customer. Test and archived orders aren't counted.
'The state of the customer's account with a shop. Default value: disabled. Valid values:'
The total amount of money that the customer has spent across their order history.
The ID of the customer's last order.
A note about the customer.
Whether the customer has verified their email address.
A unique identifier for the customer that's used with ' 'Multipass login.
Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout.
The unique phone number (E.164 format) for this customer. Attempting to assign the same phone number to multiple customers returns an error. The property can be set using different formats, but each format must represent a number that can be dialed from anywhere in the world.
Tags that the shop owner has attached to the customer, formatted as a string of comma-separated values. A customer can have up to 250 tags. Each tag can have up to 255 characters.
The name of the customer's last order. This is directly related to the name field on the Order resource.
he three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders.
As of API version 2022-04, this field is deprecated. Use email_marketing_consent instead. The date and time (ISO 8601 format) when the customer consented or objected to receiving marketing material by email. Set this value whenever the customer consents or objects to marketing materials.
'Whether the customer is exempt from paying specific taxes on their order. Canadian taxes only. Valid values:'
A unique identifier for the customer for Api GraphQl.
'The mailing address associated with the payment method. This address is an optional field that won't be available on orders that do not require a payment method. It has the following properties:'
A unique identifier for the address.
A unique identifier for the customer.
The first name of the person associated with the payment method.
The last name of the person associated with the payment method.
The company of the person associated with the billing address.
The street address of the billing address.
An optional additional field for the street address of the billing address.
The city, town, or village of the billing address.
The name of the region (for example, province, state, or prefecture) of the billing address.
The name of the country of the billing address.
The postal code (for example, zip, postcode, or Eircode) of the billing address.
The phone number at the billing address.
The full name of the person associated with the payment method.
The latitude of the billing address.
The longitude of the billing address.
The two-letter code (ISO 3166-1 format) for the country of the billing address.
The two-letter abbreviation of the region of the billing address.
The customer's normalized country name.
Returns true for each default address.
1{2"id": 6087092306145,3"email": "test@shopping.com",4"accepts_marketing": false,5"created_at": "2022-02-21T09:31:56-05:00",6"updated_at": "2022-03-11T18:48:57-05:00",7"first_name": "pruebas envio",8"last_name": "Chile",9"orders_count": 5,10"state": "disabled",11"total_spent": 375.3,12"last_order_id": 234132602919,13"note": "Placed an order that had a fraud warning",14"verified_email": true,15"multipass_identifier": null,16"tax_exempt": false,17"phone": "555-625-1199",18"tags": "",19"last_order_name": "#1169",20"currency": "CLP",21"accepts_marketing_updated_at": "2022-02-21T09:31:56-05:00",22"tax_exemptions": [23"CA_STATUS_CARD_EXEMPTION",24"CA_BC_RESELLER_EXEMPTION"25],26"admin_graphql_api_id": "gid://shopify/Customer/6087092306145",27"default_address": {28"id": 7620158161121,29"customer_id": 6087092306145,30"first_name": "pruebas envio",31"last_name": "Chile",32"company": null,33"address1": "San Francisco 2511",34"address2": "Apartment 5",35"city": "San Miguel",36"province": "Santiago",37"country": "Chile",38"zip": "8320000",39"phone": "+(53)999888777",40"name": "pruebas envio Chile",41"latitude": -33.4777172,42"longitude": -70.6436693,43"country_code": "CL",44"province_code": "RM",45"country_name": "Chile",46"default": true47}48}