Ecommerce Shopify WordPress Discussion

Shopify check out API error "This action requires merchant approval for write_checkouts scope"

I'm encountering an issue when making a POST request to the Shopify API for creating a checkout. The error message I'm receiving is: "[API] This action requires merchant approval for write_checkouts scope." Here are the details of my setup: Shopify API Version: admin/api/2023-07/checkouts.json Headers: "X-Shopify-Access-Token": "xxxxxxxxxxxxxxx" "Content-Type": "application/json" "cookie": "xxxxxxxxxxxxxxx" I'm trying to checkout the cart items, but it seems that the required write_checkouts scope is missing. However, I couldn't find an option for write_checkouts in the Shopify Admin API Configuration. Here are the steps I've taken: Checked App Permissions: I'm using a third-party app to access the Shopify store. I've verified that the app has been configured with the necessary permissions. Private Apps: I've created a private app in Shopify and ensured that it has the required permissions. OAuth Scopes: I've selected the write_checkouts scope when configuring my app. Access Token: I'm using the correct access token associated with my app. API Version: I'm using admin/api/2023-07/checkouts.json, which appears to be a future date in the Shopify Admin API. Is this version and endpoint combination supported by Shopify? I'd appreciate any guidance on how to resolve this issue and successfully create checkouts via the Shopify API. Thank you for your assistance. Posting this refined text on Stack Overflow should provide the necessary context for the community to help you address your Shopify API issue effectively.
Admin API does not do checkouts. I think you want to shift your focus to Storefront API as that is indeed used to create checkouts. So in your code, instead of trying to create a checkout via /admin/api, try using the correct Storefront API URL and then maybe you will see that indeed, you asked for write_checkout functionality and indeed, it was granted and that it works. Attention to details!

December 30, 2023

TurboCommerce make the better internet purchasing globaly

Turbo Multi-language Translator

Make the better internet purchasing globaly

Turbosify SEO Speed Booster

5.0 (7) Free plan available
Get better conversions by improving store loading speed Installed

Turbo Multi-language Chat - AI Customer service in one hand

TurboCommerce make the better internet purchasing globaly
Our products

The help you need, when you need it

App by Turbo Engine

3 apps • 5.0 average rating

Turbosify Speed Booster

5.0 (7)
Get better conversions by optimizing shopify store Google page speed Installed

Turbosify Translator for Wordpress Woocommerce

5.0 (74) Free Wordpress Woocommerce Plugin
Translate your wordpress website to multiple language within 1 click, no configuration needed, no No technical required

Grow your business here

Whether you want to sell products down the street or around the world, we have all the tools you need.