The Incentives API is a service that facilitates the management of hosts' data and the loading of data bundles onto devices' SIM cards. It allows organizations to efficiently manage data provisioning.
- Adding and updating hosts' data.
- Loading data bundles onto devices' SIM cards.
- Checking the remaining balance on a device's SIM card.
The base URL for accessing the Incentives API is: https://staging-platform.airqo.net/api/v2/incentives
The Incentives API requires authentication using an API token. Include the API token as a query parameter as follows:
{BASE_URL}/{PATH}?token={TOKEN}
- Endpoint:
/hosts/{hostId}
- Method: POST
- Description: Adds or updates hosts' data.
- Request Body: Host Details
- Response: Status
- Endpoint:
/hosts/{hostId}/payments
- Method: POST
- Description: Sends money to a host's mobile money account.
- Request Body: Amount, Mobile Money Account, Payment Details
- Response: Transaction ID, Status
- Endpoint:
/accounts/payments
- Method: POST
- Description: Adds money to the organizational account for host payments.
- Request Body: Amount, Payment Details
- Response: Transaction ID, Status
- Endpoint:
/accounts/receive
- Method: POST
- Description: Receives money from a host's mobile money account into the organizational account.
- Request Body: Amount, Mobile Money Account, Payment Details
- Response: Transaction ID, Status
- Endpoint:
/payments/{transactionId}
- Method: GET
- Description: Retrieves transaction details by transaction ID.
- Response: Transaction Details
- Endpoint:
/devices/{deviceId}/data
- Method: POST
- Description: Loads a data bundle onto a device's SIM card.
- Request Body: Data Bundle Details
- Response: Transaction ID, Status
- Endpoint:
/devices/{deviceId}/balance
- Method: GET
- Description: Retrieves the remaining balance on a device's SIM card.
- Response: Balance Amount
The Incentives API follows standard HTTP status codes for indicating the success or failure of requests. In case of errors, appropriate error messages will be provided in the response.
The API handles sensitive data such as payment details and mobile money accounts. Appropriate security measures are in place to ensure the confidentiality and integrity of the data.
The API has usage limits and fair usage policies in place to prevent abuse and maintain a high-quality service.
Update: The scope of the service is now shifting towards IoT sim card management as the main focus.