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

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

将 Shopify 对象映射到标准订单

本主题列出了 Shopify 对象中的哪些字段映射到客户资料中标准订单对象中的字段。

ShopifyDraftOrder-

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

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

Shopify-DraftOrder 对象中的一部分字段映射到客户资料中的标准订单对象。

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

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

Shopify-DraftOrder source field Standard order target field
id Attributes.ShopifyOrderId
customer.id Attributes.ShopifyCustomerId
note AdditionalInformation
email CustomerEmail
currency 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.Province
billing_address.country BillingAddress.Country
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.Province
shipping_address.country ShippingAddress.Country
shipping_address.name ShippingAddress.Name
invoice_url StatusUrl
total_price TotalPrice
total_tax TotalTax
line_items[].title OrderItems[].Title
line_items[].price OrderItems[].Price
line_items[].quantity OrderItems[].Quantity

示例

以下示例说明如何将源字段映射到目标字段。

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

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

Standard Index Name Shopify-DraftOrder source field
_shopifyOrderId id

例如,您可以在 ListProfileObjectsAPI 中ObjectFilter.KeyName使用 a_shopifyOrderId s 来查找标准订单。您可以使用将ProfileIdObjectTypeName设置为的 ListProfileObjectsAPI 来查找与特定个人资料关联的 Shopify-DraftOrder 对象Shopify-DraftOrder

Shopify 订单对象

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

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

Shopify-Order 对象中的一部分字段映射到客户资料中的标准订单对象。

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

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

Shopify-Order source field Standard order target field
id Attributes.ShopifyOrderId
customer.id Attributes.ShopifyCustomerId
cancelled_at CancelledDate
cancel_reason CancelReason
closed_at ClosedDate
created_at CreatedDate
currency Currency
email CustomerEmail
financial_status Status
order_status_url StatusCode
fulfillment_status FulfillmentStatus
gateway Gateway
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.Province
billing_address.country BillingAddress.Country
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.Province
shipping_address.country ShippingAddress.Country
shipping_address.name ShippingAddress.Name
line_items[].title OrderItems[].Title
line_items[].price OrderItems[].Price
line_items[].quantity OrderItems[].Quantity

示例

以下示例说明如何将源字段映射到目标字段。

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

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

Standard Index Name Shopify-Order source field
_shopifyOrderId id

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