

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 在 Amazon Connect Customer Profiles 中，將 Shopify 物件映射至標準設定檔物件
<a name="mapping-shopify-objects"></a>

本主題列出 Shopify 物件中的哪些欄位會對應到 Amazon Connect Customer Profiles 標準設定檔物件中的欄位。

## Shopify-Customer 物件
<a name="shopify-identify-object"></a>

以下是 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 物件對應到標準設定檔
<a name="mapping-shopify-customer-object"></a>

Shopify-Customer 物件中欄位的子集會對應到客戶設定檔中的標準設定檔物件。

下表列出了哪些欄位可以從 Shopify-Customer 物件對應到標准設定檔。


| Shopify-Customer 來源欄位 | 標準設定檔目標欄位 | 
| --- | --- | 
| id | Attributes.ShopifyCustomerId | 
| email | 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 | 

### 範例
<a name="example-mapping-shopify-customer-object"></a>

下列範例顯示如何將原始欄位對應到目標欄位。

```
"shopifyCustomerId": {
    "Source": "_source.detail.event.detail.payload.id",
    "Target": "_profile.Attributes.ShopifyCustomerId"
}
```

Shopify 物件中的 Shopify-Customer 客戶資料會使用下列索引與 Amazon Connect Customer Profiles 關聯。


| 標準索引名稱 | Shopify-Customer 來源欄位 | 
| --- | --- | 
| \_shopifyCustomerId | id | 

例如，您可以使用 `_shopifyCustomerId` 作為索引鍵名稱，並搭配 [SearchProfiles](https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_SearchProfiles.html) API 來尋找 Amazon Connect Customer Profiles。您可以使用 [ListProfileObjects](https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_ListProfileObjects.html) API，並將 `ProfileId` 和 `ObjectTypeName` 設定為`Shopify-Customer`，以尋找與特定設定檔關聯的 Shopify-Customer 物件。