What's your biggest current challenge? Have your say in Community Polls along the right column.

[API] This action requires merchant approval for read_checkouts scope.

[API] This action requires merchant approval for read_checkouts scope.

alammediacarry
Shopify Partner
6 0 0

Hi there,

I am using Shopify SDK on my Framer site. Now i want to set a button that will get the checkout ID and send it to the Node JS application. There i want to call API for checkout to get line_items data. 

 let axiosConfig = {
      headers: {
        "X-Shopify-Access-Token": process.env.SHOPIFY_APP_TOKEN,
      },
    };
    console.log(axiosConfig);
    const data = await axios.get(
      `${process.env.SHOPIFY_APP_URL}/admin/api/2023-10/checkouts/${id}.json`,
      axiosConfig
    );
    console.log(data);

Now when i am calling this end point it getting checkout ID properly but it is giving me this error:

errors: '[API] This action requires merchant approval for read_checkouts scope.' 

Even though i have created App and giving them all access. You can check images.

alammediacarry_0-1702572361297.png

alammediacarry_1-1702572379194.png

Can you please help me or guide me in this problem?

 
Reply 1 (1)

pwngrg
Shopify Partner
4 0 0

hi, I am facing the same issue when I make a get request to {{storeUrl}}/admin/api/2023-10/checkouts/{{token}}.json I got error 403 

"[API] This action requires merchant approval for read_checkouts scope."

Screenshot from 2024-02-14 11-53-12.png