Public
Documentation Settings

TranzitPay API

We have provided interested developers with a simple and friendly designed API for Integration.

This easy and straight-forward API are available for the integration of our various services into your projects.

TEST MODE - https://sandbox.tranzit.com.ng

LIVE MODE - https://api.tranzit.com.ng

Any API Call send to our Live Mode Endpoint, the service will be delivered and wallet will be charged, if you are integrating/testing our services API you are advise to use our Test Mode Endpoint, to avoid been charged.

POSTDATA API

https://sandbox.tranzit.com.ng

This integration enables applications to share and access data, making it easier for businesses to streamline their operations

Here's a detailed description of DATA API integration:

Enquirements
  • HTTP Request Method should be set to POST

  • Header Authenication is required - Login -> API -> API Key to get your Token

  • Parameter is required - i. Action -> Set to DATA, ii. Service -> That's the Network, iii. Plan -> Thats the Bundle, iv. Number -> The Phone Number, v. Ref -> The unique transaction ID

  • Endpoint https://api.tranzit.com.ng

To know the amount for each data bundle and there duration, Login -> API -> Plan

NETWOK SERVICE CODES

The network service code allows users to dispense a particurlar network.

In the API request the argument in the table below is required in the parameter of Service.

NetworkService ID
MTN1
GLO2
AIRTEL3
9MOBILE4
AUTHORIZATIONBearer Token
Token

<token>

Bodyraw (json)
json
{
    "Action": "DATA",
    "Service": "1",
    "Plan": "101",
    "Number": "08069195863",
    "Ref": "DATA65412ED95BB0"
}
Example Request
curl
curl --location 'https://sandbox.tranzit.com.ng' \
--data '{
    "Action": "DATA",
    "Token": "f7f235ecad120a79761ed72c77f03f48",
    "Service": "1",
    "Plan": "101",
    "Number": "08069195863",
    "Ref": "DATA65412ED95BB0"
}'
200 OK
Example Response
json
{
  "action": "DATA",
  "description": "MTN Data 1GB Purchased On 08069195863",
  "status": "Successful",
  "response": "Dear Customer, You have successfully shared 1GB Data to 2348069195863. Your SME data balance is 19511.32GB expires 26/01/2024.Thankyou",
  "amount": "200",
  "pre_balance": "25000",
  "post_balance": "24800",
  "transaction_id": "API654D10A19B88E",
  "ref": "DATA65412ED95BB0",
  "time": "06:02 PM",
  "date": "09-Nov-2023"
}
Date

Thu, 09 Nov 2023 17:02:25 GMT

Server

Apache

Expires

Thu, 19 Nov 1981 08:52:00 GMT

Cache-Control

no-store, no-cache, must-revalidate

Pragma

no-cache

Connection

close

Transfer-Encoding

chunked

Content-Type

application/json

POSTAIRTIME API

https://api.tranzit.com.ng

This API is created for users to have access to purchase airtime from the comfort of their homes, and as well integrate this service to their projects.

Here's a detailed description of airtime API integration:

Enquirements
  • HTTP Request Method should be set to POST
  • Header Authenication is required - Login -> API -> API Key to get your Token
  • Parameter is required - i. Action -> Set to AIRTIME, ii. Service -> The Network ID, iii. Amount -> That's the Amount Of The Airtime, iv. Number -> The Phone Number, Ref -> The unique transaction ID
  • Endpoint https://api.tranzit.com.ng

To know the percentage off for each network, Login -> API -> Plan

NETWOK SERVICE CODES

The network service code allows users to dispense a particurlar network.

In the API request the argument in the table below is required in the parameter of Service.

NetworkService ID
MTN1
MTN Share N Sell11
MTN AwuF12
GLO2
AIRTEL3
9MOBILE4
AUTHORIZATIONBearer Token
Token

<token>

Bodyraw (json)
json
{
    "Action": "AIRTIME",
    "Service": "1",
    "Amount": "1000",
    "Number": "080XXXXXXXX",
    "Ref": "AIRTIME65412ED95BB0"
}
Example Request
curl
curl --location 'https://sandbox.tranzit.com.ng' \
--data '{
    "Action": "AIRTIME",
    "Token": "f7f235ecad120a79761ed72c77f03f48",
    "Service": "1",
    "Amount": "1000",
    "Number": "08069195863",
    "Ref": "AIRTIME65412ED95BB0"
}'
200 OK
Example Response
json
{
  "action": "AIRTIME",
  "description": "MTN Airtime Of ₦1,000 Purchased On 08069195863",
  "status": "Successful",
  "response": "You have topped up 1,00.00 NGN to 2348069195863",
  "amount": "980",
  "pre_balance": "25000",
  "post_balance": "24020",
  "transaction_id": "API654D16A02E460",
  "ref": "AIRTIME65412ED95BB0",
  "time": "06:28 PM",
  "date": "09-Nov-2023"
}
Date

Thu, 09 Nov 2023 17:28:00 GMT

Server

Apache

Expires

Thu, 19 Nov 1981 08:52:00 GMT

Cache-Control

no-store, no-cache, must-revalidate

Pragma

no-cache

Keep-Alive

timeout=5, max=100

Connection

Keep-Alive

Transfer-Encoding

chunked

Content-Type

application/json

POSTA2C API

https://api.tranzit.com.ng

The A2C API is created for users that wants to convert their excess airtime to cash and as well integrate this service to their projects.

Here's a detailed description of airtime API integration:

