Create a Payout
Create a payout for an existing user that has a payout method saved to their account. Payout agent credentials require `idempotency_key` and accept only `user_id`, `amount`, `platform`, `account_id`, `idempotency_key`, and `metadata`.
Create a payout for an existing user that has a payout method saved to their account. Payout agent credentials require idempotency_key and accept only user_id, amount, platform, account_id, idempotency_key, and metadata.
AuthorizationBasic <token>application/json- body
Base schema for creating a payout
user_id*stringID of the user who you are creating the payout for.
uuidamount*integerAmount in cents to payout the user.
0 < valueplatform*stringPlatform that you are paying out the user through.
"paypal""venmo""ach""bank_transfer""cash_app""default"account_id?stringThe bank account ID you are paying to. Required for ach and intl_bank.
uuidfund?booleanCreates a transfer for the amount to the user before creating the payout. The funds are returned to the App Wallet if the payout does not succeed. Please ensure that you are handling transfer failure webhooks when using this option.
tax_exempt?booleanPayouts marked as tax_exempt will not be counted towards the 1099 threshold. Can be true only if fund is true.
idempotency_key?stringUUID that will be used to idempotently handle requests. Transfers with existing idempotency keys will be rejected.
uuidmetadata?|Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
payout_fee_party?stringOverrides the setting for which party will pay fees on this payout. This takes precedence over the default for your application.
"user""platform"payout_fee?Overrides the customer-facing fee for one payout. The effective fee cannot be lower than the Dots fee. Customer fee upcharges must be enabled for the app; contact support to enable them.
Created
application/json- response
The transfer object.
id?stringuuidcreated?stringdate-timeuser_id?stringuuidstatus?string"created""pending""failed""completed""reversed""canceled""flagged"error?stringWhy this transfer failed, as a stable Dots code. These codes are ours, not the payout provider's, so they stay the same no matter how a payout is routed. Branch on this rather than on error_message.
account_closed- the receiving account is closedaccount_not_found- the receiving account could not be foundinvalid_account_details- the receiving account details are invalid; collect them againname_mismatch- the recipient's name does not match the name on the receiving accountaccount_blocked- the receiving account cannot accept this transfertransfer_refused- the receiving bank refused the transferinsufficient_funds- the account had insufficient fundslimit_exceeded- the transfer exceeds a limit on the receiving accountamount_too_small- the amount is below the minimum for this destinationamount_too_large- the amount is above the maximum for this destinationdestination_not_supported- this payout destination is not supported; the recipient needs a different payout methodrecipient_info_required- more recipient information is required before this transfer can be sentrecipient_action_required- the recipient must sign in to their payout account and choose how to receive this transferrecipient_account_incomplete- the recipient must finish setting up or verifying their external payout account, outside of Dots, before they can receive this transferdeclined_for_risk- the transfer was declinedcard_unusable- the receiving card cannot accept this transfertemporarily_unavailable- the transfer could not be completed; retrying may succeedunknown- the transfer could not be completed, and we have no more specific code for it New codes may be added over time, so treat an unrecognized code the way you treatunknown. Omitted entirely when the transfer has no error, and always present whenerror_messageis.
"account_closed""account_not_found""invalid_account_details""name_mismatch""account_blocked""transfer_refused""insufficient_funds""limit_exceeded""amount_too_small""amount_too_large""destination_not_supported""recipient_info_required""recipient_action_required""recipient_account_incomplete""declined_for_risk""card_unusable""temporarily_unavailable""unknown"error_message?stringWhy this transfer failed, as a sanitized message safe to show to the recipient.
The wording is not part of the API contract and may change at any time, so do not parse it or compare against it. Branch on error instead.
Omitted entirely when the transfer has no error.
sender_details?|Who sent the money for a refill that arrived from an outside bank account by ACH, RTP, FedNow or wire, as reported by the sending bank.
Only present on refill transfers. null when no sender details were reported, such as for a wire Dots credited manually or a refill you created through the API. Any field may be null when the sending bank did not report it.
type?stringThe type of this transfer.
refill- refill of an API App or Organization's Dots Walletpayout- payout to a Userbalance- balance transfer between Dots Wallets, such as from an API App to a User's Dots Walletpayment- payment from a User to an API Appverification_debit- $1 debit from a User's bank account that verifies it during onboardingsettlement- legacy, currently unusedpayable- payable for Accounts Payable
"refill""payout""balance""payment""verification_debit""settlement""payable"amount?stringTransfer amount in cents.
external_data?transactions?array<>payout_link_id?stringID of the payout-link that the transfer belongs to.
uuidmetadata?||Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
curl -X POST 'https://api.dots.dev/api/v2/payouts' \ -H 'Content-Type: application/json' \ -d '{ "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5", "amount": 1, "platform": "paypal"}'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "created": "2019-08-24T14:15:22Z", "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5", "status": "created", "error": "account_closed", "error_message": "string", "sender_details": { "name": "string", "bank_name": "string", "routing_number": "string", "account_number_last4": "string", "company_identification": "string", "trace_number": "string", "reference": "string", "memo": "string" }, "type": "refill", "amount": "string", "external_data": { "account_id": "string", "external_id": "string", "platform": "ach" }, "transactions": [ { "id": 0, "amount": "string", "created": "2019-08-24T14:15:22Z", "source_name": "string", "destination_name": "string", "type": "balance", "metadata": "string", "transfer_id": "d4a2d8dd-7def-4545-a062-761683b9aa05", "transfer": {} } ], "payout_link_id": "50673cb3-bf8b-4fdc-9f5f-114b168da4ab", "metadata": "string"}Redeliver Payout Link
Redeliver a payout link. Payout links will be delivered up to 5 times.
Estimate Payout Fees
Calculate the fees a payout would incur without creating it. The query accepts the same identifying fields as Create a Payout, so the estimate reflects the rail, fee party and customer fee upcharges that a matching payout request would be charged. Unknown query parameters are rejected. No money moves and no `transfer` is created. Provider setup is deferred, so a later payout can still fail at the provider. For ACH estimates, Dots may refresh instant payout eligibility with the provider and update its internal cache before choosing ACH or RTP pricing. If a Plaid-linked ACH account has no stored account details, Dots retrieves them from Plaid without saving the bank account details. The instant payout eligibility cache may still be updated. Use `user_fee_amount` and `payout_amount` to show a user what they would pay and receive before you create the payout. Omit `amount` to get only the fee schedules that apply to the user and rail (`fee_settings` and `platform_fee_settings`); the per-payout amounts are then `null`. The schedules describe configured fees, but cannot give an exact quote without an amount. Visa and Amazon calculate their base fees on a whole-dollar payout, while a per-payout override uses the requested amount. Without an amount no amount-dependent payout checks run and `platform` is the requested rail: the ACH-to-RTP upgrade depends on the amount. Pass `amount` for the actual fee breakdown and RTP pricing.