Novaside

Node Token API v1

Check balances, consume tokens, read history and calculate profit from any backend. JSON over HTTPS.

Authentication

Create keys in your dashboard. Live keys (ns_live_…) use the live wallet, test keys (ns_test_…) the sandbox wallet. Limit: 120 requests/minute per key.

Authorization: Bearer ns_live_xxxxxxxxxxxxxxxx

Base URL: https://novasidesolutions.ng/api/v1

Endpoints

GET/pingHealth check (no auth).
GET/ratesPublic rate ladders, minimums and settlement account (no auth).
GET/balanceWallet balance for the key’s environment (live or test).
GET/quote?mode=pay_as_you_go&amount=5000000Tokens you would receive for an amount. Recurring also needs &cycles=3|6|12.
POST/tokens/consumeSpend tokens. Body: amount, optional description, metadata. Send Idempotency-Key so retries never double-charge. 402 insufficient_tokens if the balance is too low.
GET/transactionsHistory. Filters: type, category, from, to, page, per_page (≤100).
GET/transactions/{reference}One transaction.
POST/tokens/mintOpen a mint request. Body: amount_ngn, mode (+ mode fields). Returns the settlement account; status awaiting_proof.
POST/tokens/mint/{ref}/proofmultipart/form-data: proof (JPG/PNG/PDF ≤5MB), sender_bank, payment_ref. Moves the request to admin review.
GET/tokens/mint[/{ref}]List or fetch mint requests and their status.
GET/profit?resale_rate=1.2&from=2026-10-01&to=2026-10-31Profit after token sales: consumed × resale price − consumed × average purchase cost.
GET/invoicesYour paid invoices.

Consume tokens

curl -X POST https://novasidesolutions.ng/api/v1/tokens/consume \
  -H "Authorization: Bearer ns_live_xxxxxxxx" -H "Idempotency-Key: reward-10293" \
  -H "Content-Type: application/json" \
  -d '{"amount": 25, "description": "Referral reward", "metadata": {"user_id": 42}}'

201 Created
{ "data": { "reference": "TXN-261026-A1B2C3D4", "type": "debit", "category": "consume",
            "tokens": 25, "balance_after": 4975, "replayed": false, ... } }

402 { "error": { "code": "insufficient_tokens", "message": "Insufficient token balance.",
                 "details": { "balance": 10, "required": 25 } } }

Webhooks

Set a callback URL in Company Settings. Events: tokens.minted, balance.low. Verify X-Novaside-Signature: t=<unix>,v1=<hex> where v1 = HMAC_SHA256(secret, t + "." + rawBody); reject if t is older than 5 minutes.

$expected = hash_hmac('sha256', $t . '.' . $rawBody, $secret);
if (!hash_equals($expected, $v1)) { http_response_code(401); exit; }

Errors

Every error is {"error":{"code","message","details?"}}. Codes: unauthenticated 401 · invalid_key 401 · account_suspended 403 · not_found 404 · idempotency_conflict 409 · invalid_amount/below_minimum 422 · insufficient_tokens 402 · rate_limited 429.