这是我通过Shopify Admin API创建订单草稿的方式:
applied_discount
对象。打折效果很好。但是我不认为它确实与现有的折扣代码(在/admin/discounts
中)相关联。 Because their usage count is not getting incremented and they are showing up as "custom" discount on completed orders!
我想知道是否有更好的方法将折扣应用于订单草稿。为什么我们似乎只能发送现有折扣的ID,为什么我们必须手动构建applied_discount
对象?