Skip to main content
POST
/
v1
/
disputes
/
{id}
/
resolve
Resolve a dispute
curl --request POST \
  --url https://api.getsly.ai/v1/v1/disputes/{id}/resolve \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "resolution": "full_refund",
  "refundAmount": 123,
  "notes": "<string>",
  "cancelMandate": true
}
'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "transfer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "status": "open",
    "reason": "service_not_received",
    "description": "<string>",
    "amount_disputed": "<string>",
    "currency": "<string>",
    "response_window_ends_at": "2023-11-07T05:31:56Z",
    "created_at": "2023-11-07T05:31:56Z",
    "requested_resolution": "full_refund",
    "evidence": [],
    "resolved_at": "2023-11-07T05:31:56Z",
    "resolution": "full_refund"
  },
  "refund_id": "<string>"
}

Authorizations

Authorization
string
header
required

API key (pk_test_* or pk_live_), JWT session, agent token (agent_), Ed25519 session (sess_), or portal token (portal_).

Path Parameters

id
string<uuid>
required

Body

application/json
resolution
enum<string>
required
Available options:
full_refund,
partial_refund,
credit,
no_refund,
other
refundAmount
number
notes
string
Maximum string length: 1000
cancelMandate
boolean

If the dispute relates to an AP2 mandate, optionally revoke it

Response

Resolved

data
object
required
refund_id
string