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:
- Created a Shopify account
- Set up a development store
- Created a custom app with the necessary access scope permissions
- Copied the access token and API keys from the app settings
- Opened a dispute for a purchase on the development store
- Tried using the Python requests module to interact with the API
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:
{ “errors”: “Not Found” }
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!