如何判断一个Shopify订单是否是通过亚马逊渠道下的?

How to determine if a Shopify order was placed via the Amazon channel?

我正在 Shopify API 中查询特定订单,我想知道如何确定该订单是否已在我们的亚马逊卖家渠道下达并发送至 Shopify,如 Shopify 文档中所述: https://help.shopify.com/en/manual/sell-online/amazon-sales-channel/processing-orders。该页面的 "Fulfilling Orders" 部分显示:

All new orders placed through Amazon appear in your orders list and are marked as Amazon.

订单 API 的真实 JSON 响应如下所示:https://help.shopify.com/en/api/reference/orders/order#show

我找不到任何迹象表明该订单可能来自亚马逊。我确实找到了履行服务(只是一个简单的 Ctrl F "amazon"),但那是另一回事。

作为 Shopify Plus 客户,我们询问了他们的 Guru 支持团队,他们如何实施 "marked as Amazon" 部分,得到的答复是:

Guru: Looking at all your orders you won't be able to differentiate. When you click through to a singular order though, you'll be able to see in its timeline that it came from Amazon instead of your Online store.

My team: mmm so if I connect though the API "orders.json?id=xxxx" the only way I can check it came from amazon is though the timeline?

Guru: As far as I'm aware that's the case. I can check with our development team to see if there's another indicator. Would I be able to email you back with any additional findings?

当然,我的团队仍在等待他们的答复,但我敢打赌 SO 的某个人以前已经遇到过这种情况。

有些人可能想知道为什么我需要知道订单来源。我们通过 Celigo 连接器将这些订单从 Shopify 发送到 Netsuite。 Amazon 订单需要与正常的 Shopify 订单打不同的 GL 帐户,我的任务是根据 JSON 响应中的一些差异化元素或 name/value 对来编写正确的映射。

当订单下来时,JSON 有一个名为 source_name 的字段,值应该是这样的:sell-on-amazon

"source_name":"sell-on-amazon"