API Checkout

Hello, good morning.

I have a partner developing an integration with our e-commerce, but he’s having trouble to generating test orders.

The return he receives is: “[API] This action requires merchant approval for write_checkouts scope.”
Could help me please to authorize access to him?

We allready release the acess at the private API, including, all permissions from “Storefront API”, but still return de same errow: “[API] This action requires merchant approval for write_checkouts scope.”

Here, bellow, is the test structure we are performing, and the screenshot:

curl --location --request POST
https://52c66dbd8074b96ce26a7037d4eac2a0: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@selecao-adega-marketplace.myshopify.com/admin/api/2022-01/checkouts .json’
–header ‘X-Shopify-Access-Token: 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’
–header ‘Content-Type: text/plain’
–data-raw '{
“checkout”: {
“line_items”: [
{
“variant_id”: 7605988786409,
“quantity”: 1
}
],
“shipping_address”: [
{
“zip”: “05542000”,
“city”: “São Paulo”,
"coun
{
“errors”: “[API] This action requires merchant approval for write_checkouts scope.”
}
.net c#

Updating Media

Could you please, check if the code structure was correct?

Thank you.

It sounds like you’re trying to use the REST Admin API to create a checkout. This is an API that’s exclusively for sales channels. You currently don’t have the access scopes to be able to use this API.

In the large majority of cases, apps should be using the Storefront GraphQL API to create checkouts on Shopify. The scopes that you have (storefront API) will allow you to create checkouts with your access token. It’s what you should be using!