cURL
curl --request POST \
--url https://api.development.mona.ng/collections \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"maximumAmount": "600",
"debitType": "MERCHANT",
"startDate": "2025-05-22T05:43:00",
"expiryDate": "2025-06-19T08:42:00",
"schedule": {
"type": "SCHEDULED",
"frequency": "WEEKLY",
"amount": "500",
"entries": [
{
"date": "2025-05-22T05:43:00",
"amount": "200"
}
]
},
"reference": "Testing Mona Scheduled Collection--Succeed",
"agentId": "507f1f77bcf86cd799439011"
}
'import requests
url = "https://api.development.mona.ng/collections"
payload = {
"maximumAmount": "600",
"debitType": "MERCHANT",
"startDate": "2025-05-22T05:43:00",
"expiryDate": "2025-06-19T08:42:00",
"schedule": {
"type": "SCHEDULED",
"frequency": "WEEKLY",
"amount": "500",
"entries": [
{
"date": "2025-05-22T05:43:00",
"amount": "200"
}
]
},
"reference": "Testing Mona Scheduled Collection--Succeed",
"agentId": "507f1f77bcf86cd799439011"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
maximumAmount: '600',
debitType: 'MERCHANT',
startDate: '2025-05-22T05:43:00',
expiryDate: '2025-06-19T08:42:00',
schedule: {
type: 'SCHEDULED',
frequency: 'WEEKLY',
amount: '500',
entries: [{date: '2025-05-22T05:43:00', amount: '200'}]
},
reference: 'Testing Mona Scheduled Collection--Succeed',
agentId: '507f1f77bcf86cd799439011'
})
};
fetch('https://api.development.mona.ng/collections', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.development.mona.ng/collections",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'maximumAmount' => '600',
'debitType' => 'MERCHANT',
'startDate' => '2025-05-22T05:43:00',
'expiryDate' => '2025-06-19T08:42:00',
'schedule' => [
'type' => 'SCHEDULED',
'frequency' => 'WEEKLY',
'amount' => '500',
'entries' => [
[
'date' => '2025-05-22T05:43:00',
'amount' => '200'
]
]
],
'reference' => 'Testing Mona Scheduled Collection--Succeed',
'agentId' => '507f1f77bcf86cd799439011'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.development.mona.ng/collections"
payload := strings.NewReader("{\n \"maximumAmount\": \"600\",\n \"debitType\": \"MERCHANT\",\n \"startDate\": \"2025-05-22T05:43:00\",\n \"expiryDate\": \"2025-06-19T08:42:00\",\n \"schedule\": {\n \"type\": \"SCHEDULED\",\n \"frequency\": \"WEEKLY\",\n \"amount\": \"500\",\n \"entries\": [\n {\n \"date\": \"2025-05-22T05:43:00\",\n \"amount\": \"200\"\n }\n ]\n },\n \"reference\": \"Testing Mona Scheduled Collection--Succeed\",\n \"agentId\": \"507f1f77bcf86cd799439011\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.development.mona.ng/collections")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"maximumAmount\": \"600\",\n \"debitType\": \"MERCHANT\",\n \"startDate\": \"2025-05-22T05:43:00\",\n \"expiryDate\": \"2025-06-19T08:42:00\",\n \"schedule\": {\n \"type\": \"SCHEDULED\",\n \"frequency\": \"WEEKLY\",\n \"amount\": \"500\",\n \"entries\": [\n {\n \"date\": \"2025-05-22T05:43:00\",\n \"amount\": \"200\"\n }\n ]\n },\n \"reference\": \"Testing Mona Scheduled Collection--Succeed\",\n \"agentId\": \"507f1f77bcf86cd799439011\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.development.mona.ng/collections")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"maximumAmount\": \"600\",\n \"debitType\": \"MERCHANT\",\n \"startDate\": \"2025-05-22T05:43:00\",\n \"expiryDate\": \"2025-06-19T08:42:00\",\n \"schedule\": {\n \"type\": \"SCHEDULED\",\n \"frequency\": \"WEEKLY\",\n \"amount\": \"500\",\n \"entries\": [\n {\n \"date\": \"2025-05-22T05:43:00\",\n \"amount\": \"200\"\n }\n ]\n },\n \"reference\": \"Testing Mona Scheduled Collection--Succeed\",\n \"agentId\": \"507f1f77bcf86cd799439011\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"id": "68554203285367d030f8d398",
"isConsented": false,
"collection": {
"maxAmount": "10000",
"expiryDate": "2025-06-24T00:00:00.000Z",
"startDate": "2025-06-20T13:12:03.075Z",
"monthlyLimit": "10000",
"schedule": {
"type": "SCHEDULED",
"frequency": null,
"entries": [
{
"date": "2025-06-22T11:11:00.000Z",
"amount": "10000"
}
],
"amount": null
},
"reference": "LOAN",
"status": "NOT_STARTED",
"lastCollectedAt": null,
"nextCollectionAt": "2025-06-20T13:12:03.075Z",
"debitType": "MERCHANT",
"loanLinkToken": "68554203285367d030f8d394"
},
"createdAt": "2025-06-20T11:12:03.816Z",
"updatedAt": "2025-06-20T11:12:03.816Z"
}
}{
"error": 123,
"message": "<string>"
}Collections
Create Collection
Create Collection is where users can set up recurring payment schedules and subscription billing for their customers with flexible frequency options.
POST
/
collections
cURL
curl --request POST \
--url https://api.development.mona.ng/collections \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"maximumAmount": "600",
"debitType": "MERCHANT",
"startDate": "2025-05-22T05:43:00",
"expiryDate": "2025-06-19T08:42:00",
"schedule": {
"type": "SCHEDULED",
"frequency": "WEEKLY",
"amount": "500",
"entries": [
{
"date": "2025-05-22T05:43:00",
"amount": "200"
}
]
},
"reference": "Testing Mona Scheduled Collection--Succeed",
"agentId": "507f1f77bcf86cd799439011"
}
'import requests
url = "https://api.development.mona.ng/collections"
payload = {
"maximumAmount": "600",
"debitType": "MERCHANT",
"startDate": "2025-05-22T05:43:00",
"expiryDate": "2025-06-19T08:42:00",
"schedule": {
"type": "SCHEDULED",
"frequency": "WEEKLY",
"amount": "500",
"entries": [
{
"date": "2025-05-22T05:43:00",
"amount": "200"
}
]
},
"reference": "Testing Mona Scheduled Collection--Succeed",
"agentId": "507f1f77bcf86cd799439011"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
maximumAmount: '600',
debitType: 'MERCHANT',
startDate: '2025-05-22T05:43:00',
expiryDate: '2025-06-19T08:42:00',
schedule: {
type: 'SCHEDULED',
frequency: 'WEEKLY',
amount: '500',
entries: [{date: '2025-05-22T05:43:00', amount: '200'}]
},
reference: 'Testing Mona Scheduled Collection--Succeed',
agentId: '507f1f77bcf86cd799439011'
})
};
fetch('https://api.development.mona.ng/collections', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.development.mona.ng/collections",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'maximumAmount' => '600',
'debitType' => 'MERCHANT',
'startDate' => '2025-05-22T05:43:00',
'expiryDate' => '2025-06-19T08:42:00',
'schedule' => [
'type' => 'SCHEDULED',
'frequency' => 'WEEKLY',
'amount' => '500',
'entries' => [
[
'date' => '2025-05-22T05:43:00',
'amount' => '200'
]
]
],
'reference' => 'Testing Mona Scheduled Collection--Succeed',
'agentId' => '507f1f77bcf86cd799439011'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.development.mona.ng/collections"
payload := strings.NewReader("{\n \"maximumAmount\": \"600\",\n \"debitType\": \"MERCHANT\",\n \"startDate\": \"2025-05-22T05:43:00\",\n \"expiryDate\": \"2025-06-19T08:42:00\",\n \"schedule\": {\n \"type\": \"SCHEDULED\",\n \"frequency\": \"WEEKLY\",\n \"amount\": \"500\",\n \"entries\": [\n {\n \"date\": \"2025-05-22T05:43:00\",\n \"amount\": \"200\"\n }\n ]\n },\n \"reference\": \"Testing Mona Scheduled Collection--Succeed\",\n \"agentId\": \"507f1f77bcf86cd799439011\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.development.mona.ng/collections")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"maximumAmount\": \"600\",\n \"debitType\": \"MERCHANT\",\n \"startDate\": \"2025-05-22T05:43:00\",\n \"expiryDate\": \"2025-06-19T08:42:00\",\n \"schedule\": {\n \"type\": \"SCHEDULED\",\n \"frequency\": \"WEEKLY\",\n \"amount\": \"500\",\n \"entries\": [\n {\n \"date\": \"2025-05-22T05:43:00\",\n \"amount\": \"200\"\n }\n ]\n },\n \"reference\": \"Testing Mona Scheduled Collection--Succeed\",\n \"agentId\": \"507f1f77bcf86cd799439011\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.development.mona.ng/collections")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"maximumAmount\": \"600\",\n \"debitType\": \"MERCHANT\",\n \"startDate\": \"2025-05-22T05:43:00\",\n \"expiryDate\": \"2025-06-19T08:42:00\",\n \"schedule\": {\n \"type\": \"SCHEDULED\",\n \"frequency\": \"WEEKLY\",\n \"amount\": \"500\",\n \"entries\": [\n {\n \"date\": \"2025-05-22T05:43:00\",\n \"amount\": \"200\"\n }\n ]\n },\n \"reference\": \"Testing Mona Scheduled Collection--Succeed\",\n \"agentId\": \"507f1f77bcf86cd799439011\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"id": "68554203285367d030f8d398",
"isConsented": false,
"collection": {
"maxAmount": "10000",
"expiryDate": "2025-06-24T00:00:00.000Z",
"startDate": "2025-06-20T13:12:03.075Z",
"monthlyLimit": "10000",
"schedule": {
"type": "SCHEDULED",
"frequency": null,
"entries": [
{
"date": "2025-06-22T11:11:00.000Z",
"amount": "10000"
}
],
"amount": null
},
"reference": "LOAN",
"status": "NOT_STARTED",
"lastCollectedAt": null,
"nextCollectionAt": "2025-06-20T13:12:03.075Z",
"debitType": "MERCHANT",
"loanLinkToken": "68554203285367d030f8d394"
},
"createdAt": "2025-06-20T11:12:03.816Z",
"updatedAt": "2025-06-20T11:12:03.816Z"
}
}{
"error": 123,
"message": "<string>"
}Authorizations
Body
application/json
Collection creation parameters
The maximum amount for the collection in kobo (Nigerian minor currency unit)
Example:
"600"
Type of debit initiation
Available options:
MONA, MERCHANT Example:
"MERCHANT"
Start date for the collection
Example:
"2025-05-22T05:43:00"
Expiry date for the collection
Example:
"2025-06-19T08:42:00"
Schedule configuration for the collection
Show child attributes
Show child attributes
Optional reference for the collection
Example:
"Testing Mona Scheduled Collection--Succeed"
ObjectId of the user associated with your company that is the agent processing the collection
Example:
"507f1f77bcf86cd799439011"
⌘I