Create a payout

POST/payouts

Pay money out of one of the environment's vaults. The payout is created queued and Stridge takes it from there; a client that changes its mind rejects it while it is still pending.

  • A reference_id the vault already holds answers 409 payout_reference_taken, naming the payout that holds it in error.payout.

    That is what makes a create safe to repeat: a caller retrying a request it is unsure landed reads back the payout it already made rather than paying twice. A payout in flight, a confirmed one and an expired one all hold their reference and answer that 409; Stridge support may still retry an expired payout under it.

  • A payout that certainly moved no money frees its reference, and a create naming it answers 201 with a new payout.

    That is a payout a client rejected while it was parked (it never started, has no transaction and is not forceful), and a failed payout that certainly sent nothing. A failed or rejected payout that may have paid (it carries a transaction, or is forceful, or nothing shows that its send stayed unsent) holds its reference and answers that 409 until, on request, Stridge support confirms that no transaction landed, and then the reference is free too.

Show 9 more details
  • The refusals.

    vault_id, reference_id, to_address, network_symbol and asset are required, and a body without one, or with one that is only whitespace, answers 422 parameter_missing naming it; a member of the wrong type, a vault_id that is not a UUID, a type outside normal|forceful and an expired_at that is not a date-time answer 422 parameter_invalid naming the member, and a member the body does not declare answers 400 parameter_unknown naming it. Without a quote_id, stating neither amount nor usd_amount answers 422 parameter_missing naming amount; stating both, a usd_amount that is not a positive decimal, or an amount that is zero, whose members disagree, or whose asset or decimals are not the body's asset and its decimals on the chain (for a routed payout, destination_asset and its decimals on destination_network_symbol, which default to asset and network_symbol when left out), answers 422 parameter_invalid naming it. A to_address that does not check out for the chain, a network_symbol or asset the environment does not support and an expired_at that is in the past or too far out each answer 422 parameter_invalid naming the member.

  • What the vault cannot pay.

    A vault without the balance answers 422 balance_insufficient, and one without the gas to send it 422 gas_insufficient; a vault with no wallet on the chain answers 422 vault_wallet_missing, and a usd_amount Stridge cannot price answers 422 payout_price_unavailable. Where a token pays its own network fee (a TIP-20 transfer on Tempo, unless the workspace deducts the fee from the amount sent), the balance has to cover the amount and that fee, beside the fee of each payout of the token the vault already has queued, and the balance_insufficient message names the fee; a fee that cannot be priced yet answers 422 miner_fee_unpriced.

  • A vault the environment does not hold answers 404 resource_missing naming vault_id, resolved before any of the checks the body's schema does not state, so a caller cannot learn that another environment's vault exists by watching which refusal it gets.

  • A routed payout.

    destination_network_symbol or destination_asset naming another network or asset pays the recipient through a cross-chain route. A pair no provider quotes, or a network not served here, answers 422 route_unavailable, routed payouts not enabled for the workspace 422 routed_payouts_disabled, a vault network or asset routes cannot leave 422 route_source_unsupported, a vault gas no gas station funds 422 gas_station_missing, and a miner fee that cannot be priced 422 miner_fee_unpriced. A quote_id past its expires_at, or one whose route a payout has already started paying through, answers 422 quote_expired; one that names no quote, prices another payout or is bound to another payout whose route has not started, or one on a payout that is not routed, answers 422 parameter_invalid naming it.

  • A quote_id fixes the amount.

    The payout pays the quote's destination_amount, so the body may leave out both amount and usd_amount. A usd_amount beside a quote_id answers 422 parameter_invalid naming quote_id. A stated amount is first held to the rules above, and then, once the quote itself passes the checks above, must equal the quote's destination_amount; any other answers 422 parameter_invalid naming quote_id.

  • Retrying the create.

    Send an Idempotency-Key and a retry with the same key and the same body within 24 hours answers the first 201 again and pays nothing more. The same key with a different body answers 400 idempotency_key_reused, and a retry while the first create is still running answers 409 idempotency_key_in_use. Without a key, reference_id is what keeps a retry from paying twice.

  • Who may.

    In live it is an owner's alone: a developer or a viewer answers 403 permission_denied, checked before the step-up. In a sandbox an owner and a developer may, and a viewer answers 403 permission_denied.

  • Step-up.

    In live, a person needs a fresh step-up (totp or backup_code, never email) no older than 15 minutes, which the act renews; without one it answers 403 step_up_required, and an owner with no authenticator is answered enrolment_required: true. A sandbox never asks.

  • A resetting sandbox.

    While a sandbox's reset runs it answers 409 environment_resetting.

