What's your biggest current challenge? Have your say in Community Polls along the right column.
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Help w/ the Mystery: How to fix "This action requires merchant approval for read_checkouts scope" Er

Help w/ the Mystery: How to fix "This action requires merchant approval for read_checkouts scope" Er

mattpatagon
Shopify Partner
1 0 1

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).Screenshot 2023-02-03 at 17.28.04.png

 

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.

Replies 3 (3)

ShopifyDevSup
Shopify Staff
1453 238 525

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

didiaps
Tourist
4 0 2

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?

ShopifyDevSup
Shopify Staff
1453 238 525

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