Telco Bill Payments (1.0.0-oas3)

Download OpenAPI specification:Download

Telco Bill Payments API

Authentication

This endpoint is used to generate token. Token expires after 1hr

Request Body schema: application/json
username
string
password
string

Responses

Request samples

Content type
application/json
{
  • "username": "ultim45",
  • "password": "5454"
}

Response samples

Content type
application/json
{
  • "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJET0MuSVBPUyIsImF1ZCI6Ind3dy5leGFtcGxlLmNvbSIsImlhdCI6MTYzMTcwMzcwOCwibmJmIjoxNjMxNzAzNzE4LCJleHAiOjE2MzE3MDM3NjgsInVzZXJuYW1lIjoiamV0In0.wMkPMJ1QHUfKneZSlbGyVUIZ2yc3_z1St4DjM2-bH8c"
}

Fetch customer details

This endpoint verifies customer

query Parameters
phone
any
email
any
header Parameters
token
required
string <string>

Responses

Response samples

Content type
application/json
{
  • "customer_id": 1,
  • "service_id": [
    ],
  • "name": "Jason Green",
  • "email": "jason@green.com",
  • "phone": "263777777777"
}

Get customer packages and topup options data

Get customer packages and topup options data

query Parameters
customerid
required
any
header Parameters
token
required
string <string>

Responses

Response samples

Content type
application/json
{
  • "customerid": "123",
  • "subscribed_packages": [
    ],
  • "available_topup_options": {
    },
  • "available_renew_options": {
    }
}

Save transaction

This endpoint will save transaction

header Parameters
token
required
string
Request Body schema: application/json
customer_id
integer
service_id
string
product_id
integer
amount
number
reference
string
type
string

Responses

Request samples

Content type
application/json
{
  • "customer_id": 1,
  • "service_id": "SUP-VEL-50",
  • "product_id": 54,
  • "amount": 123,
  • "reference": "1234",
  • "type": "renew"
}

Response samples

Content type
application/json
{
  • "message": "Success"
}