Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Submitting Evidence to Shopify Dispute via API #746

Open
humza-sami opened this issue Nov 21, 2024 · 0 comments
Open

Submitting Evidence to Shopify Dispute via API #746

humza-sami opened this issue Nov 21, 2024 · 0 comments

Comments

@humza-sami
Copy link

I am currently working on integrating the Shopify API to manage disputes programmatically. While I can access the dispute and its ID, I am having difficulty submitting evidence to the dispute using a backend language, specifically Python or Node.js. It would be great if someone provide guidance on how to properly structure the API request to submit evidence to a dispute?

I tried this code to get dispute data but its returning 404 error

url = f"https://{shop_url}/admin/api/{api_version}/shopify_payments/disputes/{dispute_id}/dispute_evidences.json"

headers = {"X-Shopify-Access-Token": access_token, "Content-Type": "application/json"}

response = requests.get(url, headers=headers)


if response.status_code == 200:

    dispute_evidence = response.json()

    print(json.dumps(dispute_evidence, indent=2))

else:
    print(f"Error: {response.status_code}")
    print(response.text)

How can I submit dispute evidence?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant