Admin API: 'get a checkout by a token' doesn't work (bug?)

New Member
5 0 0

Hello!

We use shopify API. We need to get a checkout by a token.

There is an API for that: GET /admin/api/2020-01/checkouts/#{token}.json (the docs: https://help.shopify.com/en/api/reference/sales-channels/checkout#show-2020-01 )

1) I'm trying to get a checkout by a checkout token
GET https://ourshop.myshopify.com/admin/api/2019-10/checkouts/0cd4a604c588f869807b0339c539e877.json

Result: {"errors":"Not Found"}

2) When I use a checkout id (instead of a checkout token) the API works:
GET https://ourshop.myshopify.com/admin/api/2019-10/checkouts/8145802199149.json
Result: OK. The problem is we have only a checkout token. 

 

The questions are:
1) Is the API doc wrong? Typo?
2) I need to get a checkout using only a checkout token. How can I do that?

Thanks!



0 Likes