Square Order - merchant_token与location_id相同吗?

时间:2016-03-22 22:52:27

标签: square-connect

我有一个Square订单。

我想获得与订单相关联的付款记录(以便我可以获得itemization[])。

我有Square命令中的payment_id。但是,我还需要发出订单的location_id来访问端点。

documentation并不清楚Order我能在哪里得到这个。

我能找到的最接近的是merchant_token(没有记录,但是在回复中),但在构建应用程序之前我需要确定这个假设。

任何人都可以澄清吗?

1 个答案:

答案 0 :(得分:0)

我假设您使用List Orders端点来获取Order个对象?如果是这样,您在该请求的路径中提供的location_id将始终与返回的订单相关付款的location_id相同。

您应该依赖此保证而不是端点返回的merchant_token字段。