Get started
API Endpoint https://api.hashback.co.ke/decode
Welcome to the HashBack API Documentation. This guide will walk you through the steps to integrate HashBack's powerful features into your application.
To use this API, you need an API key. If you don't have one, please Sign In or Sign up to get your API key.
Decode Hash Numbers
To get decode hash numbers, you need to make a POST call to the following URL:
https://api.hashback.co.ke/decode
PHP & cURL Sample
Here is a sample PHP AND cURL code to integrate the API:
{
"ResultCode": "0",
"MSISDN": "254712345678"
}
Body Parameters
To use the API, include the following body parameters in your request in x-www-form-urlencoded format.
Field | Type | Description |
---|---|---|
hash | String | The hash string to be decoded to a Real number. |
API_KEY | String | Your API key for authentication. |
Errors
The HashBack API uses the following error codes:
Error Code | Meaning |
---|---|
0 | Success. The request was processed successfully. |
400 | Bad Request: Missing parameters. This error appears when not all mandatory parameters are provided. |
401 | Authentication error: Invalid API key. This error occurs if the provided API key is unknown or expired. |
402 | Low Balance. Please recharge to make requests |
403 | An error occurred while fetching data. |
404 | Unauthorized access. This error occurs when the request lacks proper authentication. |
419 | Too Many Requests: Rate limit exceeded |
500 | Internal server error. A generic error indicating an issue on the server side. |