This endpoint is used to generate token. Token expires after 1hr
| username | string |
| password | string |
{- "username": "ultim45",
- "password": "5454"
}{- "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJET0MuSVBPUyIsImF1ZCI6Ind3dy5leGFtcGxlLmNvbSIsImlhdCI6MTYzMTcwMzcwOCwibmJmIjoxNjMxNzAzNzE4LCJleHAiOjE2MzE3MDM3NjgsInVzZXJuYW1lIjoiamV0In0.wMkPMJ1QHUfKneZSlbGyVUIZ2yc3_z1St4DjM2-bH8c"
}This endpoint verifies customer
| phone | any |
any |
| token required | string <string> |
{- "customer_id": 1,
- "service_id": [
- {
- "is_usage_based": "ultim45",
- "id": "5454",
- "service_id": "SUP-VEL-50",
- "product_id": 56
}
], - "name": "Jason Green",
- "email": "jason@green.com",
- "phone": "263777777777"
}Get customer packages and topup options data
| customerid required | any |
| token required | string <string> |
{- "customerid": "123",
- "subscribed_packages": [
- {
- "service_id": "SUP-VEL-70G-01",
- "product": 54,
- "balance": 500,
- "is_usage_based": false
}
], - "available_topup_options": {
- "type": "topup",
- "options": [
- {
- "service_id": "SUP-VEL-70G-01",
- "products": [
- {
- "id": 45,
- "name": "Velocity 46",
- "list_price": 3000,
- "is_usagebased": false
}
]
}
]
}, - "available_renew_options": {
- "type": "renew",
- "options": [
- {
- "service_id": "SUP-VEL-70G-01",
- "name": "Velocity 46",
- "list_price": 3000,
- "id": 45
}
]
}
}This endpoint will save transaction
| token required | string |
| customer_id | integer |
| service_id | string |
| product_id | integer |
| amount | number |
| reference | string |
| type | string |
{- "customer_id": 1,
- "service_id": "SUP-VEL-50",
- "product_id": 54,
- "amount": 123,
- "reference": "1234",
- "type": "renew"
}{- "message": "Success"
}