Skip to main content
POST
Reverse a trade
v1 sunsets December 31, 2026. Migrate to v2 — see the migration guide.
Reverses an existing trade using an approved quote from Generate a reverse quote. Use this endpoint to:
  • Unwind a trade executed in error
  • Refund a customer at the quoted reversal rate
  • Correct a duplicate or mis-keyed execution
Idempotency is supported on v2 and v3 for this endpoint. v1 does not support idempotency keys — see Migration guide.

Errors

See the full v1 error reference.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Idempotency-Key
string<uuid>

V2 only. Unique key for an idempotent reverse trade request. Valid for 24 hours.

Example:

"523e4567-e89b-42d3-a456-426614174000"

Path Parameters

orgId
string
required

Body

application/json
tradeId
string<uuid>
required

Unique identifier of the trade being reversed

Example:

"123e4567-e89b-42d3-a456-426614174000"

quoteId
string<uuid>
required

Unique identifier of the approved reverse quote

Example:

"223e4567-e89b-42d3-a456-426614174000"

clientReferenceId
string

Optional client-supplied reference for the reversed trade

Example:

"customer-reversal-20260713-001"

Response

Trade reversed successfully

data
object
required
status
enum<string>
Available options:
success,
error
Example:

"success"

message
string
Example:

"Data fetched successfully"