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.

ProductKey prefixWhere to create itBase URL
incpesaip_live_incpesa merchant dashboard (approved businesses)https://incpritech.com/api/incpesa/v1
inchostih_live_inchost dashboard → Developershttps://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: 400 invalid input, 401 missing or bad key, 402 balance too low, 403 not allowed or not approved, 404 not found, 409 conflict, 429 too many requests (about 120 a minute per key), 5xx try again.
  • Phone numbers can be written 0712345678, 255712345678 or +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.