

# Mapping Shopify objects to the standard profile object in Amazon Connect Customer Profiles
<a name="mapping-shopify-objects"></a>

This topic lists which fields in Shopify objects map to fields in the standard profile object in Amazon Connect Customer Profiles.

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

Following is a list of all the fields in a Shopify-Customer object.


+ accepts\$1marketing
+ accepts\$1marketing\$1updated\$1at
+ addresses
+ currency
+ created\$1at
+ default\$1address.address1
+ default\$1address.address2
+ default\$1address.city
+ default\$1address.company
+ default\$1address.country
+ default\$1address.country\$1code
+ default\$1address.country\$1name
+ default\$1address.customer\$1id
+ default\$1address.default
+ default\$1address.first\$1name
+ default\$1address.id
+ default\$1address.last\$1name
+ default\$1address.name
+ default\$1address.phone
+ default\$1address.province
+ default\$1address.province\$1code
+ default\$1address.zip
+ email
+ first\$1name
+ id
+ last\$1name
+ last\$1order\$1id
+ last\$1order\$1name
+ metafield.key
+ metafield.value
+ metafield.namespace
+ metafield.value\$1type
+ marketing\$1opt\$1in\$1level
+ multipass\$1identifier
+ note
+ orders\$1count
+ phone
+ sms\$1marketing\$1consent.state
+ sms\$1marketing\$1consent.opt\$1in\$1level
+ sms\$1marketing\$1consent.consent\$1updated\$1at
+ sms\$1marketing\$1consent.consent\$1collected\$1from
+ state
+ tags
+ tax\$1exempt
+ tax\$1exemptions
+ total\$1spent
+ updated\$1at
+ verified\$1email

## Mapping a Shopify-Customer object to a standard profile
<a name="mapping-shopify-customer-object"></a>

A subset of the fields in the Shopify-Customer object map to the standard profile object in Customer Profiles. 

The following table lists which fields can be mapped from the Shopify-Customer object to the standard profile.


| Shopify-Customer source field | Standard profile target field | 
| --- | --- | 
| id | Attributes.ShopifyCustomerId | 
| email | EmailAddress | 
| first\$1name | FirstName | 
| last\$1name | LastName | 
| note | AdditionalInformation | 
| phone | PhoneNumber | 
| default\$1address.address1 | Address.Address1 | 
| default\$1address.address2 | Address.Address2 | 
| default\$1address.city | Address.City | 
| default\$1address.province | Address.Province | 
| default\$1address.country | Address.Country | 
| default\$1address.zip | Address.PostalCode | 

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

The following example shows how to map a source field to a target field.

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

The Shopify-Customer customer data from the Shopify object is associated with an Amazon Connect customer profile using the following index.


| Standard Index Name | Shopify-Customer source field | 
| --- | --- | 
| \$1shopifyCustomerId | id | 

For example, you can use `_shopifyCustomerId` as a key name with the [SearchProfiles](https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_SearchProfiles.html) API to find an Amazon Connect customer profile. You can find the Shopify-Customer objects associated with a specific profile by using the [ListProfileObjects](https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_ListProfileObjects.html) API with the `ProfileId` and `ObjectTypeName` set to `Shopify-Customer`.