Square Connect API - 如何获得 location_id?
Square Connect API - how to get location_id?
我已经集成了 iOS SDK 并且它在支付过程中运行良好。付款成功后,我得到 transaction_id 和其他 2 个 ID。
所以现在,我想列出所有交易 https://docs.connect.squareup.com/api/connect/v2/#endpoint-listtransactions
我有我的应用程序的应用程序 ID 和个人访问令牌。
我提到了 Square Connect API。但它需要 location_id 与 HTTP 请求一起传递 https://docs.connect.squareup.com/api/connect/v2/#endpointpaths
我不知道我从哪里得到我的应用程序的 location_id。一旦我得到location_id,我就可以提出请求并获得所有交易,然后我也可以提出退款请求。
有 suggestions/Help 吗?
为了获得您的 location_id
,您应该调用 locations 端点并选择您想代表哪个位置发出请求。
尝试转到您的 locations list,然后单击一个位置。之后位置 ID 将显示在您的 URL 中。
我已经集成了 iOS SDK 并且它在支付过程中运行良好。付款成功后,我得到 transaction_id 和其他 2 个 ID。
所以现在,我想列出所有交易 https://docs.connect.squareup.com/api/connect/v2/#endpoint-listtransactions 我有我的应用程序的应用程序 ID 和个人访问令牌。
我提到了 Square Connect API。但它需要 location_id 与 HTTP 请求一起传递 https://docs.connect.squareup.com/api/connect/v2/#endpointpaths
我不知道我从哪里得到我的应用程序的 location_id。一旦我得到location_id,我就可以提出请求并获得所有交易,然后我也可以提出退款请求。
有 suggestions/Help 吗?
为了获得您的 location_id
,您应该调用 locations 端点并选择您想代表哪个位置发出请求。
尝试转到您的 locations list,然后单击一个位置。之后位置 ID 将显示在您的 URL 中。