

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# 将 Shopify 对象映射到 Amazon Connect Customer Profiles 中的标准配置文件对象
<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
+ addresses
+ 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
+ 电子邮件
+ 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
+ 状态
+ 标签
+ tax\_exempt
+ tax\_exemptions
+ total\_spent
+ updated\_at
+ verified\_email

## 将 Shopify-Customer 对象映射到标准资料
<a name="mapping-shopify-customer-object"></a>

Shopify-Customer 对象中的字段子集映射到 Customer Profiles 中的标准资料对象。

下表列出了哪些字段可以从 Shopify-Customer 对象映射到标准资料。


| Shopify-Customer 源字段 | 标准资料目标字段 | 
| --- | --- | 
| id | 属性。 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 | 地址。 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 客户资料相关联。


| 标准索引名称 | Shopify-Customer 源字段 | 
| --- | --- | 
| \_shopifyCustomerId | id | 

例如，您可以在 [SearchProfiles](https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_SearchProfiles.html)API 中使用`_shopifyCustomerId`作为密钥名称来查找 Amazon Connect 客户档案。你可以使用和设置为的 [ListProfileObjects](https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_ListProfileObjects.html)API 来查找与特定个人资料关联的 Shopify-Customer `ProfileId` 对象。`ObjectTypeName` `Shopify-Customer`