Correct Scope for reading Dispute resource

Correct Scope for reading Dispute resource

cammark
Shopify Partner
11 0 0

Hi All,

 

I have an issue with /disputes

 

Previously I utilised the scope

 

 

 

 

 

read_shopify_payments_disputes

 

 

 

 

 

 

However, with recent testing I have noticed that the disputes call is returning a 404.

 

 

 

 

 

https://{myStore}.myshopify.com/admin/api/2023-07/shopify_payments/disputes.json

 

 

 

 

 

 

I looked at the documentation as see that it now states it requires either of the following 2 scopes

 

 

 

 

 

shopify_payments_payouts or shopify_payments

 

 

 

 

 

 

However, trying to use either of these scopes results in the following error being returned

cammark_0-1689332637943.png

or 

cammark_1-1689332668924.png

 

Wondering what I am missing here as it is not making sense according to the documentation.

 

Cheers

Mark

 

Replies 3 (3)

lizk
Shopify Staff
246 58 74

Hi there 👋

Can you verify that the Shop that you are using is currently using Shopify Payments? 
Secondly, when you query disputes with the GraphQL API what response do you get? 

 

{
  shopifyPaymentsAccount {
    disputes(first: 5) {
      nodes {
        id
        initiatedAt
      }
    }
  }
}

 

 

You are correct to use the follow scope.

read_shopify_payments_disputes 

 The documentation is currently not correct, I will update that shortly. 

To learn more visit the Shopify Help Center or the Community Blog.

cammark
Shopify Partner
11 0 0

Hi,

 

I am using the REST API.

 

I am trying this call on a test store (because I cannot connect to live stores due to my app being public).

 

Would disputes not work with a test store?

 

 

Cheers

Mark

lizk
Shopify Staff
246 58 74

Disputes will work with development stores *if* you have Shopify Payments set enabled. 

To enable Shopify Payments on development store navigate to Settings > Payments > Activates Shopify Payments. Then complete the first step of the setup process. Then when you exit the set up process your development store should now be using Shopify Payments. And you should be able to query the disputes. 

To learn more visit the Shopify Help Center or the Community Blog.