Checkout api error

When I am trying to use Checkout API to create a checkout I am getting

“errors”: “[API] This action requires merchant approval for write_checkouts scope.” error

Could you please explain Why this is coming and how to resolve this error.

Hi @AmanDeep004

In order to create checkouts, your app needs to have the write_checkouts access scope.

Our dev docs also have examples of how you can use the API to confirm your app’s granted access scopes or make changes to your app’s scopes.

Hope that helps.

Could you please share the detailed steps of how I can give read and write_checkouts scope

Hi @AmanDeep004 . You can follow this guide to creating a Sales Channel which will open up the read, write checkouts scopes. Hope that helps!