Skip to content
SETSimple Easy Transactions
SET DocsSET Crypto API Suite and SET API referenceCurrent as of 2026-11-21 · wallet release 7d8a79fb
Browse: SET API

SET Crypto API Suite · Pay out

Top up an underfunded payout

POST/v1/payouts/{payout}/fund

Key scope: write · Success: 201

Tops up a fixed-output payout that the provider reported as underfunded, from the payout's own custodial wallet. Once per shortfall.

Path parameters

payout stringrequired
The payout's id, po_…. An unknown id answers 404 payout_unknown.

Headers

Idempotency-Key string
Any unique string, so a retry runs once. See Idempotency.

Body

amount string
USDC, dollars and cents as a string, for example "10.00". It defaults to underfundedBy and may be more; less answers 400 amount_too_small.

Notes

  • Needs the write scope. Any account type.
  • POST /v1/payouts/{payout}/fund applies only to fixed-output payouts: those created with destinationAmount, which SET switches on per deployment (features.fixedOutputPayouts; otherwise creating one answers 503 fixed_output_payouts_disabled).
  • A fixed-output payout is underfunded when the rate moves before the provider takes the funds.
  • The payout must be in state underfunded with underfundedBy set (409 payout_not_underfunded).
  • The payout's wallet must hold enough USDC (409 balance_too_low).
  • What the conversion does not need comes back as fee credit.
  • The top-up is a second transfer from the payout's wallet into the payout's first transfer.
  • The answer is the payout plus funding (id, amount, transfer). The state stays underfunded until the provider applies the top-up; underfundedBy reads null.
  • A second call for the same shortfall answers 409 funding_already_sent; if the provider reports a new shortfall, it can be topped up again.
  • Event payout.funding_sent.
  • A self-custody wallet's payout is never underfunded this way.
  • The example was made with a sandbox key; the provider's report of a 10.00 shortfall was simulated, since the sandbox cannot move a rate.
  • This example is a recorded run of SET's own code (wallet release e9b03447) with a sandbox key; ids and times are that run's.

Errors

  • 404 payout_unknown
  • 409 payout_not_underfunded
  • 400 amount_invalid
  • 400 amount_too_small
  • 503 custodial_wallets_disabled
  • 403 operator_cannot_pay_out
  • 403 restricted
  • 409 initiation_required
  • 409 balance_too_low
  • 409 recipient_incomplete
  • 409 funding_already_sent

All codes: Errors.