v7

latestOpenAPI 3.1.0raw.githubusercontent.com2026-05-31249122.2 KB
VAS

Purchase Data

post/api/v1/data/buy

Request body

planstring required

Plan id from GET /api/v1/plans/data (planId field) or Mongo _id

phonestring required
wallettypestring

Wallet type to debit. Defaults to main when omitted.

customerRefstring

Example request

{
  "plan": "40GB_MTN_GIFTING_1Day",
  "phone": "080*******",
  "wallettype": "main",
  "customerRef": "DATA-REF-001"
}

Response

OK