Initialize payout
Last updated
Last updated
Moneroo's Payout API lets you send money to your customers. You can use it for refunds, rebates, salary payments, and more.
How It Works
Send a POST Request
From your server, send a POST request to Moneroo's Payout API with the payment details.
Processing the Request
Moneroo processes the request through the appropriate payment processor based on your chosen payout method.
Receive the Response
Moneroo will return a response with the status of your request.
First, gather the payment details and format them as a JSON object to send to our API.
Here are the fields that you need to gather:
Field Name | Type | Required | Description |
---|
Next, initiate the payout by calling our API with the collected payout details (don't forget to authorize with your secret key).
Once the payout is made (successful or failed), four things will occur:
Webhook Notification: If you have activated webhooks, we will send you a notification. For more information and examples, check out our guide on webhooks.
Email Notification: We will email you unless you have disabled this feature.
Server-Side Verification: You can verify the transaction on the server side by calling our API with the transaction ID.
Failed Payout Notification: If webhooks are enabled, we'll notify you for each failed payout. This can help you reach out to customers or take other actions. See our webhooks guide for an example.
If you have the webhooks setting enabled on your Moneroo application, we'll send you a notification for each failed payout. This is useful in case you want to later reach out to customers or perform other actions. See our webhooks guide for an example.
Please do not forget to replace YOUR_SECRET_KEY
with your actual secret key.
All following examples should be made in the backend, never expose your secret key to the public.
Each payout method has its . Please check the supported payout method list to see the required fields for each payout method. These required fields should be provided via recipient
fields
For example, the mtn_bj
(MTN Mobile Money Benin) method requires you to provide msisdn
via the following object:
| integer | Yes | The payout amount. |
| string | Yes |
| string | Yes | Description of the payment. |
| string | Yes | Payout method. Should be a valid supported payout method. Please check the supported payout method list |
| object | Yes | Customer details. |
| string | Yes | Customer's email address. |
| string | Yes | Customer's first name. |
| string | Yes | Customer's last name. |
| integer | No | Customer's phone number. |
| string | No | Customer's address. |
| string | No | Customer's city. |
| string | No | Customer's state. |
| string | No |
| string | No | Customer's zip code. |
| array | No | Additional data for the payment. |
The currency of the payment. Currency should be a supported currency in valid format.
Customer's country. Should be Should be a code in valid format.