All things Shopify and commerce
I'm trying to update a dispute evidence submission using Python, but I keep getting a 404 "Not Found" error. Here's what I've done so far:
I also tried using the curl command from the documentation but got the same error.
Here is the curl command I'm using:
curl -X GET "https://${shop_url}/admin/api/2024-10/shopify_payments/disputes/${disputeId}/dispute_evidences.json" \ -H "X-Shopify-Access-Token: ${access_token}" \ -H "Content-Type: application/json"
This returns the following error:
I have verified the values for ${shop_url} and ${disputeId}, and I am confident they are correct. I've also checked the Shopify API version (2024-10) and ensured the access token has the right permissions.
Has anyone encountered a similar issue or can provide guidance on what could be wrong? Any help would be greatly appreciated!
You'll probably want to use GraphQL instead. The REST API was deprecated in October of this year. Just get the ID and use mutation to update.
I have enabled all the scopes in my testing dev app. Still I am getting this error:
{
"errors": [
{
"message": "Access denied for disputeEvidenceUpdate field. Required access: `write_shopify_payments_dispute_evidences` access scope. Also: The user must have `manage_orders_information` permission.",
"locations": [
{
"line": 3,
"column": 3
}
],
"path": [
"disputeEvidenceUpdate"
],
"extensions": {
"code": "ACCESS_DENIED",
"documentation": "https://shopify.dev/api/usage/access-scopes",
"requiredAccess": "`write_shopify_payments_dispute_evidences` access scope. Also: The user must have `manage_orders_information` permission."
}
}
],
"data": {
"disputeEvidenceUpdate": null
},
"extensions": {
"cost": {
"requestedQueryCost": 12,
"actualQueryCost": 10,
"throttleStatus": {
"maximumAvailable": 2000.0,
"currentlyAvailable": 1990,
"restoreRate": 100.0
}
}
}
}
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025