disputeEvidence
Returns dispute evidence details based on ID.
Anchor to Possible returnsPossible returns
- Anchor to ShopifyPaymentsDisputeEvidenceShopify•
Payments Dispute Evidence The evidence associated with the dispute.
- access
Activity •Log String The activity logs associated with the dispute evidence.
- billing
Address •MailingAddress The billing address that's provided by the customer.
- cancellation
Policy •Disclosure String The cancellation policy disclosure associated with the dispute evidence.
- cancellation
Policy •File ShopifyPayments Dispute File Upload The cancellation policy file associated with the dispute evidence.
- cancellation
Rebuttal •String The cancellation rebuttal associated with the dispute evidence.
- customer
Communication •File ShopifyPayments Dispute File Upload The customer communication file associated with the dispute evidence.
- customer
Email •Address String The customer's email address.
- customer
First •Name String The customer's first name.
- customer
Last •Name String The customer's last name.
- customer
Purchase •Ip String The customer purchase ip for this dispute evidence.
- dispute•Shopifynon-null
Payments Dispute! The dispute associated with the evidence.
- dispute
File •Uploads [Shopifynon-nullPayments Dispute File Upload!]! The file uploads associated with the dispute evidence.
- fulfillments•[Shopifynon-null
Payments Dispute Fulfillment!]! The fulfillments associated with the dispute evidence.
- id•ID!non-null
A globally-unique ID.
- product
Description •String The product description for this dispute evidence.
- refund
Policy •Disclosure String The refund policy disclosure associated with the dispute evidence.
- refund
Policy •File ShopifyPayments Dispute File Upload The refund policy file associated with the dispute evidence.
- refund
Refusal •Explanation String The refund refusal explanation associated with dispute evidence.
- service
Documentation •File ShopifyPayments Dispute File Upload The service documentation file associated with the dispute evidence.
- shipping
Address •MailingAddress The mailing address for shipping that's provided by the customer.
- shipping
Documentation •File ShopifyPayments Dispute File Upload The shipping documentation file associated with the dispute evidence.
- submitted•Boolean!non-null
Whether the dispute evidence is submitted.
- uncategorized
File •ShopifyPayments Dispute File Upload The uncategorized file associated with the dispute evidence.
- uncategorized
Text •String The uncategorized text for the dispute evidence.
- access
Returns evidence associated with the dispute
query ShopifyPaymentsDisputeEvidenceShow($id: ID!) {
disputeEvidence(id: $id) {
dispute {
amount {
amount
currencyCode
}
evidenceDueBy
evidenceSentOn
finalizedOn
id
initiatedAt
reasonDetails {
reason
networkReasonCode
}
status
type
}
}
}
curl -X POST \
https://your-development-store.myshopify.com/admin/api/2024-10/graphql.json \
-H 'Content-Type: application/json' \
-H 'X-Shopify-Access-Token: {access_token}' \
-d '{
"query": "query ShopifyPaymentsDisputeEvidenceShow($id: ID!) { disputeEvidence(id: $id) { dispute { amount { amount currencyCode } evidenceDueBy evidenceSentOn finalizedOn id initiatedAt reasonDetails { reason networkReasonCode } status type } } }",
"variables": {
"id": "gid://shopify/ShopifyPaymentsDisputeEvidence/819974671"
}
}'
const { admin } = await authenticate.admin(request);
const response = await admin.graphql(
`#graphql
query ShopifyPaymentsDisputeEvidenceShow($id: ID!) {
disputeEvidence(id: $id) {
dispute {
amount {
amount
currencyCode
}
evidenceDueBy
evidenceSentOn
finalizedOn
id
initiatedAt
reasonDetails {
reason
networkReasonCode
}
status
type
}
}
}`,
{
variables: {
"id": "gid://shopify/ShopifyPaymentsDisputeEvidence/819974671"
},
},
);
const data = await response.json();
const client = new shopify.clients.Graphql({session});
const data = await client.query({
data: {
"query": `query ShopifyPaymentsDisputeEvidenceShow($id: ID!) {
disputeEvidence(id: $id) {
dispute {
amount {
amount
currencyCode
}
evidenceDueBy
evidenceSentOn
finalizedOn
id
initiatedAt
reasonDetails {
reason
networkReasonCode
}
status
type
}
}
}`,
"variables": {
"id": "gid://shopify/ShopifyPaymentsDisputeEvidence/819974671"
},
},
});
session = ShopifyAPI::Auth::Session.new(
shop: "your-development-store.myshopify.com",
access_token: access_token
)
client = ShopifyAPI::Clients::Graphql::Admin.new(
session: session
)
query = <<~QUERY
query ShopifyPaymentsDisputeEvidenceShow($id: ID!) {
disputeEvidence(id: $id) {
dispute {
amount {
amount
currencyCode
}
evidenceDueBy
evidenceSentOn
finalizedOn
id
initiatedAt
reasonDetails {
reason
networkReasonCode
}
status
type
}
}
}
QUERY
variables = {
"id": "gid://shopify/ShopifyPaymentsDisputeEvidence/819974671"
}
response = client.query(query: query, variables: variables)