Header parameters

  • X-Stridge-Environmentstring <uuid>optional

    Which environment the request acts inside, on an operation a session and an API key both call. Learn more

    Show full description

    It is required under a person's session, exactly as EnvironmentHeader describes: a session request that omits it answers 400 with environment required, and one naming an environment the caller holds no membership of answers 404.

    An API key names its own environment, so a request made with one omits this header. A key request that sends it answers 400 with environment header not accepted, whatever it names, rather than having the header ignored: a header that is silently ignored hides the integration bug that sent it.

  • Idempotency-Keystringoptional

    A caller-chosen key making this request safe to retry. Sent, the server remembers what the first request with it produced; omitted, every request is a new one. Learn more

    Show full description

    The same key with the same parameters returns the first result, status and body both, and does nothing a second time. So a retry after a dropped connection is safe whether or not the first attempt landed. The parameters are compared as parsed, not as bytes: the query with its names sorted and the JSON body decoded, so member order, spacing and escaping never make two requests differ, while any changed value does.

    What is remembered is the answer of an attempt that began execution, success or failure, a 500 included. A refusal made before execution is not remembered, so a retry with the same key runs afresh once its cause is fixed: a validation error (400, 422), a 409 conflict, a 429, a 403 step_up_required, and any answer carrying Retry-After. An answer whose body is larger than 64 KiB is not remembered either, and an operation may say that its 500 is not; a retry of either runs the request again. What the first attempt did stands, so a create that took a unique value answers that value's conflict on the retry: a payout whose first attempt took its reference_id answers 409 payout_reference_taken.

    The same key with different parameters answers 400 with idempotency key replayed with a different body: a key names one request, and reusing it for another is a client bug rather than a retry. A replay while the first request is still in flight answers 409 at once with a request with this idempotency key is still in flight, and the remedy is to retry once the first has answered.

    Keys are scoped to the environment the request acts inside, and to its reset: one environment's key never answers another environment's request, and a key used before a sandbox reset runs afresh after it.

    An operation that acts on a workspace or on the account rather than inside an environment, such as creating a workspace or requesting go-live in the dashboard, scopes its keys to the caller and to its path, so the same key sent for another workspace is a separate request and never a replay.

