Incpritech developers
Getting started
Accounts, keys, requests and errors: what every Incpritech API has in common.
Accounts and keys
Every API uses a Bearer key in the Authorization header. Keys are shown once when you create them; we keep only a fingerprint, so store them in your server's environment, never in a website or mobile app.
| Product | Key prefix | Where to create it | Base URL |
|---|---|---|---|
| incpesa | ip_live_ | incpesa merchant dashboard (approved businesses) | https://incpritech.com/api/incpesa/v1 |
| inchost | ih_live_ | inchost dashboard → Developers | https://inchost.incpritech.com/api/v1 |
Requests and responses
- Send and receive JSON. Amounts are whole Tanzanian shillings (TZS).
- Success:
{ "success": true, "data": … }. Errors:{ "error": "A sentence you can show to people" }. - Status codes:
400invalid input,401missing or bad key,402balance too low,403not allowed or not approved,404not found,409conflict,429too many requests (about 120 a minute per key),5xxtry again. - Phone numbers can be written
0712345678,255712345678or+255712345678.
Testing
There is no separate sandbox yet: payments are real. Test with small amounts (incpesa accepts from TSh 500), and use a reference so retries never charge twice.