One step payout
This endpoint is a combination of the Create Payout and the Commit Payout endpoints. If you want to do a payout in just one API call instead of a two-step process outlined in Create / Commit Payout, you can now use this one-step endpoint.
The usage is exactly the same as the Create payout endpoint at POST /payouts with the only difference being that the second step (commit payout) will immediately be executed and there is no need to make a call to the commit endpoint. The RESPONSE of this endpoint will indicate whether the payout instruction was received and incorporated successfully (committed / pending) or if the creation instruction failed (failed). Identically as in the payouts/{payoutId}/commit endpoint, the effective result of the executed payout is reported on the callbacks URI
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": "COMMITTED",
"amount": "1.00",
"description": "Payout test",
"confirmation_uri": "https://your.site/success",
"cancel_uri": "http://your.site/payout/cancel",
"failure_uri": "https://your.site/failure",
"airtm_operation_id": "a8bc79c2-cde3-4906-b3f5-5af028b3a57e",
"created_at": "2019-03-05T18:48:07.000Z",
"updated_at": "2019-03-05T18:48:21.000Z",
"airtm_user_email": "john.doe@gmail.com",
"airtm_user_id": "d2f17c25-4aa2-46c2-aecb-498ffdd23aa2",
"operation_type": "payout",
"airtm_operation_hash": "4AA2FV46C2CDAECB"
}Changes
No recorded changes to this operation across all 1 revision of this API.