Build on
ThirdMoney.
Integrate African payment infrastructure into your product. RESTful API, instant webhooks, multi-currency support, and a sandbox to build freely — all from a single key.
Getting Started
Three steps from zero to live API calls. Takes about 10 minutes.
Create Your Account
Register at thirdmoney.digital/register. After creating your account, navigate to your Dashboard and open the Merchant tab.
Register Your Business
Fill in your business name, category, and website URL. Applications are reviewed by our team within 24 hours. You'll receive an email notification once approved.
Get Your API Keys
Once approved, your API key and secret are instantly available in the Merchant section of your dashboard. You'll get both a live key and a sandbox key for testing.
Authentication
ThirdMoney uses Bearer tokens in the
Authorization header.
There are two token types depending on the endpoint.
Two token types
Merchant endpoints use your API key (from your dashboard) as the Bearer token
in an X-TM-Key header.
User endpoints use the JWT returned by
POST /api/auth/login.
Tokens expire after 24 hours — use /api/auth/refresh to rotate.
API Endpoints
Base URL: https://thirdmoney.digital
· All requests and responses use application/json.
Auth
No authentication required. Used for account creation and login.
/api/auth/register
Create a new user account
/api/auth/login
Authenticate and receive a JWT token
/api/auth/refresh
Refresh an expired JWT token
Wallet & Transfers
Send, receive, deposit, and withdraw funds from your wallet.
/api/me
Your profile, KYC status, and wallet summary
/api/wallets
All wallet balances by currency
/api/send/preview
Preview transfer fee before sending
/api/send
Execute a transfer (requires transaction PIN)
/api/deposit/initiate
Start a mobile money or bank deposit
/api/withdraw
Request a withdrawal to mobile wallet or bank
/api/transactions
Paginated transaction history
Savings Groups
Create and manage group savings circles.
/api/groups
List all groups you belong to
/api/groups
Create a new savings group
/api/groups/:id/contribute
Contribute funds to a group
Fundraising Campaigns
Create and fund public or private campaigns.
/api/campaigns/browse
Browse public campaigns (no auth needed)
/api/campaigns
Create a new fundraising campaign
/api/campaigns/:id/contribute
Fund a campaign
Merchant
Manage your merchant profile, payments, and API keys.
/api/merchant
Fetch your merchant profile and status
/api/merchant/register
Register a new business
/api/merchant/payments
Paginated merchant payment history
/api/merchant/rotate-key
Rotate and regenerate API keys
Health
Service status and version info.
/health
API status, version, and response latency
Request & Response
A complete example using the Send Money endpoint — one of the most common API interactions.
/api/send
application/json
Accepting Merchant Payments
Use your API key to initiate payment requests from your backend. Set a
callback_url
and we'll notify you instantly when the payment completes.
Webhooks
Register a callback_url on your payment requests.
ThirdMoney will send a POST request to that URL whenever the payment status changes.
Webhooks are signed with your merchant secret — always verify before processing.
Payment Events
payment.completed
A payment was successfully processed and funds settled.
payment.failed
A payment attempt failed. Check the error field in the payload.
payment.pending
Payment initiated, awaiting confirmation from the provider.
payment.refunded
A payment was refunded back to the sender.
Supported Currencies
Multi-currency wallets across Africa and international transfers. More currencies coming soon.
Error Handling
ThirdMoney uses standard HTTP status codes. Errors return a JSON body with a
message
and sometimes an errors
object for validation failures.
200
Success
Request completed successfully.
201
Created
Resource was created successfully.
400
Bad Request
Malformed request. Check the request body.
401
Unauthorized
Missing or invalid token. Check or refresh your JWT.
403
Forbidden
Insufficient permissions, or KYC/verification required.
404
Not Found
The requested resource does not exist.
422
Validation Error
One or more fields failed validation. See errors object.
429
Rate Limited
Too many requests. Implement exponential backoff.
500
Server Error
Unexpected error. Retry or contact api@thirdmoney.digital.
SDKs & Libraries
Official and community client libraries. Can't find yours? The REST API works with any HTTP client.
composer require thirdmoney/sdk
npm install @thirdmoney/js
pip install thirdmoney
go get github.com/thirdmoney/go-sdk