Development discussions around Shopify APIs
Hi,
I'm developing a payments app, to offer BNPL-like payment options in shopify.
I've managed to complete the payment process but I can't see how to get either the order_num or the checkout id related to the payment.
It is important in our case to have this information so that we can explain to the shopper what the shopper is paying for, in future installments.
For partial return we would need it too so that we can know which items have been returned.
Any idea how to get it?
Thanks!
@SeQura Do you figure out the way to get it?
I have the same problem. Is there anyone can help? Thanks
No, I didn't get a direct way to have it.
While I figure it out I've created a private app in the merchant with read_order scope. I use this access to query graphQL api for the order with the same checkout_token that we recieve at the payment endpoint, last part in the cancel url. From there I can get the order_num, checkout_id ....
With the order Id, I can get then using the REST Api all the order details.
Yes. Thanks for your sharing.
With checkout_token, i found out another way that no need to create a new private app.
We can use the webhook orders/create that would be called when an order is created and it would return checkout_token. So, we can map this to the one that we receive from cancel url.
User | RANK |
---|---|
10 | |
4 | |
3 | |
3 | |
3 |
As a business owner, have you ever wondered when your customer's first impression of yo...
By Skye Jun 6, 2023We're excited to announce improvements to the threaded messaging experience in our communi...
By TyW May 31, 2023Thank you to everyone who participated in our AMA with Klaviyo. It was great to see so man...
By Jacqui May 30, 2023