/api/sandbox/disbursement/register
Register
Create sandbox disbursement account.
Sandbox-only API at /api/sandbox/disbursement. Same JSON and flow as LipaDisbursement production โ simulated wallet debits and payouts.
/api/sandbox/disbursement/register
Create sandbox disbursement account.
/api/sandbox/disbursement/login
Authenticate and return user, wallet, and token.
/api/sandbox/disbursement/logout
Revoke current access token.
/api/sandbox/disbursement/payment
Create disbursement and deduct wallet.
/api/sandbox/disbursement/getPayments
List authenticated user payments.
/api/sandbox/disbursement/user
Return authenticated user profile.
| Method | Path | Auth | Behavior |
|---|---|---|---|
| POST | /api/register | None | Register user and issue access token. |
| POST | /api/login | None | Authenticate user and return user, wallet, and token. |
| POST | /api/logout | Bearer token | Revoke current access token. |
| POST | /api/payment | Bearer token | Create disbursement request and apply wallet deduction on success. |
| POST | /api/getPayments | Bearer token | List authenticated user disbursement records (latest first). |
| GET | /api/user | Bearer token | Return authenticated user profile payload. |
| Item | Contract |
|---|---|
| API guard | auth:api (Passport token model). |
| Protected endpoints | /api/logout, /api/payment, /api/getPayments, /api/user. |
| Login restrictions | Users with status unverified or rejected are blocked. |
| Password handling | Passwords are stored as hashed values before persistence. |
| Field | Type | Required | Rule summary |
|---|---|---|---|
| msisdn | string | Yes | Tanzanian format 255XXXXXXXXX; provider must be resolvable. |
| amount | number | Yes | Used for charge calculation and wallet sufficiency check. |
| name | string | Yes | Recipient/customer label saved on payment record. |
Invalid MSISDN, unsupported provider, or disbursement initiation failure.
Unauthorized token or blocked login status (unverified/rejected).
Validation failure or insufficient wallet balance.
| System | Method | Path |
|---|---|---|
| LipaDisbursement | POST | /api/register |
| LipaDisbursement | POST | /api/login |
| LipaDisbursement | POST | /api/payment |
| LipaDisbursement | POST | /api/getPayments |
This disbursement reference is intentionally mapped to the LipaDisbursement developer API contract: POST /api/login, POST /api/payment, POST /api/getPayments.
Sandbox equivalents are exposed under /api/sandbox so frontend flow stays consistent while local testing remains isolated.
{
"msisdn": "255712345678",
"amount": 10000,
"name": "Recipient Name"
}
{
"message": "Payment created successfully",
"response": {
"status": true,
"reference": "123456789",
"message": "Disbursement accepted"
}
}
Browse docs publicly, or register / sign in to use the Testing Lab and save your sandbox merchant profile.