gpt4 book ai didi

shopify - 如何判断一个Shopify订单是否是通过亚马逊 channel 下的?

转载 作者:行者123 更新时间:2023-12-05 05:15:18 24 4
gpt4 key购买 nike

我正在为特定订单查询 Shopify API,我想知道如何确定该订单是否按照 Shopify 文档中的描述在我们的亚马逊卖家 channel 下达并发送至 Shopify:https://help.shopify.com/en/manual/sell-online/amazon-sales-channel/processing-orders .在该页面的“履行订单”部分,它显示:

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

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

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

作为 Shopify Plus 的客户,我们询问了他们的 Guru 支持团队,他们如何实现“标记为亚马逊”部分,得到的答复是:

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 响应的一些不同元素或名称/值对来编写正确的映射。

最佳答案

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

"source_name":"sell-on-amazon"

关于shopify - 如何判断一个Shopify订单是否是通过亚马逊 channel 下的?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51731669/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com