Manage disputes
These APIs allow you to manage disputes raised via either API or dynamic flow.
This primary resource that you will be interacting with when managing your disputes.
Unique identifier of the dispute
Card transaction ID
Profile ID
Dispute reason, you can find all the possible values here
Dispute overall status, it is either ACTIVE
or CLOSED
Dispute detailed status
Explanation for subStatus
Time when the dispute was created
Creator of the dispute, it is currently set to the user id
Time when the dispute was last updated
Whether the dispute can be withdrawn
{"id": "b4eae16c-b3a9-4327-b0bd-6a2ad430d803","transactionId": 476873,"profileId": 14547572,"reason": "WRONG_AMOUNT","status": "CLOSED","subStatus": "WITHDRAWN","statusMessage": "Withdrawn","createdAt": "2024-03-18T03:47:52.493Z","createdBy": "9867661","lastUpdatedAt": "2024-03-27T02:30:27.374Z","canWithdraw": false}
GET /v3/spend/profiles/{{profileId}}/disputes?status=ACTIVE
Dispute status, can be either ACTIVE
or CLOSED
Card transaction id
The maximum number of disputes to return per page. This number can be between 10 - 100, and will default to 10
The page number to retrieve the next set of disputes. The number has to be greater than 1, and will default to 1
Response
Returns a list of disputes
curl -X GET https://api.sandbox.transferwise.tech/v3/spend/profiles/{{profileId}}/disputes?status=ACTIVE \-H 'Authorization: Bearer <your api token>'
{"totalCount": 2,"disputes": [{"id": "51e2dc60-9e4b-4ff5-b917-b90cc5e1ecfb","transactionId": 2040,"profileId": 16605997,"reason": "NEVER_ARRIVED","status": "ACTIVE","subStatus": "SUBMITTED","statusMessage": "Submitted","createdAt": "2024-03-08T08:30:14.989Z","createdBy": "6097861","lastUpdatedAt": "2024-03-08T08:30:14.989Z","canWithdraw": true},{"id": "9c5ca0cb-00d6-41f7-8214-8cfdb11388a7","transactionId": 3405,"profileId": 16605997,"reason": "CANCELLED_ORDER","status": "ACTIVE","subStatus": "SUBMITTED","statusMessage": "Submitted","createdAt": "2024-03-27T02:24:16.878Z","createdBy": "6097861","lastUpdatedAt": "2024-03-27T02:24:16.878Z","canWithdraw": true}]}
GET /v3/spend/profiles/{{profileId}}/disputes/{{disputeId}}
Retrieves a dispute based on the disputeId
.
Response
Returns a Dispute.
curl -X GET https://api.sandbox.transferwise.tech/v3/spend/profiles/{{profileId}}/disputes/{{disputeId}} \-H 'Authorization: Bearer <your api token>'
{"id": "51e2dc60-9e4b-4ff5-b917-b90cc5e1ecfb","transactionId": 2040,"profileId": 16605997,"reason": "NEVER_ARRIVED","status": "ACTIVE","subStatus": "SUBMITTED","statusMessage": "Submitted","createdAt": "2024-03-08T08:30:14.989Z","createdBy": "6097861","lastUpdatedAt": "2024-03-08T08:30:14.989Z","canWithdraw": true}
You can only withdraw a dispute if canWithdraw
is set to true
PUT /v3/spend/profiles/{{profileId}}/disputes/{{disputeId}}/status
The value must be set to CLOSED
Response
Returns a Dispute.
curl -X PUT https://api.sandbox.transferwise.tech/v3/spend/profiles/{{profileId}}/disputes/{{disputeId}}/status \-H 'Authorization: Bearer <your api token>' \-H 'Content-Type: application/json' \-d `{"status": "CLOSED"}`
{"id": "51e2dc60-9e4b-4ff5-b917-b90cc5e1ecfb","transactionId": 2040,"profileId": 16605997,"reason": "NEVER_ARRIVED","status": "CLOSED","subStatus": "WITHDRAWN","statusMessage": "Withdrawn","createdAt": "2024-03-08T08:30:14.989Z","createdBy": "6097861","lastUpdatedAt": "2024-03-27T13:12:28.390Z","canWithdraw": false}