Focuses on API authentication, access scopes, and permission management.
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
or
Wondering what I am missing here as it is not making sense according to the documentation.
Cheers
Mark
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.
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
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.