Skip to main content
POST
/
api
/
cash
Airtime to Cash
curl --request POST \
  --url https://api.mysubwallet.ng/api/cash \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "step": 1,
  "network": 1,
  "phone": "2347013397088",
  "otp": "123456",
  "data": "<string>",
  "share_pin": "1234",
  "amount": 1000
}
'
{
  "status": "success",
  "message": "Airtime converted. Your wallet has been credited.",
  "newbal": 111000
}

Authorizations

Authorization
string
header
required

Your API key as Token <your_api_key>.

Body

application/json
step
enum<integer>
required
Available options:
1,
2,
3
Example:

1

network
integer
required

Network plan ID (MTN or Airtel only).

Example:

1

phone
string
required
Example:

"2347013397088"

otp
string

Step 2 — OTP received from the network.

Example:

"123456"

data
string

Steps 2 & 3 — verification token returned by the previous step.

share_pin
string

Step 3 — your 4-digit network Share-and-Sell PIN.

Example:

"1234"

amount
number

Step 3 — airtime amount to convert.

Example:

1000

Response

200 - application/json

Result