Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel
Benjamin Ssempala d90c0e0ec4
Trigger Backend Apps
2 months ago
..
bin
43b606c1ed
centralise error handling
5 months ago
fd7a33a9d1
default environment for incentives
4 months ago
fd7a33a9d1
default environment for incentives
4 months ago
fd7a33a9d1
default environment for incentives
4 months ago
d583db91ab
create sim cards in bulk
7 months ago
fd7a33a9d1
default environment for incentives
4 months ago
7940c17c51
refactoring of the different services to match current requirements
4 years ago
1b9f6505ea
adding unit test for the createBulk function
7 months ago
71ebfb76bd
file reorganisation
9 months ago
a6f9dc545c
update environment variables
3 years ago
d90c0e0ec4
Trigger Backend Apps
2 months ago
15936d63b8
scheduling daily SIM status checks
6 months ago
15936d63b8
scheduling daily SIM status checks
6 months ago
7940c17c51
refactoring of the different services to match current requirements
4 years ago

README.md

You have to be logged in to leave a comment. Sign In

Incentives API

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.

Use Cases

  • Adding and updating hosts' data.
  • Loading data bundles onto devices' SIM cards.
  • Checking the remaining balance on a device's SIM card.

Base URL

The base URL for accessing the Incentives API is: https://staging-platform.airqo.net/api/v2/incentives

Authentication.

The Incentives API requires authentication using an API token. Include the API token as a query parameter as follows:

{BASE_URL}/{PATH}?token={TOKEN}

Endpoints

Hosts' Data Management

Add Host Data

  • Endpoint: /hosts/{hostId}
  • Method: POST
  • Description: Adds or updates hosts' data.
  • Request Body: Host Details
  • Response: Status

Host Payments

Send Money to Host

  • 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

Add Money to Organizational Account

  • Endpoint: /accounts/payments
  • Method: POST
  • Description: Adds money to the organizational account for host payments.
  • Request Body: Amount, Payment Details
  • Response: Transaction ID, Status

Receive Money from Host

  • 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

Get Transaction Details

  • Endpoint: /payments/{transactionId}
  • Method: GET
  • Description: Retrieves transaction details by transaction ID.
  • Response: Transaction Details

SIM Card Data Loading

Load Data Bundle

  • 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

Check Remaining Balance

  • Endpoint: /devices/{deviceId}/balance
  • Method: GET
  • Description: Retrieves the remaining balance on a device's SIM card.
  • Response: Balance Amount

Error Handling

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.

Privacy Considerations

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.

Limitations and Fair Usage

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.

Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...