Skip to main content
POST
Reverse a payout

Authorizations

X-API-Key
string
header
required

Organization API key. Format: "hp_live_{key}". Organization admins manage the key in the dashboard.

Headers

Idempotency-Key
string
required

Unique key for this reversal attempt. Replays with the same key never credit twice.

Path Parameters

accountId
string<uuid>
required

Trading account ID

payoutId
string<uuid>
required

Payout ID to reverse

Body

application/json
reason
string
required

Reason for the reversal (shown in webhooks and audit log)

Example:

"Payout cancelled by trader support"

Response

Payout reversed successfully

duplicate
boolean

true if this was an idempotent replay

payoutId
string

The reversed payout ID

amount
number

Amount credited back

balanceBefore
number

Account balance before the credit

balanceAfter
number

Account balance after the credit

reversedAt
string<date-time>

When the reversal was applied