Skip to Content
Developers
Money

Settle a buyer’s dispute

Needs the money:write scope. About scopes

Try it with a test key

Sends to https://api.traki.io

Test keys only. The key stays in this page while it is open and is never saved.

/v1/account/disputes/{id}/settle

Decides an open dispute, as the portal’s Accept and Reject do. accept credits the buyer (the disputed amount, or creditAmount; 0 accepts with no credit) on the buyer statement covering the charge; reject closes it with no credit. A dispute already decided answers 422 dispute_closed. Needs an Idempotency-Key, so a retry credits once.

Authorization

key
headerAuthorizationBearer <traki_account_…>

Path Parameters

id*string
Formatuuid

Request Body

application/json
  1. body
decision*string
Value in"accept""reject"
resolution?string

Why, shown to the buyer.

Length1 <= length <= 500
creditAmount?number

With accept: the credit, when it is not the disputed amount.

Range0 <= value <= 100000

Response Body

Success

application/json
  1. response
id*string
Formatuuid
code*string
buyer*
callId*|null
leadId*|null
reason*string
amount*string
currency*string
state*string
resolution*string|null
resolvedAt*string|null
creditedAmount*string
version*string
createdAt*string
updatedAt*string
Example Request
curl -X POST 'https://api.traki.io/v1/account/disputes/497f6eca-6276-4993-bfeb-53cbbbba6f08/settle' \  -H "Authorization: Bearer $TRAKI_KEY" \  -H 'Content-Type: application/json' \  -H 'Idempotency-Key: a-unique-id-for-this-change' \  -d '{  "decision": "accept"}'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "code": "string",  "buyer": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "externalId": "string",    "name": "string"  },  "callId": "4722cd84-0ec7-4ef5-8c34-1b0150f45f53",  "leadId": "3c6e2b8e-0e8f-48db-8791-27271df10113",  "reason": "string",  "amount": "string",  "currency": "string",  "state": "string",  "resolution": "string",  "resolvedAt": "string",  "creditedAmount": "string",  "version": "string",  "createdAt": "string",  "updatedAt": "string"}