Payments / Payouts
Create payout
This endpoint allows you to create a payout instruction. In the request body, information about the payout such as the recipient's email, description, amount, and any URLs needed for confirmation or failure redirects should be provided. Upon successful creation, the API returns a response containing the details of the newly created payout, including a unique ID.
After making a call to this endpoint, no money is moved yet. To finish moving the money to a user you must call the payouts/:id/commit endpoint with the id from this response.
postpayouts
Request
- Base URLhttps://payments.air-pay.io
- AuthHTTP basic
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"email": "john.doe@gmail.com",
"description": "Payout test",
"amount": 1,
"code": "1234abcd"
}Response
OK
Example response
{
"id": "57f384ac-c5f7-492a-aaf7-daa928de9b40",
"partner_id": "2abf29df-4c6d-4de4-ae55-d26556ac5475",
"status": "created",
"amount": 1,
"description": "Payout test",
"confirmation_uri": "https://your.site/success",
"cancel_uri": "http://your.site/payout/cancel",
"failure_uri": "https://your.site/failure",
"created_at": "2019-03-05T18:48:07.000Z",
"updated_at": "2019-03-05T18:48:07.000Z",
"airtm_user_email": "john.doe@gmail.com",
"airtm_user_id": "d2f17c25-4aa2-46c2-aecb-498ffdd23aa2",
"operation_type": "payout"
}Changes
No recorded changes to this operation across all 1 revision of this API.