Shopify Payment Disputes Access Scopes

arturgontijo
Shopify Partner
1 0 0

Hey,

I'd like to know how can I get the following scopes set for an Admin Token (custom app) and/or as a regular app?

shopify_payments_dispute_evidences
shopify_payments_dispute_file_uploads

I couldn't find them in the Admin API scopes list and when trying to set them in a regular app (using the Remix template), I get the error:

╭─ error ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                                                                         │
│  Version couldn't be created.                                                                                                           │
│                                                                                                                                         │
│  app-access                                                                                                                             │
│                                                                                                                                         │
│  Validation errors                                                                                                                      │
│    • scopes: The access scope is invalid: shopify_payments_dispute_evidences                                                            │
│                                                                                                                                         │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

(same for "shopify_payments_dispute_file_uploads")

Using an Admin Access Token with "all" available scopes set, I am able to fetch a dispute info using:

curl -G \
  -H 'Content-Type: application/json' \
  -H 'X-Shopify-Access-Token: ...' \
  'https://MY_STORE.myshopify.com/admin/api/2024-01/shopify_payments/disputes/DISPUTE_ID.json' | jq .

>>

{
  "dispute": {
    "id": DISPUTE_ID,
    "order_id": ...,
    "type": "chargeback",
    "amount": ...,
    "currency": .,
    "reason": ...,
    "network_reason_code": ...,
    "status": "...",
    "evidence_due_by": "2024-03-07T20:00:00-07:00",
    "evidence_sent_on": "2024-03-06T04:20:38-07:00",
    "finalized_on": "2024-03-14T14:44:13-07:00",
    "initiated_at": "2024-02-12T16:16:16-07:00"
  }
}

But I just got a "Not Found" error when trying to fetch its evidences (even knowing that there are evidences there)

curl -s -G \
  -H 'Content-Type: application/json' \
  -H 'X-Shopify-Access-Token: ...' \
  'https://MY_STORE.myshopify.com/admin/api/2024-01/shopify_payments/disputes/DISPUTE_ID/dispute_evidences.json'  | jq .

>>>

{
  "errors": "Not Found"
}



Replies 0 (0)