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 }}
希望这可以帮助。
- angular度$范围数据不会更新
- 如何使用节点js中的API密钥从REST api获取数据?
- Node.js写一个CD / DVD的API?
- nodejs https api请求错误错误:在TLSWrap.onread(net.js:568:26)处的exports._errnoException(util.js:1018:11)处读取ECONNRESET
- 使用Node和Angular从Last.fm API获取search结果
- Express CORS不起作用
- Google日历事件更改时更新数据库
- 如何通过Rally Node Rest API从recyclebin中恢复用户故事
- 股票市场API Node.JS