Skip to main content

Overview

The education PIN endpoint lets you purchase result-checker and exam registration scratch cards (WAEC, NECO, JAMB, etc.) in bulk or one at a time. Fetch exam product names from Get products (service=EXAM PIN or the matching service name from your catalog), then call purchase directly.

Authentication

Requires your merchant API key and the channel: API header.
Authorization: Bearer dcy_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
channel: API

Purchase education PIN

POST /api/v1/education-pin/purchase

Request body

FieldTypeRequiredDescription
exam_namestringExam product name from catalog
quantitynumberNumber of PINs (1–5; JAMB must be 1)
examNumberstringRequired for JAMB purchases
customerRefstringYour internal reference ID
promocodestringDiscount promo code
curl -sS -X POST "https://api.dancity.app/api/v1/education-pin/purchase" \
  -H "Authorization: Bearer $DANCITY_API_KEY" \
  -H "Content-Type: application/json" \
  -H "channel: API" \
  -d '{
    "exam_name": "WAEC Result Checker",
    "quantity": 1,
    "customerRef": "EDU-REF-001"
  }'

Full purchase flow

1. GET /api/v1/products?service=EXAM PIN
   → pick exam_name and note unit price

2. POST /api/v1/education-pin/purchase
   { exam_name, quantity }
   → receive PIN details in the transaction response
Education PINs are delivered immediately. Store them securely — they cannot be re-fetched from the API after the transaction response is received.

Next steps