πΈInitialize payout
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.
Step 1: Collect payout details
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:
Step 2: Add required fields for specific payout methods
Each payout method has its required fields. 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:
Step 3: Send the payout request
Next, initiate the payout by calling our API with the collected payout details (don't forget to authorize with your secret key).
Example request :
Example response :
Step 3: After the payout request is sent
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.
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.
cURL
Last updated