Skip to main content
POST
Purchase Data

Authorizations

Authorization
string
header
required

Merchant API key from the Dancity dashboard.

Body

application/json
plan
string
required

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

Example:

"40GB_MTN_GIFTING_1Day"

phone
string
required
Example:

"080*******"

wallettype
string
default:main

Wallet type to debit. Defaults to main when omitted.

Example:

"main"

customerRef
string
Example:

"DATA-REF-001"

Response

OK