Request body

  • vault_idstring <uuid>required

    The vault to pay from. A vault outside the environment is refused.

  • reference_idstringrequired

    The caller's own identifier for this payment. A reference a payout in the vault holds answers 409 payout_reference_taken naming that payout, so a retried create reads back the payout it already made.

    Show full description

    A reference freed by a payout that certainly moved no money is free for this create.

  • to_addressstringrequired

    Where the money goes. It must be valid for network_symbol.

  • network_symbolstringrequired

    The chain to pay on, as the chain's own slug.

  • assetstringrequired

    The asset's ticker, whatever its case. It names the asset paid, and the payout answers the asset's own spelling.

  • How much of the asset to pay, as a positive TokenAmount. Its asset is the body's asset, whatever its case, and its decimals the asset's decimals on network_symbol.

    Show full description

    For a routed payout it is what the recipient receives: its asset is destination_asset (the body's asset when that is left out) and its decimals that asset's decimals on destination_network_symbol (the body's network_symbol when that is left out). Any other answers 422 parameter_invalid naming amount.

    • amountstringrequired

      The amount in the asset's base units: digits only, no sign, no exponent and no leading zero ("0" for zero). At most a uint256, the widest on-chain amount.

    • amount_decimalstringrequired

      The exact human amount, amount / 10^decimals: no sign, no exponent, no leading zero before the point other than a lone 0, and no trailing zero after it ("12.5", "0.000001", "3").

    • decimalsinteger <int32>required

      The asset's decimals on its network, which amount_decimal is scaled by.

    • assetstringrequired

      The symbol of the asset the amount is in (USDC), so a fee or a total never mixes units.

  • usd_amountstring

    What value to pay in USD, as a positive decimal string, letting Stridge convert.

  • typestringenum normal · forcefuldefault "normal"

    Whether the vault's available balance is respected. forceful bypasses the soft-balance guard; omitted, the payment is normal.

  • expired_atstring <date-time>

    When to stop attempting the payment. It must be in the future and within 12 hours of now; omitted, Stridge picks its own window.

  • remarkstring

    A free-form note to carry on the payout.

  • destination_network_symbolstring

    The chain the recipient is paid on, when it is not network_symbol.

    Show full description

    A payout to another network or asset pays through a cross-chain route, to_address is valid for this chain, and amount is what the recipient receives, stated in destination_asset (the body's asset when that is left out) at its decimals on this chain (network_symbol when this is left out).

  • destination_assetstring

    The asset the recipient is paid in, when it is not asset.

  • max_slippage_bpsinteger

    The slippage a routed payout's route may take, in basis points; omitted, Stridge's default.

  • quote_idstring

    Pays through the route a payout quote (POST /payouts/quotes) holds, while it is valid, for the quote's destination_amount. amount may then be left out; a stated one must be a valid amount for the payout and equal that destination_amount.

    Show full description

    A stated usd_amount, or an amount of another value, answers 422 parameter_invalid naming quote_id.

Responses

The payout was created.

  • idstring <uuid>required

    The payout's own identifier.

  • objectstringrequired

    The object's type, always payout.

  • environment_idstring <uuid>required

    The environment whose money this payout moves. It is carried on the object rather than implied by the request, so a payout detached from the request it arrived on still says which world it left.

  • livemodebooleanrequired

    true when environment_id names a live environment and false in a sandbox. It is carried on the object itself, so a payload read on its own, a logged response or a webhook body, still says which side of the boundary it came from.

  • vault_idstring <uuid>required

    The vault the money leaves. It is the term a caller narrows this list by, and the vault must belong to the environment the request is scoped to.

  • reference_idstringrequired

    The caller's own identifier for this payment. While this payout holds it, a second create naming it answers 409 payout_reference_taken naming this payout. Only a payout that certainly moved no money frees it, and a later payout in the vault may then carry the same reference.

Show 14 more fields
  • to_addressstringrequired

    Where the money goes, in the chain's own encoding.

  • network_symbolstringrequired

    The chain the payment is made on, as the chain's own slug.

  • assetstringrequired

    The ticker of the asset the vault pays in.

  • How much of the asset is being paid, as a TokenAmount in the asset's own decimals on network_symbol. A payout sized by amount carries the figure the caller stated; one sized by usd_amount carries what Stridge converted it to, rounded down to the asset's smallest unit.

    Show full description

    A payout stored with a figure finer than that unit is stated rounded down to it, the quantity the chain was sent; one whose asset the network no longer lists is stated in its own asset, at the decimals of its stored figure. A routed payout's amount is what the recipient receives, in route.destination_asset at its decimals on route.destination_network_symbol, the same figure as route.destination_amount; route.source_amount is what the vault spends.

    • amountstringrequired

      The amount in the asset's base units: digits only, no sign, no exponent and no leading zero ("0" for zero). At most a uint256, the widest on-chain amount.

    • amount_decimalstringrequired

      The exact human amount, amount / 10^decimals: no sign, no exponent, no leading zero before the point other than a lone 0, and no trailing zero after it ("12.5", "0.000001", "3").

    • decimalsinteger <int32>required

      The asset's decimals on its network, which amount_decimal is scaled by.

    • assetstringrequired

      The symbol of the asset the amount is in (USDC), so a fee or a total never mixes units.

  • usd_amountstringrequired

    What the payment is worth in USD, as a decimal string, or the empty string when no price could be read when the payout was created. A caller may state this INSTEAD of amount and let Stridge convert, in which case rate says what it converted at.

  • ratestring | nullrequired

    The conversion Stridge used between the asset and USD, or null when it recorded none. It is an opaque passthrough: a client renders it and does not compute with it.

  • statusstringrequiredenum requested · queued · confirmed · rejected · expired · failed

    Where the payout got to. requested and queued are the two states a client may still reject out of; confirmed, rejected, expired and failed are terminal, and rejecting one answers 409.

    Show full description

    rejected is a first-class terminal state here. A cancelled payment left to lapse to expired would lose the distinction between a payment nobody acted on and one somebody refused. This contract keeps them apart, and Stridge answers what the contract states.

  • tx_idstring | nullrequired

    The on-chain transaction that carried the payment, or null before one exists.

  • remarkstring | nullrequired

    A free-form note the caller attached, or null.

  • errorstring | nullrequired

    Why a failed payout failed, or null.

  • expired_atstring | null <date-time>required

    When the payment stops being attemptable: the window the caller stated at create, within 12 hours of now, or an hour after creation when it stated none. Every payout has one.

  • created_atstring <date-time>required

    When the payment was requested. RFC3339 UTC, Z suffixed. The list is ordered on it, newest first.

  • confirmed_atstring | null <date-time>required

    When the payment was confirmed on chain, or null until it is.

  • How a payout to another network or asset reaches its recipient, or null for a payout on the vault's own network and asset.

    • destination_network_symbolstringrequired

      The chain the recipient is paid on.

    • destination_assetstringrequired

      The asset the recipient is paid in.

    • What the vault spends, the provider's fee included.

    • What the recipient receives.

    • providerstringrequired

      The provider carrying the route.

    • provider_feestringrequired

      The provider's fee, in the source asset.

    • gas_fundingstring | nullrequiredenum vault · central · tenant · null

      Who pays the network fee, or null until that is decided.

    • network_fee_paidstring | nullrequired

      The network fee every transaction the vault sent for the route paid, approvals and failed calls included, or null until they land.

    • source_tx_idstring | nullrequired

      The transaction that sent the money on the source chain, or null before it exists.

    • destination_tx_idstring | nullrequired

      The transaction that paid the recipient, or null before it exists.

    • The legs the vault sent on the source chain, in the order it sent them.

Errors

The error.code values this operation can return. Each one links to its entry in the error catalogue, which explains the cause and the fix.

Request
curl "https://api.stridge.com/v2/payouts" \
  -X POST \
  -H "Authorization: Bearer $STRIDGE_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "vault_id": "7c1e0a94-31d6-4a52-9f83-2b4c5d6e7f80",
  "reference_id": "ref-0001",
  "to_address": "0x2222222222222222222222222222222222222222",
  "network_symbol": "ethereum",
  "asset": "USDC",
  "amount": {
    "amount": "12500000",
    "amount_decimal": "12.5",
    "decimals": 6,
    "asset": "USDC"
  },
  "usd_amount": "100.50",
  "type": "normal",
  "expired_at": "2026-06-01T12:00:00Z",
  "remark": "October vendor payment",
  "destination_network_symbol": "base",
  "destination_asset": "USDC",
  "max_slippage_bps": 50,
  "quote_id": "0199b1a0-0000-7000-8000-000000000000"
}'

Set your secret key as STRIDGE_SECRET_KEY (sent as Authorization: Bearer).

Response201
"id": "9b2d4f61-3c8a-4e7b-a1d5-6f0e2c9b8a47",
"object": "payout",
"environment_id": "3f2a6d7e-6b1c-4f2a-9a11-0b53f8d6b2c1",
"livemode": false,
"vault_id": "7c1e0a94-31d6-4a52-9f83-2b4c5d6e7f80",
"reference_id": "ref-0001",
"to_address": "0x2222222222222222222222222222222222222222",
"network_symbol": "ethereum",
"asset": "USDC",
"amount": "12500000",
"amount_decimal": "12.5",
"decimals": 6,
"asset": "USDC"
},
"usd_amount": "100.5",
"rate": "1.00",
"status": "queued",
"tx_id": "0xabc123",
"remark": "October vendor payment",
"error": "insufficient vault balance",
"expired_at": "2026-06-01T12:00:00Z",
"created_at": "2026-05-31T18:04:11Z",
"confirmed_at": "2026-06-01T09:12:03Z",
"destination_network_symbol": "base",
"destination_asset": "USDC",
"amount": "12500000",
"amount_decimal": "12.5",
"decimals": 6,
"asset": "USDC"
},
"amount": "12500000",
"amount_decimal": "12.5",
"decimals": 6,
"asset": "USDC"
},
"provider": "relay",
"provider_fee": "0.21",
"gas_funding": "vault",
"network_fee_paid": "1200000",
"source_tx_id": "0xabc123",
"destination_tx_id": "0xdef456",
"index": 0,
"kind": "approve",
"status": "confirmed",
"tx_id": "0xabc123",
"fee": "46000",
"error": "reverted",
"sent_at": "2026-01-01T00:00:00Z",
"finished_at": "2026-01-01T00:01:00Z"
}
]
}
}