Enquirements
  • First you need to integrate the API to get the present airtime to cash numbers and rate. Goto the Service Details API follow the API guidelines to integrate that

  • HTTP Request Method should be set to POST

  • Header Authenication is required - Login -> API -> API Key to get your Token

  • Parameter is required - i. Action -> Set to A2C, ii. Service -> The Network ID, iii. Amount -> That's the Amount you want to convert, iv. Number -> The senders Phone Number, Ref -> The unique transaction ID

  • Endpoint https://api.tranzit.com.ng

To know the coverting rate for each network, Login -> API -> Plan

NETWOK SERVICE CODES

The network service code allows users to convert a particurlar network.

In the API request the argument in the table below is required in the parameter of Service.

NetworkService ID
MTN1
GLO2
AIRTEL3
9MOBILE4
AUTHORIZATIONBearer Token
Token

<token>

Bodyraw (json)
json
{
    "Action": "A2C",
    "Service": "1",
	"Amount":"5000",
    "Number": "080XXXXXXXX",
    "Ref": "A2C65412ED95BB0"
}
Example Request
curl
curl --location 'https://api.tranzit.com.ng' \
--data '{
"Action":"A2C",
"Service":"1",
"Amount":"1000",
"Number":"08038663038",
"Ref":"wwee11ofpfccoihh9yyiDDiiuuuuuKKoGuusstyt"
}'
200 OK
Example Response
json
{
  "action": "A2C",
  "description": "Convertion Of MTN Airtime Of ₦5000 From 080XXXXXXXX",
  "status": "Pending",
  "response": "Converting MTN Airtime Of ₦5000 To ₦4500 From 080XXXXXXXX To 08104XXXXX Expires 07:41 PM",
  "token": "",
  "amount": "4500",
  "pre_balance": "25000",
  "post_balance": "25000",
  "transaction_id": "A2C6568D636CEBB3",
  "ref": "A2C65412ED95BB0",
  "time": "07:36 PM",
  "date": "30-Nov-2023"
}
Date

Thu, 30 Nov 2023 18:36:38 GMT

Server

Apache

Expires

Thu, 19 Nov 1981 08:52:00 GMT

Cache-Control

no-store, no-cache, must-revalidate, post-check=0, pre-check=0

Pragma

no-cache

Vary

Authorization

Keep-Alive

timeout=5, max=100

Connection

Keep-Alive

Transfer-Encoding

chunked

Content-Type

application/json

POSTCABLE TV API

https://sandbox.tranzit.com.ng

This API enables users to integrate cable subscription, that enhance you subscribing from the comfort of your home.

Here's a detailed description of cable API integration:

Enquirements
  • HTTP Request Method should be set to POST
  • Header Authenication is required - Login -> API -> API Key to get your Token
  • Parameter is required - i. Action -> Set to CABLE, ii. Service -> That's the Service ID of the type of CABLE_,_ iii. Plan -> That's the Plan ID for the Package, iv. Number -> That's Decoder Number, v. Ref -> The unique transaction ID
  • Endpoint https://api.tranzit.com.ng

To know the amount for each cable package and there duration, Login -> API -> Plan

SERVICE CODES

The service code allows users to dispense a particurlar cable type.

In the API request the argument in the table below is required in the parameter of Service.

Cable TypesService ID
GOTV1
DSTV2
STARTIMES3

GOTV PLAN CODES

The CABLE API for GOTV service allows users to dispense a particurlar package.

In the API request the argument in the table below is required in the parameter of Plan.

PackageService ID
Smllie700
Jinja701
Joli702
Max703
Supa704
Supa Plus705

DSTV PLAN CODES

The CABLE API for DSTV service allows users to dispense a particurlar package.

In the API request the argument in the table below is required in the parameter of Plan.

PackagesService ID
Padi710
Yanga711
Confam712
Compact713
Compact Plus714
Premium715

STARTIMES PLAN CODES

The CABLE API for STARTIMES service allows users to dispense a particurlar package.

In the API request the argument in the table below is required in the parameter of Plan.

PackageService ID
Nova720
Basic721
Smart722
Classic723
Unique724
Super725
AUTHORIZATIONBearer Token
Token

<token>

Bodyraw (json)
json
{
    "Action": "CABLE",
    "Service": "1",
    "Plan": "700",
    "Number": "7038181XXX",
    "Ref": "CABLE65412ED95BB0"
}
Example Request
curl
curl --location 'https://sandbox.tranzit.com.ng' \
--data '{
    "Action": "CABLE",
    "Token": "f7f235ecad120a79761ed72c77f03f48",
    "Service": "1",
    "Plan": "700",
    "Number": "7038181999",
    "Ref": "CABLE65412ED95BB0"
}'
200 OK
Example Response
json
{
  "action": "CABLE",
  "description": "GOTV Purchased On Tranzit - Tech 07038181XXX",
  "status": "Successful",
  "response": "Your Payment Was Successful",
  "amount": "1300",
  "pre_balance": "25000",
  "post_balance": "23700",
  "transaction_id": "API654D1CD6D5FE6",
  "ref": "CABLE65412ED95BB0",
  "time": "06:54 PM",
  "date": "09-Nov-2023"
}
Date

Thu, 09 Nov 2023 17:54:30 GMT

Server

Apache

Expires

Thu, 19 Nov 1981 08:52:00 GMT

Cache-Control

no-store, no-cache, must-revalidate

Pragma

no-cache

Keep-Alive

timeout=5, max=100

Connection

Keep-Alive

Transfer-Encoding

chunked

Content-Type

application/json