List Payouts
Retrieve a list of payouts with optional filtering.
POST
https://api.uprails.com/payouts/listReturns a list of payouts. The payouts are returned sorted by creation date, with the most recent payouts appearing first.
Request Example
curl -X POST https://api.uprails.com/payouts/list \
-H "Content-Type: application/json" \
-H "api-key: snd_YOUR_API_KEY" \
-d '{
"limit": 10,
"status": "success"
}'Request Body
limitintegerdefault: 10Number of payouts to return (max: 100)
offsetintegerdefault: 0Number of payouts to skip
statusstringFilter payouts by status
Enum:
requires_creationrequires_fulfillmentpendingsuccessfailedcancelledreversedexpiredpayout_typestringFilter by payout type
Enum:
cardbankwalletcustomer_idstringFilter payouts by customer ID
created_gtestringFilter payouts created after this timestamp (ISO 8601)
created_ltestringFilter payouts created before this timestamp (ISO 8601)
Response
200OK
{
"data": [
{
"payout_id": "po_1234567890abcdef",
"merchant_id": "mer_xyz789",
"customer_id": "cus_abc123",
"status": "success",
"amount": 10000,
"currency": "USD",
"payout_type": "bank",
"created": "2024-01-15T10:00:00Z"
},
{
"payout_id": "po_0987654321fedcba",
"merchant_id": "mer_xyz789",
"customer_id": "cus_def456",
"status": "pending",
"amount": 5000,
"currency": "USD",
"payout_type": "card",
"created": "2024-01-14T08:00:00Z"
}
],
"total_count": 50,
"has_more": true
}