本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
将 Shopify 对象映射到 Amazon Connect Customer Profiles 中的标准订单
本主题列出了 Shopify 对象中的哪些字段映射到 Customer Profiles 中标准订单对象中的字段。
Shopify DraftOrder-
有关 Shopify DraftOrder 对象中所有字段的列表,请参阅 Shopify 文档中的 DraftOrder 对象
将 Shopify DraftOrder 对象映射到标准订单
Shopify DraftOrder 对象中字段的子集映射到客户资料中的标准订单对象。
下表列出了哪些字段可以从 Shopify DraftOrder 对象映射到标准订单。
如果源中存在 order_status_url,则 StatusCode 为 ACTIVATED。否则 StatusCode 为 DRAFT。
| Shopify-DraftOrder 来源字 | 标准订单目标字段 |
|---|---|
| id | 属性。 ShopifyOrderId |
| customer.id | 属性。 ShopifyCustomerId |
| note | AdditionalInformation |
| 电子邮件 | CustomerEmail |
| currency | 货币 |
| created_at | CreatedDate |
| updated_at | UpdatedDate |
| name | Name |
| status | Status |
| order_status_url | StatusCode |
| billing_address.address1 | BillingAddress.Address1 |
| billing_address.address2 | BillingAddress.Address2 |
| billing_address.city | BillingAddress.City |
| billing_address.zip | BillingAddress.PostalCode |
| billing_address.province | BillingAddress.省 |
| billing_address.country | BillingAddress. 国家 |
| billing_address.name | BillingAddress.Name |
| shipping_address.address1 | ShippingAddress.Address1 |
| shipping_address.address2 | ShippingAddress.Address2 |
| shipping_address.city | ShippingAddress.City |
| shipping_address.zip | ShippingAddress.PostalCode |
| shipping_address.province | ShippingAddress.省 |
| shipping_address.country | ShippingAddress. 国家 |
| shipping_address.name | ShippingAddress.Name |
| invoice_url | StatusUrl |
| total_price | TotalPrice |
| total_tax | TotalTax |
| line_items[].title | OrderItems[]. 标题 |
| line_items[].price | OrderItems[] .Price |
| line_items[].quantity | OrderItems[]. 数量 |
示例
以下示例介绍了如何将源字段映射到目标字段。
"shopifyOrderId": { "Source": "_source.detail.event.detail.payload.id", "Target": "_order.Attributes.ShopifyOrderId" }
来自 Shopify 对象的 Shopify DraftOrder 客户数据使用以下索引与 Amazon Connect 标准订单相关联。
| 标准索引名称 | Shopify-DraftOrder 来源字 |
|---|---|
| _shopifyOrderId | id |
例如,您可以在 ListProfileObjectsAPI 中ObjectFilter.KeyName使用 _shopifyOrderId as 来查找标准订单。您可以通过使用ProfileId和ObjectTypeName设置为的 ListProfileObjectsAPI 来查找与特定个人资料关联的 Shopify DraftOrder 对象Shopify-DraftOrder。
Shopify-Order 对象
有关 Shopify-Order 对象中所有字段的列表,请参阅 Shopify 文档中的订单对象
将 Shopify-Order 对象映射到标准订单
Shopify-Order 对象中的字段子集映射到 Customer Profiles 中的标准订单对象。
下表列出了哪些字段可以从 Shopify-Order 对象映射到标准订单。
如果源中存在 order_status_url,则 StatusCode 为 ACTIVATED。否则 StatusCode 为 DRAFT。
| Shopify-Order 源字段 | 标准订单目标字段 |
|---|---|
| id | 属性。 ShopifyOrderId |
| customer.id | 属性。 ShopifyCustomerId |
| cancelled_at | CancelledDate |
| cancel_reason | CancelReason |
| closed_at | ClosedDate |
| created_at | CreatedDate |
| currency | 货币 |
| 电子邮件 | CustomerEmail |
| financial_status | Status |
| order_status_url | StatusCode |
| fulfillment_status | FulfillmentStatus |
| 网关 | 网关 |
| name | Name |
| note | AdditionalInformation |
| order_status_url | StatusUrl |
| phone | CustomerPhone |
| processed_at | ProcessedDate |
| total_discounts | TotalDiscounts |
| total_line_items_price | TotalItemsPrice |
| total_price | TotalPrice |
| total_shipping_price_set.shop_money.amount | TotalShippingPrice |
| total_tax | TotalTax |
| total_tip_received | TotalTipReceived |
| total_weight | TotalWeight |
| updated_at | UpdatedDate |
| billing_address.address1 | BillingAddress.Address1 |
| billing_address.address2 | BillingAddress.Address2 |
| billing_address.city | BillingAddress.City |
| billing_address.zip | BillingAddress.PostalCode |
| billing_address.province | BillingAddress.省 |
| billing_address.country | BillingAddress. 国家 |
| billing_address.name | BillingAddress.Name |
| payment_details.credit_card_number | CreditCardNumber |
| payment_details.credit_card_company | CreditCardCompany |
| shipping_address.address1 | ShippingAddress.Address1 |
| shipping_address.address2 | ShippingAddress.Address2 |
| shipping_address.city | ShippingAddress.City |
| shipping_address.zip | ShippingAddress.PostalCode |
| shipping_address.province | ShippingAddress.省 |
| shipping_address.country | ShippingAddress. 国家 |
| shipping_address.name | ShippingAddress.Name |
| line_items[].title | OrderItems[]. 标题 |
| line_items[].price | OrderItems[] .Price |
| line_items[].quantity | OrderItems[]. 数量 |
示例
以下示例介绍了如何将源字段映射到目标字段。
"shopifyOrderId": { "Source": "_source.detail.event.detail.payload.id", "Target": "_order.Attributes.ShopifyOrderId" }
来自 Shopify 对象中的 Shopify-Order 客户数据使用以下索引与 Amazon Connect 标准订单相关联。
| 标准索引名称 | Shopify-Order 源字段 |
|---|---|
| _shopifyOrderId | id |
例如,您可以在 ListProfileObjectsAPI 中ObjectFilter.KeyName使用 _shopifyOrderId as 来查找标准订单。你可以使用将和设置为的 ListProfileObjectsAPI 来查找与特定配置文件关联的 Shopify-Order ProfileId 对象。ObjectTypeName Shopify-Order