shopify graphql api- draftrodercreate重定向以与折扣代码字段结帐
如果您熟悉Shopify draftroderCreate API,您会知道,在通过GraphQl突变检索Invoice_url时,它会将您重定向到结帐页面,但不会有折扣代码字段,并且Shopify文档对此很清楚,但是在检查一下时, apps( https://apps.shopify.com/draft-helper )但是在上述应用程序上,您将手动生成结帐链接。
我想知道如何通过GraphQl自动集成此内容。在检查控制台(网络)时,似乎他只是将草稿ID作为有效载荷传递。
If you are familiar with Shopify draftOrderCreate API, you know that when retrieving the invoice_url via the graphql mutation, it will redirect you to the checkout page but there will be no DISCOUNT CODE Field, and Shopify docs are clear with this, but upon checking some apps (https://apps.shopify.com/draft-helper) it is possible, but on the said app, you will manually generate the checkout link.
Here's a photo of what that app is doing
I am wondering how do i integrate this automatically via graphql. When checking the Console (Network) it seems like he is only passing the draft order id as payload.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
创建草稿订单时,您可以提供折扣。因此,如果您这样做,然后发送发票,则应正确应用折扣。
When you create a Draft Order, you can provide a discount. So if you do that, and then send the invoice, the discount should be applied correctly.