GraphQL APIs for Order checkout

Vinita_Kasliwal
Visitor
3 0 1

Dear Experts

I am developing an app and using GraphQL apis

When the user checkout what all API should be used

I am not able to get the order ID

I checked this one

https://shopify.dev/tutorials/create-a-checkout-with-storefront-api

As well as this link

https://shopify.dev/docs/admin-api/graphql/reference

Both do not have the order ID being returned as a response

Can you please confirm how I get that

After I Get the order Id from the checkout process is when I should be calling the payment gateway service right?

Kindly help understand the end to end flow.


Regards

Vinita

Replies2(2)
Vinita_Kasliwal
Visitor
3 0 1

Is there anyone who could answer and assist?

monDeang
Shopify Partner
3 0 1

I am currently working on the same checkout process. I am not there yet but I believe, if you do the complete checkout using one of the APIs, it returns the order object which contains the order number. I am hoping this is enough to complete the checkout process and display the order confirmation as such. I hope this helps!

Screen Shot 2023-04-28 at 11.17.09 AM.png