Create Payout
Send money to a bank account, card, or wallet.
POST
https://api.uprails.com/payouts/createCreates a new payout to send funds to an external destination. The payout will be processed based on the specified priority and processor availability.
Processor Selection
Uprails automatically selects the best available payment processor based on the destination, amount, and priority. You can also specify a preferred processor.
Request Example
curl -X POST https://api.uprails.com/payouts/create \
-H "Content-Type: application/json" \
-H "api-key: snd_YOUR_API_KEY" \
-d '{
"amount": 10000,
"currency": "USD",
"profile_id": "YOUR_PROFILE_ID",
"payout_type": "bank",
"priority": "regular",
"customer_id": "cus_abc123",
"email": "recipient@example.com",
"name": "John Doe",
"payout_method_data": {
"bank": {
"bank_name": "Chase",
"bank_account_number": "123456789",
"bank_routing_number": "021000021",
"bank_account_holder_name": "John Doe"
}
}
}'Request Body
amountintegerrequiredAmount in the smallest currency unit (e.g., cents)
currencystringrequiredThree-letter ISO currency code
profile_idstringrequiredThe identifier for the business profile associated with this payout.
payout_typestringrequiredType of payout
Enum:
cardbankwalletprioritystringdefault: regularPayout priority/speed
Enum:
instantfastregularwirecustomer_idstringCustomer ID to associate with this payout
emailstringRecipient email address
namestringRecipient name
phonestringRecipient phone number
payout_method_dataobjectrequiredPayout destination details
cardobjectCard details for card payouts
bankobjectBank account details for bank payouts
billingobjectBilling address information
confirmbooleandefault: trueWhether to confirm the payout immediately
metadataobjectSet of key-value pairs for storing additional information
Response
200OK
{
"payout_id": "po_1234567890abcdef",
"merchant_id": "mer_xyz789",
"customer_id": "cus_abc123",
"status": "pending",
"amount": 10000,
"currency": "USD",
"payout_type": "bank",
"priority": "regular",
"email": "recipient@example.com",
"name": "John Doe",
"created": "2024-01-15T10:00:00Z"
}Card Payout Example
Card Payout Requestjson
{
"amount": 5000,
"currency": "USD",
"payout_type": "card",
"priority": "instant",
"payout_method_data": {
"card": {
"card_number": "4242424242424242",
"card_exp_month": "12",
"card_exp_year": "2025",
"card_holder_name": "John Doe"
}
}
}