Skip to content

Payouts ​

Create payout ​

createPayout · POST /api/v1/payouts · scope payouts:write

Queues a payout from your treasury. 202 means the payout is stored, not sent: follow it with getPayout or its payout.* events.

available in listBalances must cover the amount, and the native asset's available the network fee. While spendable is true, a payout it does not cover fails with insufficient_balance, and nothing is sent. One it covers but the treasury cannot fund yet stays queued, spending no attempt, with waiting_reason treasury_underfunded, until the treasury can fund it. While spendable is false because a reorg is being resolved, the payout waits with reorg_in_progress; while the network's scanner has stopped (stale, halted or failing) or is at least its confirmation count behind, or a restored database's recovery waits for the operator, with network_unavailable. getPayout names every other wait.

On native XRP and SOL, a payout that reaches into the treasury's reserve is not refused: it waits like one the treasury cannot fund. On EVM and Bitcoin the fee is priced after the claim: a payout whose fee available cannot cover may first wait with treasury_underfunded, then fails with insufficient_balance once the treasury can fund it. An XRPL issued-currency payout whose treasury trust line refuses to send for more than its balance, such as one its issuer froze, does not wait: it fails at once with the refusal as failure.code, for example trust_line_is_frozen_by_the_issuer. So does one of a currency whose issuer set Global Freeze (issuer_global_freeze) or charges a transfer fee (issuer_transfer_fee_unsupported), or whose issuer's NoRipple on both trust lines stops the payment (issuer_blocks_rippling).

On Solana, XRPL and Bitcoin the network's node runs each payout before it is signed. One the node would refuse fails at once with node_refuses_the_transfer, unsigned and paying no fee. On XRPL a refusal about the destination fails with a code that names it instead: destination_account_below_reserve when the destination has no account and the payout is less than the network's base reserve, which a payment that creates an account must carry (1 XRP on mainnet when this was written), destination_account_not_found, destination_tag_required, or destination_refuses_the_sender when the destination takes payments only from senders it authorized. A Bitcoin payout below its destination's dust limit is refused here with 422 and amount_below_dust_limit, since no node relays such an output. An amount above what one transfer of the asset can carry (64 bits of base units for BTC, XRP, TRX and Solana assets, 256 bits for EVM and TRC-20 tokens) is refused with 400 and invalid_request.

On Tron and EVM each token payout is simulated before it is signed. One the token refuses, as under its issuer's blacklist or pause, fails at once, unsigned and paying no fee: token_refuses_the_transfer when the token refuses this destination or amount, and token_refuses_the_treasury when it refuses every transfer from the treasury.

A queued payout that can never be paid, one its lane set aside or one requested more than an hour ago, may be failed by an operator with failed_by_operator. Nothing was sent, and the amount and fee are available again. So may a Bitcoin payout one of whose coins another transaction spent, which none of its signed versions can then pay, with coins_spent_elsewhere.

external_id, your own reference for the payout, makes a retry safe at any age: every payout keeps it for good, so a repeat with the same external_id and body returns the first response, with Idempotent-Replayed, however late it comes and whatever its key. With another asset, amount, destination or fee_policy it answers 409 with resource_conflict, and nothing is queued.

Headers

NameTypeNote
Idempotency-KeystringOptional. Optional: the payout's external_id already makes a retry safe at any age. A key sent works as on createWallet: the same key with the same body returns the first response, another body answers 409 with idempotency_key_conflict, and the install keeps it for 24 hours.

Body

FieldTypeNote
sourceenumRequired. Every payout leaves from your treasury. One of treasury.
asset_iduuidRequired. The asset to pay, which also picks the network; there is no network_id. One that is unknown or not active answers 422 with asset_unavailable.
destinationobjectRequired.
destination.typeenumOptional. wallet_owner for a Solana token payout, address for everything else. Send an owner's address, never a token account: the token account is derived from the owner. One of address, wallet_owner. Default address.
destination.addressstringRequired. The receiver's address, in the network's own format: Bitcoin P2PKH, P2SH, Bech32 or P2TR; EIP-55 checksummed on EVM chains; TRON Base58Check; a Solana public key; an XRPL classic address. Known burn addresses are refused. Two spellings of one address are the same request.
destination.taginteger or nullOptional. The XRPL destination tag, when the receiver needs one.
destination.memostring or nullOptional. Refused unless null; no network takes a memo yet.
amountstringRequired. A decimal string greater than zero. Trailing zeroes are accepted, as in 125.500000, and dropped: the payout stores and returns 125.5. JSON numbers and exponent notation are refused.
fee_policyenumRequired. One of slow, normal, fast.
external_idstringRequired. Your reference for the payout, unique across the install for good. A repeat with the same external_id and body returns the first response at any age; with another body it answers 409. Control, format (such as bidirectional or zero-width) and line separator characters are refused.
sh
curl -sS "$FIATLESS_URL/api/v1/payouts" \
  -H "Authorization: Bearer $FIATLESS_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  --json @- <<JSON
{
  "source": "treasury",
  "asset_id": "$ASSET_ID",
  "amount": "1",
  "destination": {
    "address": "$ADDRESS"
  },
  "fee_policy": "slow",
  "external_id": "$EXTERNAL_ID"
}
JSON

Responses

