Shopify API如何生成发票,运输标签和运输清单?
您好,我正在尝试获取运输标签,发票和运输清单使用API shopify订单
我能够使用以下命令获得订单:
var request = require("request"); var options = { method: 'GET', url: 'https://<api key>:<password>@hostname/admin/orders.json', qs: { fulfillment_status: 'partial' }, headers: { 'postman-token': '2564af8e-df07-3bb8-3282-4956b70025b7', 'cache-control': 'no-cache' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
但我无法find任何API的端点,航运标签,发票,运输清单
我不认为你可以使用Shopify API创build发票。
但是,您可以使用Sufio等开票应用程序来获取商店中订单的PDF发票。
本页面介绍如何生成Shopify商店中发票的链接 。
例如,如果您商店的地址是shop.url
,请使用以下链接下载带有ID order.id
和number order.number
订单的PDF发票。
{{ shop.url }}/apps/sufio/invoice/download/?id={{ order.id }}&number={{ order.order_number }}
希望这可以帮助。