API Documentation for managing merchants, customer top-ups, dealers, and transactions[cite: 1].
Endpoint: /login[cite: 1]
{
"email" : "kwesi@click-mobile.com",
"password" : "password"
}
Endpoint: /merchant/login[cite: 1]
Authentication: Bearer Token[cite: 1]
{
"phone_number" : "265881161942",
"pin" : "1234"
}
Endpoint: /merchant/transactions[cite: 1]
Headers: Accept: application/json[cite: 1]
Authentication: Bearer Token[cite: 1]
{
"merchant_id": 1,
"keyword": "Baldwin",
"start_date": "2025-07-20",
"end_date": "2026-05-10",
"per_page": 20
}
Endpoint: /merchant/customertopup[cite: 1]
Headers: Accept: application/json[cite: 1]
Authentication: Bearer Token[cite: 1]
{
"phone_number" : "265881161942",
"amount" : "20",
"merchant_id" : "1"
}
Endpoint: /merchant/dealers?per_page=5[cite: 1]
Authentication: Bearer Token[cite: 1]
Endpoint: /merchant/refund[cite: 1]
Headers: Accept: application/json[cite: 1]
Authentication: Bearer Token[cite: 1]
{
"dealer_id" : "40",
"merchant_id" : "1",
"amount" : "2",
"reason" : "Testing Mic"
}