

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

# 将 Shopify 对象映射到 Connect 客户资料中的标准资料对象
<a name="mapping-shopify-objects"></a>

本主题列出了 Shopify 对象中的哪些字段映射到 Connect 客户资料中标准配置文件对象中的字段。

## 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 对象中字段的子集映射到客户配置文件中的标准配置文件对象。

下表列出了哪些字段可以从 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 客户数据与 Connect 客户资料相关联。


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

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