Public
Documentation Settings

VTU Affiliate API

Base URL is available in the API section of your profile page

AUTHORIZATIONBearer Token
Token

{{customer_api_key}}

Services

AUTHORIZATIONBearer Token
This folder is using Bearer Token from collectionVTU Affiliate API

GETFetch All Service

{base_url}/services
AUTHORIZATIONBearer Token
This request is using Bearer Token from collectionVTU Affiliate API
Example Request
curl
curl --location -g '{base_url}/services'
200 OK
Example Response
json
{
  "status": "Success",
  "code": 200,
  "message": "Success",
  "count": 7,
  "data": [
    {
      "id": 1,
      "name": "Data",
      "desc": "Purchase Data for all networks quickly and at a low cost, with immediate delivery.",
      "icon": "mobile"
    },
    {
      "id": 2,
      "name": "Airtime",
      "desc": "Never run out of airtime again; get instant top up for all networks.",
      "icon": "phone"
    },
    {
      "id": 3,
      "name": "TV",
      "desc": "Stay connected! Subscribe and renew your TV subscription instantly.",
      "icon": "television"
    },
    {
      "id": 4,
      "name": "Electricity Bill",
      "desc": "Purchasing prepaid meter tokens instantly, and paying estimated bills, are both possible.",
      "icon": "bolt"
    },
    {
      "id": 5,
      "name": "Educational",
      "desc": "WAEC, NECO, NABTEB and NBAIS Result Checker Pins at Cheap Rates with Instant Delivery.",
      "icon": "book-open-reader"
    },
    {
      "id": 6,
      "name": "Data Card",
      "desc": "Purchase Data Cards for all networks quickly and at a low cost, with immediate delivery.",
      "icon": "print"
    },
    {
      "id": 7,
      "name": "Recharge Card",
      "desc": "Recharge Cards",
      "icon": "signal"
    }
  ]
}
Date

Sun, 01 Oct 2023 20:13:12 GMT

Server

Apache/2.4.52 (Ubuntu)

Cache-Control

no-cache, private

X-RateLimit-Limit

60

X-RateLimit-Remaining

58

phpdebugbar-id

X18133632ea934ae29a2470db319175ef

Access-Control-Allow-Origin

*

Vary

Authorization

Keep-Alive

timeout=5, max=100

Connection

Keep-Alive

Transfer-Encoding

chunked

Content-Type

application/json

GETGet Service

{base_url}/services/{{service_id}}
AUTHORIZATIONBearer Token
This request is using Bearer Token from collectionVTU Affiliate API
Example Request
curl
curl --location -g '{base_url}/services/{{service_id}}'
200 OK
Example Response
json
{
  "status": "Success",
  "code": 200,
  "message": "Success",
  "data": {
    "id": 1,
    "name": "Data",
    "desc": "Purchase Data for all networks quickly and at a low cost, with immediate delivery.",
    "icon": "mobile"
  }
}
Date

Sun, 01 Oct 2023 20:14:08 GMT

Server

Apache/2.4.52 (Ubuntu)

Cache-Control

no-cache, private

X-RateLimit-Limit

60

X-RateLimit-Remaining

59

phpdebugbar-id

X3c45c814d7e49f1ab0dbcdc2252d2112

Access-Control-Allow-Origin

*

Vary

Authorization

Keep-Alive

timeout=5, max=100

Connection

Keep-Alive

Transfer-Encoding

chunked

Content-Type

application/json

GETFetch Service Categories

{base_url}/services/{{service_id}}/categories?page=1
AUTHORIZATIONBearer Token
This request is using Bearer Token from collectionVTU Affiliate API
HEADERS
Accept

application/json

PARAMS
page

1

Example Request
curl
curl --location -g '{base_url}/services/{{service_id}}/categories?page=1' \
--header 'Accept: application/json'
200 OK
Example Response
json
{
  "status": "Success",
  "code": 200,
  "message": "Success",
  "count": 4,
  "data": {
    "current_page": 1,
    "data": [
      {
        "id": 1,
        "name": "MTN",
        "desc": "MTN SME, CG, DIrect",
        "discount_based": false,
        "service_id": 1,
        "logo": "http://deesub.lara.localhost/storage/images/brand_asset/6444399fb83b5.png"
      },
      {
        "id": 2,
        "name": "Airtel",
        "desc": "Airtel SME, CG, DIrect",
        "discount_based": false,
        "service_id": 1,
        "logo": "http://deesub.lara.localhost/storage/images/brand_asset/6444522927107.png"
      },
      {
        "id": 3,
        "name": "Glo",
        "desc": "Glo Data Bundles",
        "discount_based": false,
        "service_id": 1,
        "logo": "http://deesub.lara.localhost/storage/images/brand_asset/6445565a12763.png"
      },
      {
        "id": 4,
        "name": "9mobile",
        "desc": "9mobile SME and Direct bundles",
        "discount_based": false,
        "service_id": 1,
        "logo": "http://deesub.lara.localhost/storage/images/brand_asset/64443a644bf77.png"
      }
    ],
    "first_page_url": "http://deesub.lara.localhost/api/v1/services/1/categories?page=1",
    "from": 1,
    "last_page": 1,
    "last_page_url": "http://deesub.lara.localhost/api/v1/services/1/categories?page=1",
    "links": [
      {
        "url": null,
        "label": "« Previous",
        "active": false
      },
      {
        "url": "http://deesub.lara.localhost/api/v1/services/1/categories?page=1",
        "label": "1",
        "active": true
      },
      {
        "url": null,
        "label": "Next »",
        "active": false
      }
    ],
    "next_page_url": null,
    "path": "http://deesub.lara.localhost/api/v1/services/1/categories",
    "per_page": 30,
    "prev_page_url": null,
    "to": 4,
    "total": 4
  }
}
Date

Sun, 01 Oct 2023 20:14:29 GMT

Server

Apache/2.4.52 (Ubuntu)

Cache-Control

no-cache, private

X-RateLimit-Limit

60

X-RateLimit-Remaining

58

phpdebugbar-id

X996d6fb71ec72b583e07d3c6c220d02d

Access-Control-Allow-Origin

*

Vary

Authorization

Keep-Alive

timeout=5, max=100

Connection

Keep-Alive

Transfer-Encoding

chunked

Content-Type

application/json

GETGet Category

{base_url}/services/{{service_id}}/categories/{{category_id}}
AUTHORIZATIONBearer Token
This request is using Bearer Token from collectionVTU Affiliate API
HEADERS
Accept

application/json

Example Request
curl
curl --location -g '{base_url}/services/{{service_id}}/categories/{{category_id}}' \
--header 'Accept: application/json'
200 OK
Example Response
json
{
  "status": "Success",
  "code": 200,
  "message": "Success",
  "data": {
    "id": 1,
    "name": "MTN",
    "desc": "MTN SME, CG, DIrect",
    "discount_based": false,
    "service_id": 1,
    "logo": "http://deesub.lara.localhost/storage/images/brand_asset/6444399fb83b5.png"
  }
}
Date

Sun, 01 Oct 2023 20:14:54 GMT

Server

Apache/2.4.52 (Ubuntu)

Cache-Control

no-cache, private

X-RateLimit-Limit

60

X-RateLimit-Remaining

57

phpdebugbar-id

Xe85bee4af455de8771107404f89c447a

Access-Control-Allow-Origin

*

Vary

Authorization

Keep-Alive

timeout=5, max=100

Connection

Keep-Alive

Transfer-Encoding

chunked

Content-Type

application/json