POST
/
api
/
v1
/
purchase
/
data
/
plans
Buy Data
curl --request POST \
  --url https://api.dojah.io/api/v1/purchase/data/plans \
  --header 'AppId: <appid>' \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "plan": "<string>",
  "destination": "<string>"
}'
{
    "entity": {
        "phone_number": "2348012345678",
        "amount": 200,
        "network": "MTN 200 MB DATA BUNDLE",
        "reference_id": "dj_e076726b-b136-4e18-b63d-3eabc77d56c1"
    }
}

AppId
string
required
Application ID from dashboard

BODY PARAMS

plan
string
required
Plan type e.g 9MOBILE_1.5GB
destination
string
mobile number to receive data e.g 2348012345678

RESPONSES

200
json
json
400
Object
401
Object
{
    "entity": {
        "phone_number": "2348012345678",
        "amount": 200,
        "network": "MTN 200 MB DATA BUNDLE",
        "reference_id": "dj_e076726b-b136-4e18-b63d-3eabc77d56c1"
    }
}