Get a checkout object using API

maxim-danilov
New Member
5 0 0

Hello! 🙂

We use the shopify platform. We have an online shop.

We have a specific task:
a) we have the checkout url:
https://some.myshopify.com/11365610631/checkouts/34cec6f6fa244ab00ab17f3762cf3fa9 ;  34cec6f6fa244ab00ab17f3762cf3fa9 is a checkout token
b) we need to get this checkout object using a shopify API. We have only the url above.

Tried:
1) GET /admin/api/2020-01/checkouts/#{token}.json (the docs: https://help.shopify.com/en/api/reference/sales-channels/checkout#show-2020-01 ) - it doesn't work. The endpoint accepts only a checkout id (but not a checkout token). There is the typo in the docs.

Questions:

1) How can we get the checkout object using the url: https://some.myshopify.com/11365610631/checkouts/34cec6f6fa244ab00ab17f3762cf3fa9
2) How can we 'get a checkout by a checkout token' using API?

Thanks!

 
 
 
 
 
Replies 2 (2)

vix
Shopify Staff
540 103 121

Hi @maxim-danilov 

 

The checkout API is to be used by Sales Channels. It will retrieve the checkouts that it has created. Are you building a sales channel or is this a private app on an individual store? What is the intended outcome? 

 

Let me know and I can assist further, 

To learn more visit the Shopify Help Center or the Community Blog.

kh1em98
Tourist
6 0 1

I am using private app