本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
將 Shopify 物件映射至 Amazon Connect Customer Profiles 中的標準設定檔物件
本主題列出 Shopify 物件中的哪些欄位會對應到 Amazon Connect Customer Profiles 標準設定檔物件中的欄位。
Shopify-Customer 物件
以下是 Shopify-Customer 物件中所有欄位的清單。
-
accepts_marketing
-
accepts_marketing_updated_at
-
地址
-
currency
-
created_at
-
default_address.address1
-
default_address.address2
-
default_address.city
-
default_address.company
-
default_address.country
-
default_address.country_code
-
default_address.country_name
-
default_address.customer_id
-
default_address.default
-
default_address.first_name
-
default_address.id
-
default_address.last_name
-
default_address.name
-
default_address.phone
-
default_address.province
-
default_address.province_code
-
default_address.zip
-
email
-
first_name
-
id
-
last_name
-
last_order_id
-
last_order_name
-
metafield.key
-
metafield.value
-
metafield.namespace
-
metafield.value_type
-
marketing_opt_in_level
-
multipass_identifier
-
note
-
orders_count
-
phone
-
sms_marketing_consent.state
-
sms_marketing_consent.opt_in_level
-
sms_marketing_consent.consent_updated_at
-
sms_marketing_consent.consent_collected_from
-
state
-
標籤
-
tax_exempt
-
tax_exemptions
-
total_spent
-
updated_at
-
verified_email
將 Shopify-Customer 物件對應到標準設定檔
Shopify-Customer 物件中欄位的子集會對應到客戶設定檔中的標準設定檔物件。
下表列出了哪些欄位可以從 Shopify-Customer 物件對應到標准設定檔。
Shopify-Customer source field | Standard profile target field |
id | Attributes.ShopifyCustomerId |
EmailAddress | |
first_name | FirstName |
last_name | LastName |
note | AdditionalInformation |
phone | PhoneNumber |
default_address.address1 | Address.Address1 |
default_address.address2 | Address.Address2 |
default_address.city | Address.City |
default_address.province | Address.Province |
default_address.country | Address.Country |
default_address.zip | Address.PostalCode |
範例
下列範例顯示如何將原始欄位對應到目標欄位。
"shopifyCustomerId": {
"Source": "_source.detail.event.detail.payload.id",
"Target": "_profile.Attributes.ShopifyCustomerId"
}
Shopify 物件中的 Shopify-Customer 客戶資料會使用下列索引與 Amazon Connect Customer Profiles 關聯。
Standard Index Name | Shopify-Customer source field |
_shopifyCustomerId | id |
例如,您可以使用 _shopifyCustomerId
作為索引鍵名稱,並搭配 SearchProfiles API 來尋找 Amazon Connect Customer Profiles。您可以使用 ListProfileObjects API,並將 ProfileId
和 ObjectTypeName
設定為Shopify-Customer
,以尋找與特定設定檔關聯的 Shopify-Customer 物件。