CData Python Connector for Shopify

Build 23.0.8839

Customers

Retrieves a list of customers.

Table-Specific Information

Select

The connector uses the Shopify API to process WHERE clause conditions built with the following column and operator. The connector processes other filters client-side within the connector.

  • Id supports the '=,IN' comparison operators.
  • Email supports the '=,!=' comparison operators.
  • Phone supports the '=,!=' comparison operators.
  • State supports the '=,!=' comparison operators.
  • UpdatedAt supports the '=,!=,<,>,>=,<=' comparison operators.
  • AmountSpentAmount supports the '=,!=' comparison operators.
For example, the following queries are processed server side:
SELECT * FROM Customers WHERE Id='VALUE'

SELECT * FROM Customers WHERE Email='VALUE'

SELECT * FROM Customers WHERE Phone='VALUE'

SELECT * FROM Customers WHERE State='VALUE'

SELECT * FROM Customers WHERE UpdatedAt<'2000-01-01 01:00:00.0'

SELECT * FROM Customers WHERE AmountSpentAmount='100.000000'

Insert

INSERT statements are mapped to the 'customerCreate' GraphQL mutation.

The following columns can be used to create a new record:

FirstName, LastName, Email, Locale, Note, Phone, TaxExempt, SmsMarketingConsentMarketingState, SmsMarketingConsentMarketingOptInLevel, SmsMarketingConsentConsentUpdatedAt

DELETE

DELETE statements are mapped to the 'customerDelete' GraphQL mutation.

You can delete entries by specifying the Id.

Columns

Name Type ReadOnly References Description
Id [KEY] String True

A globally-unique ID.

MultipassIdentifier String True

A unique identifier for the customer that's used with Multipass login.

LegacyResourceId String True

The ID of the corresponding resource in the REST Admin API.

ValidEmailAddress Bool True

Whether the email address is formatted correctly. Returns 'true' when the email is formatted correctly and belongs to an existing domain. This doesn't guarantee that the email address actually exists.

DisplayName String True

The full name of the customer, based on the values for first_name and last_name. If the first_name and last_name are not available, then this falls back to the customer's email address, and if that is not available, the customer's phone number.

FirstName String True

The customer's first name.

LastName String True

The customer's last name.

Email String True

The customer's email address.

Locale String True

The customer's locale.

Note String True

A note about the customer.

Phone String True

The customer's phone number.

State String True

The state of the customer's account with the shop.

Tags String True

A comma separated list of tags that have been added to the customer.

CanDelete Bool True

Whether the merchant can delete the customer from their store. A customer can be deleted from a store only if they have not yet made an order. After a customer makes an order, they can't be deleted from a store.

LifetimeDuration String True

The amount of time since the customer was first added to the store. Example: 'about 12 years'.

TaxExempt Bool True

Whether the customer is exempt from being charged taxes on their orders.

TaxExemptions String True

The list of tax exemptions applied to the customer.

UnsubscribeUrl String True

The URL to unsubscribe the customer from the mailing list.

VerifiedEmail Bool True

Whether the customer has verified their email address. Defaults to 'true' if the customer is created through the Shopify admin or API.

HasTimelineComment Bool True

Whether the timeline subject has a timeline comment. If true, then a timeline comment exists.

NumberOfOrders String True

The number of orders that the customer has made at the store in their lifetime.

ProductSubscriberStatus String True

Possible subscriber states of a customer defined by their subscription contracts.

CreatedAt Datetime True

The date and time when the customer was added to the store.

UpdatedAt Datetime True

The date and time when the customer was last updated.

AcceptsMarketing Bool True

Whether the customer has agreed to receive marketing materials.

AmountSpentAmount Decimal True

Decimal money amount.

AmountSpentCurrencyCode String True

Currency of the money.

AverageOrderAmountV2Amount Decimal True

Decimal money amount.

AverageOrderAmountV2CurrencyCode String True

Currency of the money.

DefaultAddressId String True

A globally-unique ID.

DefaultAddressCoordinatesValidated Bool True

Whether the address coordinates are valid.

DefaultAddressName String True

The full name of the customer, based on firstName and lastName.

DefaultAddressFirstName String True

The first name of the customer.

DefaultAddressLastName String True

The last name of the customer.

DefaultAddressAddress1 String True

The first line of the address. Typically the street address or PO Box number.

DefaultAddressAddress2 String True

The second line of the address. Typically the number of the apartment, suite, or unit.

DefaultAddressCity String True

The name of the city, district, village, or town.

DefaultAddressCompany String True

The name of the customer's company or organization.

DefaultAddressCountry String True

The name of the country.

DefaultAddressLatitude Double True

The latitude coordinate of the customer address.

DefaultAddressLongitude Double True

The longitude coordinate of the customer address.

DefaultAddressPhone String True

A unique phone number for the customer. Formatted using E. 164 standard. For example, _+16135551111_.

DefaultAddressProvince String True

The region of the address, such as the province, state, or district.

DefaultAddressZip String True

The zip or postal code of the address.

DefaultAddressFormattedArea String True

A comma-separated list of the values for city, province, and country.

DefaultAddressProvinceCode String True

The two-letter code for the region. For example, ON.

DefaultAddressCountryCodeV2 String True

The two-letter code for the country of the address. For example, US.

EmailMarketingConsentMarketingState String True

The current email marketing state for the customer.

EmailMarketingConsentMarketingOptInLevel String True

The marketing subscription opt-in level, as described by the M3AAWG best practices guidelines, that the customer gave when they consented to receive marketing material by email.

EmailMarketingConsentConsentUpdatedAt Datetime True

The date and time at which the customer consented to receive marketing material by email. The customer's consent state reflects the consent record with the most recent 'consent_updated_at' date. If no date is provided, then the date and time at which the consent information was sent is used.

ImageId String True

A unique ID for the image.

ImageWidth Int True

The original width of the image in pixels. Returns 'null' if the image is not hosted by Shopify.

ImageAltText String True

A word or phrase to share the nature or contents of an image.

ImageHeight Int True

The original height of the image in pixels. Returns 'null' if the image is not hosted by Shopify.

ImageUrl String True

The location of the image as a URL.

LastOrderId String True

A globally-unique ID.

MarketId String True

A globally-unique ID.

MergeableReason String True

The reason why the customer can't be merged with another customer.

MergeableErrorFields String True

The list of fields preventing the customer from being merged.

MergeableIsMergeable Bool True

Whether the customer can be merged with another customer.

MergeableMergeInProgressJobId String True

The UUID of the merge job.

MergeableMergeInProgressResultingCustomerId String True

The ID of the customer resulting from the merge.

MergeableMergeInProgressStatus String True

The status of the customer merge request.

SmsMarketingConsentMarketingState String True

The current SMS marketing state for the customer.

SmsMarketingConsentConsentCollectedFrom String True

The source from which the SMS marketing information for the customer was collected.

SmsMarketingConsentMarketingOptInLevel String True

The marketing subscription opt-in level that was set when the customer consented to receive marketing information.

SmsMarketingConsentConsentUpdatedAt Datetime True

The date and time when the customer consented to receive marketing material by SMS. If no date is provided, then the date and time when the consent information was sent is used.

StatisticsPredictedSpendTier String True

The predicted spend tier of a customer with a shop.

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 23.0.8839