API Reference

Wallet API

Check your sandbox wallet balance and top up test funds via the Orchestrator API. Useful for playground development and Flaura integration testing.

GET /api/v1/wallet

Returns the current balance and account name for the authenticated merchant's Moolre wallet. Works in both sandbox and live environments.

Request
GET /api/v1/wallet
Authorization: Bearer mkr_...

Balance Response

200 OK
{
  "balance": 10.67,
  "accountName": "MerchantName"
}

Response Fields

FieldTypeDescription
balancenumberCurrent wallet balance in GHS (float)
accountNamestringName associated with the Moolre account

POST /api/v1/wallet

Credits the merchant's sandbox wallet via internal transfer from the platform master wallet. Only available in sandbox mode — returns an error for live merchants.

Request Body
POST /api/v1/wallet
Authorization: Bearer mkr_...
Content-Type: application/json

{
  "amountInPesewas": 500000
}

Top-up Request Fields

FieldTypeDescription
amountInPesewasintegerAmount to top up in pesewas. Positive integer. Max GHS 100,000.00 (10,000,000 pesewas)
200 OK
{
  "success": true
}

Error Responses

StatusCondition
400Invalid or missing amountInPesewas
401Malformed authorization header
403Invalid API key, merchant suspended, or top-up attempted in live mode
413Request body too large
415Expected Content-Type: application/json
500Internal error — balance check or top-up failed

Use Cases

  • Playground — top up sandbox wallet before testing split executions
  • Flaura dev — verify wallet balance after collection events without logging into the dashboard
  • Automated sandbox testing — programmatically fund accounts before running integration tests