Menu
disputes
Returns a paginated list of all Shopify Payments disputes for the shop. Disputes occur when a buyer files a complaint with their payments provider, and the merchant must provide evidence to contest it.
Use it in a workflow
- Add a step and choose the Shopify connector.
- Pick the disputes action (under Disputes).
- Fill in the fields below, then reference the result from later steps as
{{disputes.response.data}}.
Query
This is the query the action sends by default. Edit it in the step's Query field to change which fields come back.
query Disputes($first: Int, $after: String, $last: Int, $before: String, $reverse: Boolean, $query: String) {
disputes(
first: $first
after: $after
last: $last
before: $before
reverse: $reverse
query: $query
) {
edges {
cursor
node {
amount
disputeEvidence
evidenceDueBy
evidenceSentOn
finalizedOn
id
initiatedAt
legacyResourceId
order
reasonDetails
status
type
}
}
nodes {
amount {
amount
currencyCode
}
disputeEvidence {
accessActivityLog
billingAddress
cancellationPolicyDisclosure
cancellationPolicyFile
cancellationRebuttal
customerCommunicationFile
customerEmailAddress
customerFirstName
customerLastName
customerPurchaseIp
dispute
disputeFileUploads
fulfillments
id
productDescription
refundPolicyDisclosure
refundPolicyFile
refundRefusalExplanation
serviceDocumentationFile
shippingAddress
shippingDocumentationFile
submitted
uncategorizedFile
uncategorizedText
}
evidenceDueBy
evidenceSentOn
finalizedOn
id
initiatedAt
legacyResourceId
order {
additionalFees
alerts
app
attribution
billingAddress
billingAddressMatchesShippingAddress
canMarkAsPaid
canNotifyCustomer
cancelReason
cancellation
cancelledAt
capturable
cartDiscountAmount
cartDiscountAmountSet
cartToken
channel
channelInformation
checkoutToken
clientIp
closed
closedAt
confirmationNumber
confirmed
createdAt
currencyCode
currentCartDiscountAmountSet
currentShippingPriceSet
currentSubtotalLineItemsQuantity
currentSubtotalPriceSet
currentTaxLines
currentTotalAdditionalFeesSet
currentTotalDiscountsSet
currentTotalDutiesSet
currentTotalPriceSet
currentTotalTaxSet
currentTotalWeight
customAttributes
customer
customerAcceptsMarketing
customerJourney
customerJourneySummary
customerLocale
discountCode
discountCodes
displayAddress
displayFinancialStatus
displayFulfillmentStatus
disputes
dutiesIncluded
edited
email
estimatedTaxes
fulfillable
fulfillmentsCount
fullyPaid
hasTimelineComment
id
landingPageDisplayText
landingPageUrl
legacyResourceId
merchantBusinessEntity
merchantEditable
merchantEditableErrors
merchantOfRecordApp
name
netPayment
netPaymentSet
note
number
originalTotalAdditionalFeesSet
originalTotalDutiesSet
originalTotalPriceSet
paymentCollectionDetails
paymentGatewayNames
paymentTerms
phone
physicalLocation
poNumber
presentmentCurrencyCode
processedAt
productNetwork
publication
purchasingEntity
referralCode
referrerDisplayText
referrerUrl
refundDiscrepancySet
refundable
registeredSourceUrl
requiresShipping
restockable
retailLocation
returnStatus
risk
riskLevel
shippingAddress
shippingLine
shopifyProtect
sourceIdentifier
sourceName
staffMember
subtotalLineItemsQuantity
subtotalPrice
subtotalPriceSet
tags
taxExempt
taxLines
taxesIncluded
test
totalCapturable
totalCapturableSet
totalCashRoundingAdjustment
totalDiscounts
totalDiscountsSet
totalOutstandingSet
totalPrice
totalPriceSet
totalReceived
totalReceivedSet
totalRefunded
totalRefundedSet
totalRefundedShippingSet
totalShippingPrice
totalShippingPriceSet
totalTax
totalTaxSet
totalTipReceived
totalTipReceivedSet
totalWeight
transactionsCount
unpaid
updatedAt
}
reasonDetails {
networkReasonCode
reason
}
status
type
}
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
}
}
Variables
Pass these as a JSON object in the step's Variables field.
{
"first": 0,
"after": "string",
"last": 0,
"before": "string",
"reverse": false,
"query": "string"
}
Response
Read the result with {{disputes.response.data.data.disputes}}. If the API returns errors, the step fails and they are at {{disputes.response.data.errors}}.
Need more? See the Shopify guide for connection setup and behaviour shared by every action.
Was this page helpful?