Comprehensive documentation for the TangentoPay REST API.
Learn how to set up and use the TangentoPay API for custom integrations. This reference provides endpoint details, examples, and best practices.
The TangentoPay API empowers developers to create tailored payment experiences, from collecting funds to managing disbursements and services. It's RESTful, JSON-based, and supports quick integration via SDKs. Start in minutes with our endpoints and scale to production seamlessly.
Questions? Email dev-support@tangentopay.com or join our Slack community for code reviews and tips.
Note
Review the Preliminary Knowledge section for authentication, request formats, and rules. Always test in sandbox mode (append ?test=true to base URL) before going live.
Security Note
Store API keys securely (e.g., environment variables); never expose in client-side code.
The API covers core operations for building financial applications:
Create single or bulk payouts, including withdrawals and refunds.
Register, update, or delete services for integrations like plugins or SDKs.
Retrieve transactions, balances, and logs. Export reports for compliance.
The TangentoPay API uses Bearer Token authentication. Pass your secret key in the Authorization header.
Authorization: Bearer sk_live_1234567890abcdefAll API requests should be made to the following base URL:
https://api.tangentopay.com/v1Example Header:
Authorization: Bearer sk_live_12345abcdeExample Success Response:
{
"status": "success",
"data": {
"transaction_id": "txn_123abc",
"amount": 5000,
"currency": "XAF"
}
}
Exceeding limits returns 429 Too Many Requests. Contact support to request higher limits.
Detailed endpoint documentation is available per category:
POST /payouts, GET /payouts/{id} — Disbursements to Mobile Money, banks.
POST /topups — Add funds to payout wallet via Mobile Money.
POST /payments/initiate, /payments/direct — Collect via hosted or direct flows.
POST /services, GET /services, PUT /services/{id} — Manage integrations.
GET /logs — Query API call history with filters.
Errors return standardized JSON with an HTTP status, error code, and message.
Common Error Codes:
Example Error Response:
{
"status": "error",
"error": {
"code": "invalid_amount",
"message": "Amount must be greater than 0"
}
}
Tip
Always check the error code field for programmatic handling, and display the message to users where appropriate.
Configure webhook URLs in your dashboard to receive real-time notifications for events like payment completion, payout success, or failures.
Example Webhook Payload:
{
"event": "payment.completed",
"data": {
"transaction_id": "txn_abc123",
"amount": 5000,
"currency": "XAF",
"status": "success"
},
"timestamp": "2025-01-15T10:30:00Z"
}
Official SDKs simplify integration. Install via package managers and start building in minutes.
npm install @tangentopay/sdkpip install tangentopaycomposer require tangentopay/sdk