The REST Admin API is a legacy API as of October 1, 2024. Starting April 1, 2025, all new public apps must be built exclusively with the GraphQL Admin API. For details and migration steps, visit our migration guide.
Dispute Evidence
shopify_payments_dispute_evidences
access scope.Dispute evidence is submitted by the merchant to support the legitimacy of a dispute .
Endpoints
- get/admin/api/latest/shopify_
payments/disputes/{dispute_ id}/dispute_ evidences. json Returns evidence associated with the dispute - put/admin/api/latest/shopify_
payments/disputes/{dispute_ id}/dispute_ evidences. json Updates dispute evidence
The Dispute Evidence resource
Properties
The ID of the dispute evidence.
The ID of the dispute that the dispute evidence belongs to.
The activity logs associated with the dispute evidence.
The customer's email address.
The customer's first name.
The customer's last name.
The uncategorized text for the dispute evidence.
The mailing address for shipping that is provided by the customer.
The cancellation policy disclosure associated with the dispute evidence.
The cancellation rebuttal associated with the dispute evidence.
The refund policy disclosure associated with the dispute evidence.
The refund refusal explanation associated with the dispute evidence.
The Dispute Evidence resource
Anchor to GET request, Returns evidence associated with the disputegetReturns evidence associated with the dispute
Retrieves evidence associated with dispute ID.
Retrieves dispute evidence by dispute ID
Retrieves dispute evidence by dispute ID
/admin/api/2025-07/shopify_ payments/disputes/598735659/dispute_ evidences. json
Response
examples
Retrieves dispute evidence by dispute ID
curl -X GET "https://your-development-store.myshopify.com/admin/api/2025-07/shopify_payments/disputes/598735659/dispute_evidences.json" \ -H "X-Shopify-Access-Token: {access_token}"
await admin.rest.resources.DisputeEvidence.find({ session: session, dispute_id: 598735659, });
# Session is activated via Authentication test_session = ShopifyAPI::Context.active_session ShopifyAPI::DisputeEvidence.find( session: test_session, dispute_id: 598735659, )
// Session is built by the OAuth process await shopify.rest.DisputeEvidence.find({ session: session, dispute_id: 598735659, });
response
HTTP/1.1 200 OK{"dispute_evidence":{"id":819974671,"payments_dispute_id":598735659,"access_activity_log":null,"billing_address":{"id":867402159,"address1":"123 Amoebobacterieae St","address2":"","city":"Ottawa","province":"Ontario","province_code":"ON","country":"Canada","country_code":"CA","zip":"K2P0V6"},"cancellation_policy_disclosure":null,"cancellation_rebuttal":null,"customer_email_address":"example@shopify.com","customer_first_name":"Kermit","customer_last_name":"the Frog","product_description":"Product name: Draft\nTitle: 151cm\nPrice: $10.00\nQuantity: 1\nProduct Description: good board","refund_policy_disclosure":null,"refund_refusal_explanation":null,"shipping_address":{"id":867402159,"address1":"123 Amoebobacterieae St","address2":"","city":"Ottawa","province":"Ontario","province_code":"ON","country":"Canada","country_code":"CA","zip":"K2P0V6"},"uncategorized_text":"Sample uncategorized text","created_at":"2025-07-01T14:28:21-04:00","updated_at":"2025-07-01T14:31:37-04:00","submitted_by_merchant_on":null,"fulfillments":[{"shipping_carrier":"UPS","shipping_tracking_number":"1234","shipping_date":"2017-01-01"},{"shipping_carrier":"FedEx","shipping_tracking_number":"4321","shipping_date":"2017-01-02"}],"dispute_evidence_files":{"cancellation_policy_file_id":null,"customer_communication_file_id":539650252,"customer_signature_file_id":799719586,"refund_policy_file_id":null,"service_documentation_file_id":null,"shipping_documentation_file_id":799719586,"uncategorized_file_id":567271523}}}
Anchor to PUT request, Updates dispute evidenceputUpdates dispute evidence
Updates dispute evidence associated with the dispute ID.
Submits dispute evidence request
Submits dispute evidence request
Update dispute evidence's information
Update dispute evidence's information
Show dispute_evidence properties
The activity logs associated with the dispute evidence.
The cancellation policy disclosure associated with the dispute evidence.
The cancellation rebuttal associated with the dispute evidence.
The customer's email address.
The customer's first name.
The customer's last name.
The refund policy disclosure associated with the dispute evidence.
The refund refusal explanation associated with the dispute evidence.
The uncategorized text for the dispute evidence.
/admin/api/2025-07/shopify_ payments/disputes/598735659/dispute_ evidences. json
Response
examples
Submits dispute evidence request
curl -d '{"dispute_evidence":{"submit_evidence":true}}' \ -X PUT "https://your-development-store.myshopify.com/admin/api/2025-07/shopify_payments/disputes/598735659/dispute_evidences.json" \ -H "X-Shopify-Access-Token: {access_token}" \ -H "Content-Type: application/json"
const { admin, session } = await authenticate.admin(request); const dispute_evidence = new admin.rest.resources.DisputeEvidence({session: session}); dispute_evidence.dispute_id = 598735659; dispute_evidence.submit_evidence = true; await dispute_evidence.save({ update: true, });
# Session is activated via Authentication test_session = ShopifyAPI::Context.active_session dispute_evidence = ShopifyAPI::DisputeEvidence.new(session: test_session) dispute_evidence.dispute_id = 598735659 dispute_evidence.submit_evidence = true dispute_evidence.save!
// Session is built by the OAuth process const dispute_evidence = new shopify.rest.DisputeEvidence({session: session}); dispute_evidence.dispute_id = 598735659; dispute_evidence.submit_evidence = true; await dispute_evidence.save({ update: true, });
response
HTTP/1.1 200 OK{"dispute_evidence":{"id":819974671,"payments_dispute_id":598735659,"access_activity_log":null,"billing_address":{"id":867402159,"address1":"123 Amoebobacterieae St","address2":"","city":"Ottawa","province":"Ontario","province_code":"ON","country":"Canada","country_code":"CA","zip":"K2P0V6"},"cancellation_policy_disclosure":null,"cancellation_rebuttal":null,"customer_email_address":"example@shopify.com","customer_first_name":"Kermit","customer_last_name":"the Frog","product_description":"Product name: Draft\nTitle: 151cm\nPrice: $10.00\nQuantity: 1\nProduct Description: good board","refund_policy_disclosure":null,"refund_refusal_explanation":null,"shipping_address":{"id":867402159,"address1":"123 Amoebobacterieae St","address2":"","city":"Ottawa","province":"Ontario","province_code":"ON","country":"Canada","country_code":"CA","zip":"K2P0V6"},"uncategorized_text":"Sample uncategorized text","created_at":"2025-07-01T14:28:21-04:00","updated_at":"2025-07-01T14:31:37-04:00","submitted_by_merchant_on":"2025-07-01T14:31:37-04:00","fulfillments":[{"shipping_carrier":"UPS","shipping_tracking_number":"1234","shipping_date":"2017-01-01"},{"shipping_carrier":"FedEx","shipping_tracking_number":"4321","shipping_date":"2017-01-02"}],"dispute_evidence_files":{"cancellation_policy_file_id":null,"customer_communication_file_id":539650252,"customer_signature_file_id":799719586,"refund_policy_file_id":null,"service_documentation_file_id":null,"shipping_documentation_file_id":799719586,"uncategorized_file_id":567271523}}}
Update dispute evidence's information
curl -d '{"dispute_evidence":{"access_activity_log":"https://example.com/access-activity-log","cancellation_policy_disclosure":"https://example.com/cancellation-policy","cancellation_rebuttal":"https://example.com/cancellation-rebuttal","customer_email_address":"customer@example.com","customer_first_name":"John","customer_last_name":"Doe","refund_policy_disclosure":"https://example.com/refund-policy","refund_refusal_explanation":"Product must have receipt of proof of purchase","uncategorized_text":"Any additional notes","shipping_address_attributes":{"address1":"1 Infinite Loop","address2":"Muppet Studio","city":"Cupertino","zip":"95014","country_code":"US","province_code":"CA"},"fulfillments_attributes":[{"shipping_carrier":"FedEx","shipping_tracking_number":4321,"shipping_date":"2017-01-02T13:00:00+00:00"}]}}' \ -X PUT "https://your-development-store.myshopify.com/admin/api/2025-07/shopify_payments/disputes/598735659/dispute_evidences.json" \ -H "X-Shopify-Access-Token: {access_token}" \ -H "Content-Type: application/json"
const { admin, session } = await authenticate.admin(request); const dispute_evidence = new admin.rest.resources.DisputeEvidence({session: session}); dispute_evidence.dispute_id = 598735659; dispute_evidence.access_activity_log = "https://example.com/access-activity-log"; dispute_evidence.cancellation_policy_disclosure = "https://example.com/cancellation-policy"; dispute_evidence.cancellation_rebuttal = "https://example.com/cancellation-rebuttal"; dispute_evidence.customer_email_address = "customer@example.com"; dispute_evidence.customer_first_name = "John"; dispute_evidence.customer_last_name = "Doe"; dispute_evidence.refund_policy_disclosure = "https://example.com/refund-policy"; dispute_evidence.refund_refusal_explanation = "Product must have receipt of proof of purchase"; dispute_evidence.uncategorized_text = "Any additional notes"; dispute_evidence.shipping_address_attributes = { "address1": "1 Infinite Loop", "address2": "Muppet Studio", "city": "Cupertino", "zip": "95014", "country_code": "US", "province_code": "CA" }; dispute_evidence.fulfillments_attributes = [ { "shipping_carrier": "FedEx", "shipping_tracking_number": 4321, "shipping_date": "2017-01-02T13:00:00+00:00" } ]; await dispute_evidence.save({ update: true, });
# Session is activated via Authentication test_session = ShopifyAPI::Context.active_session dispute_evidence = ShopifyAPI::DisputeEvidence.new(session: test_session) dispute_evidence.dispute_id = 598735659 dispute_evidence.access_activity_log = "https://example.com/access-activity-log" dispute_evidence.cancellation_policy_disclosure = "https://example.com/cancellation-policy" dispute_evidence.cancellation_rebuttal = "https://example.com/cancellation-rebuttal" dispute_evidence.customer_email_address = "customer@example.com" dispute_evidence.customer_first_name = "John" dispute_evidence.customer_last_name = "Doe" dispute_evidence.refund_policy_disclosure = "https://example.com/refund-policy" dispute_evidence.refund_refusal_explanation = "Product must have receipt of proof of purchase" dispute_evidence.uncategorized_text = "Any additional notes" dispute_evidence.shipping_address_attributes = { "address1" => "1 Infinite Loop", "address2" => "Muppet Studio", "city" => "Cupertino", "zip" => "95014", "country_code" => "US", "province_code" => "CA" } dispute_evidence.fulfillments_attributes = [ { "shipping_carrier" => "FedEx", "shipping_tracking_number" => 4321, "shipping_date" => "2017-01-02T13:00:00+00:00" } ] dispute_evidence.save!
// Session is built by the OAuth process const dispute_evidence = new shopify.rest.DisputeEvidence({session: session}); dispute_evidence.dispute_id = 598735659; dispute_evidence.access_activity_log = "https://example.com/access-activity-log"; dispute_evidence.cancellation_policy_disclosure = "https://example.com/cancellation-policy"; dispute_evidence.cancellation_rebuttal = "https://example.com/cancellation-rebuttal"; dispute_evidence.customer_email_address = "customer@example.com"; dispute_evidence.customer_first_name = "John"; dispute_evidence.customer_last_name = "Doe"; dispute_evidence.refund_policy_disclosure = "https://example.com/refund-policy"; dispute_evidence.refund_refusal_explanation = "Product must have receipt of proof of purchase"; dispute_evidence.uncategorized_text = "Any additional notes"; dispute_evidence.shipping_address_attributes = { "address1": "1 Infinite Loop", "address2": "Muppet Studio", "city": "Cupertino", "zip": "95014", "country_code": "US", "province_code": "CA" }; dispute_evidence.fulfillments_attributes = [ { "shipping_carrier": "FedEx", "shipping_tracking_number": 4321, "shipping_date": "2017-01-02T13:00:00+00:00" } ]; await dispute_evidence.save({ update: true, });
response
HTTP/1.1 200 OK{"dispute_evidence":{"id":819974671,"payments_dispute_id":598735659,"access_activity_log":"https://example.com/access-activity-log","billing_address":{"id":867402159,"address1":"1 Infinite Loop","address2":"Muppet Studio","city":"Cupertino","province":"California","province_code":"CA","country":"United States","country_code":"US","zip":"95014"},"cancellation_policy_disclosure":"https://example.com/cancellation-policy","cancellation_rebuttal":"https://example.com/cancellation-rebuttal","customer_email_address":"customer@example.com","customer_first_name":"John","customer_last_name":"Doe","product_description":"Product name: Draft\nTitle: 151cm\nPrice: $10.00\nQuantity: 1\nProduct Description: good board","refund_policy_disclosure":"https://example.com/refund-policy","refund_refusal_explanation":"Product must have receipt of proof of purchase","shipping_address":{"id":867402159,"address1":"1 Infinite Loop","address2":"Muppet Studio","city":"Cupertino","province":"California","province_code":"CA","country":"United States","country_code":"US","zip":"95014"},"uncategorized_text":"Any additional notes","created_at":"2025-07-01T14:28:21-04:00","updated_at":"2025-07-01T14:31:40-04:00","submitted_by_merchant_on":null,"fulfillments":[{"shipping_carrier":"UPS","shipping_tracking_number":"1234","shipping_date":"2017-01-01"},{"shipping_carrier":"FedEx","shipping_tracking_number":"4321","shipping_date":"2017-01-02"},{"shipping_carrier":"FedEx","shipping_tracking_number":"4321","shipping_date":"2017-01-02"}],"dispute_evidence_files":{"cancellation_policy_file_id":null,"customer_communication_file_id":539650252,"customer_signature_file_id":799719586,"refund_policy_file_id":null,"service_documentation_file_id":null,"shipping_documentation_file_id":799719586,"uncategorized_file_id":567271523}}}