将 Shopify 对象映射到 Amazon Connect Customer Profiles 中的标准订单 - Amazon Connect

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

将 Shopify 对象映射到 Amazon Connect Customer Profiles 中的标准订单

本主题列出了 Shopify 对象中的哪些字段映射到 Customer Profiles 中标准订单对象中的字段。

Shopify DraftOrder-

有关 Shopify DraftOrder 对象中所有字段的列表,请参阅 Shopify 文档中的 DraftOrder 对象

将 Shopify DraftOrder 对象映射到标准订单

Shopify DraftOrder 对象中字段的子集映射到客户资料中的标准订单对象。

下表列出了哪些字段可以从 Shopify DraftOrder 对象映射到标准订单。

如果源中存在 order_status_url,则 StatusCodeACTIVATED。否则 StatusCodeDRAFT

Shopify-DraftOrder 来源字 标准订单目标字段
id 属性。 ShopifyOrderId
客户.id 属性。 ShopifyCustomerId
note AdditionalInformation
电子邮件 CustomerEmail
currency 货币
created_at CreatedDate
updated_at UpdatedDate
名称 名称
状态 状态
订单状态_网址 StatusCode
账单地址.address1 BillingAddress.Address1
账单地址.address2 BillingAddress.Address2
账单地址.city BillingAddress.City
billing_address.zip BillingAddress.PostalCode
账单地址。省份 BillingAddress.省
账单地址。国家 BillingAddress. 国家
账单地址.name BillingAddress.Name
配送地址.address1 ShippingAddress.Address1
配送地址.address2 ShippingAddress.Address2
配送地址.city ShippingAddress.City
shipping_address.zip ShippingAddress.PostalCode
配送地址.省份 ShippingAddress.省
配送地址.国家 ShippingAddress. 国家
配送地址.name ShippingAddress.Name
发票网址 StatusUrl
总价格 TotalPrice
total_tax TotalTax
line_items [] .title OrderItems[]. 标题
line_items [] .price OrderItems[] .Price
line_items []。数量 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 来查找标准订单。您可以通过使用ProfileIdObjectTypeName设置为的 ListProfileObjectsAPI 来查找与特定个人资料关联的 Shopify DraftOrder 对象Shopify-DraftOrder

Shopify-Order 对象

有关 Shopify-Order 对象中所有字段的列表,请参阅 Shopify 文档中的订单对象

将 Shopify-Order 对象映射到标准订单

Shopify-Order 对象中的字段子集映射到 Customer Profiles 中的标准订单对象。

下表列出了哪些字段可以从 Shopify-Order 对象映射到标准订单。

如果源中存在 order_status_url,则 StatusCodeACTIVATED。否则 StatusCodeDRAFT

Shopify 订单来源字段 标准订单目标字段
id 属性。 ShopifyOrderId
客户.id 属性。 ShopifyCustomerId
canceled_at CancelledDate
取消原因 CancelReason
closed_at ClosedDate
created_at CreatedDate
currency 货币
电子邮件 CustomerEmail
财务状况 状态
订单状态_网址 StatusCode
配送状态 FulfillmentStatus
网关 Gateway
名称 名称
note AdditionalInformation
订单状态_网址 StatusUrl
phone CustomerPhone
processed_at ProcessedDate
总折扣 TotalDiscounts
总行商品价格 TotalItemsPrice
总价格 TotalPrice
总配送价格_set.shop_money.amount TotalShippingPrice
total_tax TotalTax
已收到的总提示数 TotalTipReceived
总重量 TotalWeight
updated_at UpdatedDate
账单地址.address1 BillingAddress.Address1
账单地址.address2 BillingAddress.Address2
账单地址.city BillingAddress.City
billing_address.zip BillingAddress.PostalCode
账单地址。省份 BillingAddress.省
账单地址。国家 BillingAddress. 国家
账单地址.name BillingAddress.Name
付款详情信用卡号 CreditCardNumber
付款详情信用卡公司 CreditCardCompany
配送地址.address1 ShippingAddress.Address1
配送地址.address2 ShippingAddress.Address2
配送地址.city ShippingAddress.City
shipping_address.zip ShippingAddress.PostalCode
配送地址.省份 ShippingAddress.省
配送地址.国家 ShippingAddress. 国家
配送地址.name ShippingAddress.Name
line_items [] .title OrderItems[]. 标题
line_items [] .price OrderItems[] .Price
line_items []。数量 OrderItems[]. 数量

示例

以下示例介绍了如何将源字段映射到目标字段。

"shopifyOrderId": { "Source": "_source.detail.event.detail.payload.id", "Target": "_order.Attributes.ShopifyOrderId" }

来自 Shopify 对象中的 Shopify-Order 客户数据使用以下索引与 Amazon Connect 标准订单相关联。

标准索引名称 Shopify 订单来源字段
_shopifyOrderId id

例如,您可以在 ListProfileObjectsAPI 中ObjectFilter.KeyName使用 _shopifyOrderId as 来查找标准订单。你可以使用将和设置为的 ListProfileObjectsAPI 来查找与特定配置文件关联的 Shopify-Order ProfileId 对象。ObjectTypeName Shopify-Order