v5

latestOpenAPI 3.1.02026-07-262421791.5 MB
disputes

Withdraw dispute

Withdraw a dispute by setting its status to CLOSED.

You can only withdraw a dispute if canWithdraw is true on the dispute resource.

put/v3/spend/profiles/{profileId}/disputes/{disputeId}/status

Path parameters

profileIdinteger required

Your profile ID.

disputeIdstring required

The dispute ID.

Headers

X-External-Correlation-Idstring uuid

Optional UUID for correlating requests across systems. If provided, Wise echoes it back in the response. Maximum 36 characters. Learn more.

Request body

status'CLOSED' required

Must be set to CLOSED.

Example request

{
  "status": "CLOSED"
}

Response

The updated dispute.

idstring

Unique identifier of the dispute.

transactionIdinteger

Card transaction ID.

profileIdinteger

Profile ID.

reasonstring

Dispute reason code.

status'ACTIVE' | 'CLOSED'

Dispute overall status.

subStatus'SUBMITTED' | 'IN_REVIEW' | 'REFUNDED' | 'REJECTED' | 'WITHDRAWN' | 'CONFIRMED' | 'REFUND_IN_PROGRESS' | 'ATTEMPTING_RECOVERY' | 'RECOVERY_UNSUCCESSFUL'

Dispute detailed status.

statusMessagestring

Explanation for subStatus.

createdAtstring date-time

Time when the dispute was created.

createdBystring

Creator of the dispute. Currently set to the user ID.

lastUpdatedAtstring date-time

Time when the dispute was last updated.

canWithdrawboolean

Whether the dispute can be withdrawn.

Example response

{
  "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"
}