Integrate FamAPI into your apps with just a few endpoints.
All API requests require an api_key passed as a query parameter or in the header X-API-Key.
Endpoint: GET /api/create-order
Parameters: api_key, amount, merchant_order_id, callback_url, redirect_url, customer_name, customer_email, customer_phone
{
"status": "success",
"order_id": "FAMPAY20260731123045ABC",
"payment_url": "https://pay.msto.online/pay/FAMPAY...",
"qr_url": "https://api.qrserver.com/...",
"amount": "100",
"fee": "0.10",
"expires_at": "2026-07-31 12:36:45"
}
Endpoint: GET /api/verify
Parameters: api_key, order_id
{
"status": "success",
"data": {
"order_id": "FAMPAY...",
"amount": "100",
"utr": "FMPXXXXXX",
"sender_name": "FamPay User",
"payment_time": "2026-07-31 12:30:15"
}
}
Endpoint: GET /api/wallet-balance
Parameters: api_key
401 – Invalid or missing API key402 – Expired API key403 – Suspended account404 – Order not found408 – Order expired500 – Internal server error