I am trying to submit Shopify dispute evidence using GraphQL. I have created a testing app and a test dispute in my development store. Here is the mutation I am using:
mutation ShopifyPaymentsDisputeEvidenceUpdate($id: ID!, $input: ShopifyPaymentsDisputeEvidenceUpdateInput!) {
disputeEvidenceUpdate(id: $id, input: $input) {
disputeEvidence {
uncategorizedText
dispute {
amount {
amount
currencyCode
}
evidenceDueBy
evidenceSentOn
finalizedOn
id
initiatedAt
reasonDetails {
reason
networkReasonCode
}
status
type
}
}
userErrors {
field
message
}
}
}
However, I am receiving the following error response:
{
"errors": [
{
"message": "Access denied for disputeEvidenceUpdate field. Required access: `write_shopify_payments_dispute_evidences` access scope. Also: The user must have `manage_orders_information` permission.",
"locations": [
{
"line": 3,
"column": 3
}
],
"path": [
"disputeEvidenceUpdate"
],
"extensions": {
"code": "ACCESS_DENIED",
"documentation": "https://shopify.dev/api/usage/access-scopes",
"requiredAccess": "`write_shopify_payments_dispute_evidences` access scope. Also: The user must have `manage_orders_information` permission."
}
}
],
"data": {
"disputeEvidenceUpdate": null
},
"extensions": {
"cost": {
"requestedQueryCost": 12,
"actualQueryCost": 10,
"throttleStatus": {
"maximumAvailable": 2000.0,
"currentlyAvailable": 1990,
"restoreRate": 100.0
}
}
}
}
I have enabled all the available access scopes in my app, but I could not find the specific scopes mentioned in the error (write_shopify_payments_dispute_evidences and manage_orders_information).
How can I resolve this issue and successfully submit dispute evidence?