Skip to main content
POST
Reverse a trade
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 required. This POST requires an Idempotency-Key header. Keys are cached for 24 hours. Reusing the same key with the same body returns the cached response; reusing it with different parameters returns a 422 error.

Errors

See the full v2 error reference for retry semantics and idempotency-specific codes.

Authorizations

Authorization
string
header
required

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

Headers

Idempotency-Key
string<uuid>
required

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"