Obtaining Credentials
To access Tumipay’s APIs you must request credentials from our support team. Send an email to it@tumipay.co with your company details. After verification you will receive:- A username and password for Basic Authentication.
- A merchant token provided as the
Token-Topvalue.
Basic Authentication
Every API call uses HTTP Basic Auth. Combine your username and password and encode them in Base64:- cURL
- JavaScript
- Python
- PHP
- Rust
Authorization header must accompany all requests.
Token Authentication
Most endpoints also require the merchant’s token in theToken-Top header:
Token Renewal
Tokens do not expire automatically. If you suspect compromise, or as part of routine security maintenance, contact Tumipay support to issue a new token. Update your systems to use the new value immediately.Required Headers
Include the following headers in requests:string
required
Basic credentials in the format
Basic base64(username:password)string
required
Your merchant authentication token
string
required
application/jsonSecurity Best Practices
- Use HTTPS for every request.
- Keep your username, password and token in a secure environment variable or secret manager.
- Rotate credentials periodically and revoke them immediately if exposed.
- Never commit credentials or tokens to public repositories or client-side code.