cURL
curl --request PUT \ --url https://api.affonso.io/v1/payouts/{id} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "status": "pending", "paymentMethod": "<string>", "paymentReference": "<string>" } '
{ "success": true, "data": { "id": "<string>", "affiliate_id": "<string>", "affiliate_name": "<string>", "affiliate_email": "<string>", "amount": 123, "currency": "<string>", "status": "pending", "payment_method": "<string>", "payment_reference": "<string>", "created_at": "2023-11-07T05:31:56Z", "processed_at": "2023-11-07T05:31:56Z" } }
Update a payout’s status. Valid transitions: pending->processing, processing->completed/failed, etc.
API key authentication. Prefix with 'sk_live_' for production or 'sk_dev_' for development.
pending
processing
completed
failed
cancelled
Payout updated
Show child attributes
Was this page helpful?