Skip to main content

Cancel Payout

Cancels a payout the recipient has not accepted yet and releases the money — principal and fee — back to your balance.

POST/api/payout/{payout_id}/cancel

Authentication​

Scope: payouts:write

Authorization: Bearer <YOUR_PAYOUT_KEY>
Idempotency-Key: <unique key per attempt>

Path Parameters​

FieldTypeDescriptionRequired
payout_idstringThe payout to cancel✅

Response Fields​

Returns the payout in the merchant view, with status: "cancelled" and funds_released: true.

Behavior​

  • Once the recipient has confirmed, the payout is on its way and cancellation is refused with not_cancellable.
  • Cancelling a payout that is already cancelled, expired or failed returns it unchanged rather than an error.

Request Samples​

curl -s -X POST https://luxfin.org/api/payout/po_9f3c1d7b2a8e4c15d0b6a291/cancel \
-H "Authorization: Bearer $PAYOUT_KEY" \
-H "Idempotency-Key: $(uuidgen)"