Skip to main content
POST
/
api
/
v1
/
cable
/
buy
Cable subscription
curl --request POST \
  --url https://api.dancity.app/api/v1/cable/buy \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "smartcardNumber": "1234567890",
  "cableplan": "GOtv_Supa_Plus_monthly_N16_800",
  "customerName": "John Doe",
  "customerRef": "CABLE-REF-001"
}
'
{
  "success": true,
  "message": "Cable subscription successful",
  "data": {
    "transactionId": "TXN-20260506-003",
    "status": "SUCCESS",
    "smartcardNumber": "1234567890",
    "package": "DStv Compact"
  }
}

Authorizations

Authorization
string
header
required

Merchant API key from the Dancity dashboard.

Body

application/json
smartcardNumber
string
required
Example:

"1234567890"

cableplan
string
required

planId from GET /api/v1/plans/cable (planId field) or Mongo _id. Provider is resolved from the plan.

Example:

"GOtv_Supa_Plus_monthly_N16_800"

customerName
string
required
Example:

"John Doe"

customerRef
string
Example:

"CABLE-REF-001"

Response

OK