Checkout Token Needed to Build the Shopify App

nchoraria
Shopify Partner
6 0 0

We are building an app where we can from abandoned checkout we can directly create a Draft Order as the payment success status is received from Payment Gateway. 

We have notice that Shopify Admin API allows me to get checkout data by token for example :**"****/admin/api/2021-07/checkouts/{token}.json"**

We are using the same API to get checkout data. We have notice that here I have to pass**Token**but, in**Admin->Ordres->Abandoned Checkouts** but we only get checkout ID and shop name as parameter So, how to get Checkout Token. 

Support need to call get the Checkout Token. 

 

Reply 1 (1)
csam
Shopify Staff (Retired)
Shopify Staff (Retired)
267 40 46

Hi @nchoraria 

You can get the token via the Abandoned Checkouts API https://shopify.dev/api/admin/rest/reference/orders/abandoned-checkouts

You'll want to use the "token" field, not the "cart_token" field. You should be able to use this for your checkouts API calls.

CS | API Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog