A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
I'm going through a weird error when making a simple GET request using the Shopify REST Admin API. When I query with a GET request:
{store_url}/admin/checkouts.json
I can get all the checkouts. Now, when I query:
admin/api/2023-01/checkouts/<checkout_token>.json
I get this error { "errors": "[API] This action requires merchant approval for read_checkouts scope." }
I'm using the same store, same key. Its access scope is read_orders, a custom/private app. Of course there exists no read_checkouts scope in the credentials configuration (screenshot attached).
Any clue?
I tried swapping using the checkout id, checkout token, checkout key. I also tried calling the orders endpoint using the checkout token and id. No luck so far.
Hi @mattpatagon 👋
To use the Checkout API, the app must be approved as a sales channel rather than a custom app created from a merchant-admin.
Hope that helps!
Developer Support @ Shopify
- Was this reply helpful? Click Like to let us 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
How do I get this authorization to have a sales channel? I am interested in doing my own checkout within shopify. What do I need to have to get this sales channel authorization?
Hey @didiaps,
Requirements for building a sales channel can be found in the previous linked documentation, and are expanded on in this getting started guide. I'd suggest reviewing those docs on building a sales channel, as it breaks down requirements, contains important steps, considerations and details.
If you are looking to build a custom storefront on a store that leverages the Storefront API to create and update the cart object, create checkouts, among other available features, the following developer docs are provide a detailed overview and helpful guides to get started. There is also a dedicated community forum for questions around these features here: Storefront API and SDKs.
Cheers!
Shopify Developer Support
Developer Support @ Shopify
- Was this reply helpful? Click Like to let us 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