StatusMeaning
202The payout is queued, or this is a replay of the same request. Headers: Location, Idempotent-Replayed.
400A malformed value or query string, an unknown field or query parameter, a body member sent twice or matching a field only in another case, a bad cursor, or no Idempotency-Key on a call that needs one. The codes are invalid_request and idempotency_key_required.
401No API key, or one the install does not know. The code is authentication_required. Headers: WWW-Authenticate.
403The key lacks the scope this call needs. The code is permission_denied.
409The key was used for another request, or the resource's state refuses the call, as for a payout external_id already used with another body. The codes are idempotency_key_conflict and resource_conflict, and on the webhook calls webhook_endpoint_limit_reached, webhook_endpoint_disabled and webhook_delivery_not_failed.
415The body was not sent as application/json. The code is unsupported_media_type.
422The asset cannot be used for this call, the amount has more precision than the asset, or a Bitcoin payout is below its destination's dust limit. The codes are asset_unavailable, invalid_amount_precision and amount_below_dust_limit.
500The install failed; the details stay in its logs. The code is internal_error.

202 Accepted

FieldTypeNote
iduuid
network_iduuidThe network of asset_id.
sourceenumEvery payout leaves from your treasury. One of treasury.
asset_iduuid
destinationobject
destination.addressstring
destination.typeenumOne of address, wallet_owner.
destination.taginteger or null
destination.memostring or null
amountstringCanonical non-negative plain decimal output with no exponent, sign, leading zeroes, or insignificant trailing fractional zeroes. Thus an accepted input 125.500000 is returned and idempotently stored as 125.5.
fee_policyenumOne of slow, normal, fast.
external_idstring or nullYour reference for the payout, as you sent it; null without one.
statusenumThe payout's status. While a reorganisation undoes its transaction it reads reorged. One of queued, signing, broadcast, confirming, confirmed, failed, reorged.
waiting_reasonenum or nullWhy a queued payout waits; null while nothing holds it, in any other status, and in the 202 of createPayout. One of treasury_underfunded, treasury_busy, treasury_nonce_drift, network_unavailable, reorg_in_progress, set_aside, retry_scheduled.
chain_transaction_iduuid or nullThe id of the payout's transaction, once linked.
tx_hashstring or nullThe transaction hash, once sent.
transactionTransaction or nullThe linked transaction, as getTransaction returns it.
failureobject or null
failure.codestring
failure.messagestringA message for people; never a provider's response, a secret or a stack trace.
failure.retryableboolean
created_atdate-time
updated_atdate-time
completed_atdate-time or null

Example · 202 Accepted

json
{
  "id": "c17401b0-2256-438c-b9fd-4b860c9216a7",
  "network_id": "7845483d-e3b5-4754-bcec-cc6c2019ad89",
  "source": "treasury",
  "asset_id": "311d52dc-f56b-40b3-b77d-b68fab806e29",
  "destination": {
    "type": "address",
    "address": "TVjsyZ7fYF3qLF6BQgPmTEZy1xrNNyVAAA",
    "tag": null,
    "memo": null
  },
  "amount": "125.5",
  "fee_policy": "normal",
  "external_id": "payout-48291",
  "status": "queued",
  "waiting_reason": null,
  "chain_transaction_id": null,
  "tx_hash": null,
  "transaction": null,
  "failure": null,
  "created_at": "2026-07-11T20:05:00Z",
  "updated_at": "2026-07-11T20:05:00Z",
  "completed_at": null
}

Get payout ​

getPayout · GET /api/v1/payouts/{id} · scope ledger:read

Returns a payout with its status, its transaction once one is linked, and why it failed or why it waits.

Path

NameTypeNote
iduuidRequired. The resource's id.
sh
curl -sS "$FIATLESS_URL/api/v1/payouts/$PAYOUT_ID" \
  -H "Authorization: Bearer $FIATLESS_KEY"

Responses

StatusMeaning
200The payout as it is now.
400A malformed value or query string, an unknown field or query parameter, a body member sent twice or matching a field only in another case, a bad cursor, or no Idempotency-Key on a call that needs one. The codes are invalid_request and idempotency_key_required.
401No API key, or one the install does not know. The code is authentication_required. Headers: WWW-Authenticate.
403The key lacks the scope this call needs. The code is permission_denied.
404The resource does not exist. The code is resource_not_found.
500The install failed; the details stay in its logs. The code is internal_error.

200 OK

FieldTypeNote
iduuid
network_iduuidThe network of asset_id.
sourceenumEvery payout leaves from your treasury. One of treasury.
asset_iduuid
destinationobject
destination.addressstring
destination.typeenumOne of address, wallet_owner.
destination.taginteger or null
destination.memostring or null
amountstringCanonical non-negative plain decimal output with no exponent, sign, leading zeroes, or insignificant trailing fractional zeroes. Thus an accepted input 125.500000 is returned and idempotently stored as 125.5.
fee_policyenumOne of slow, normal, fast.
external_idstring or nullYour reference for the payout, as you sent it; null without one.
statusenumThe payout's status. While a reorganisation undoes its transaction it reads reorged. One of queued, signing, broadcast, confirming, confirmed, failed, reorged.
waiting_reasonenum or nullWhy a queued payout waits; null while nothing holds it, in any other status, and in the 202 of createPayout. One of treasury_underfunded, treasury_busy, treasury_nonce_drift, network_unavailable, reorg_in_progress, set_aside, retry_scheduled.
chain_transaction_iduuid or nullThe id of the payout's transaction, once linked.
tx_hashstring or nullThe transaction hash, once sent.
transactionTransaction or nullThe linked transaction, as getTransaction returns it.
failureobject or null
failure.codestring
failure.messagestringA message for people; never a provider's response, a secret or a stack trace.
failure.retryableboolean
created_atdate-time
updated_atdate-time
completed_atdate-time or null