Skip to content
StockBill

Developers

Build payments into your product.

Generate Live or Test keys in the merchant workspace, create a collection with amount, currency, reference, and customer email, then subscribe to payment events.

The snippet is the collections request shown in Settings → Developers — not a public SDK.

collections.ts

Live
// Settings → Developers · collections previewconst collection = await client.collections.create({  amount: 50000,  currency: "NGN",  reference: "ORD-001",  customer: { email: "customer@example.com" }});
  • Collection created

    POST /v1/collections · 201

  • Webhook received

    payment.completed

  • Transaction verified

    TXN-8F2A91 · success

Capabilities

What the merchant developer workspace exposes

These paths and events come from Settings → Developers in the dashboard. There is no separate public API portal in this product yet — integration is configured in the workspace.

  • Collections

    Create inbound collection requests. Developer settings show POST /v1/collections with amount, currency, reference, and customer email.

  • Transactions

    Request logs include GET /v1/transactions and GET /v1/transactions/{id} for status checks after a collection.

  • Virtual accounts

    POST /v1/virtual-accounts and GET /v1/virtual-accounts/{id} appear in the same request log as dashboard VA management.

  • Payouts

    POST /v1/payouts and GET /v1/payouts/{id} map to the Payouts screens merchants already use.

  • Settlements

    GET /v1/settlements?status=pending is how the log represents settlement queries.

  • Webhooks

    Subscribe per endpoint to payment, payout, settlement, and virtual-account events, then test delivery from the dashboard.

Request shape

Create a collection the way the dashboard documents it

Merchant developer settings include this cURL example. Authenticate with a Bearer Live or Test secret key. Amount is in the smallest currency unit shown in the preview (50000 with currency NGN).

  • Authorization

    Authorization: Bearer sk_live_… or sk_test_… depending on the key you generated.

  • Body

    amount, currency, reference, and customer.email — the only request fields shown in the dashboard snippet.

Workflow

Build, authenticate, collect, then verify

This is the path through the merchant developer settings — not a published SDK.

  1. 01

    Build

    Create the merchant account and open API & webhooks or Settings → Developers.

  2. 02

    Authenticate

    Generate a Live or Test key. Restrict it with Collections, Payouts, Settlements, Virtual Accounts, or Reporting.

  3. 03

    Create collection

    POST /v1/collections with amount, currency, reference, and customer email.

  4. 04

    Receive webhook

    Subscribe to payment.initiated, payment.completed, or payment.failed on your HTTPS endpoint.

  5. 05

    Verify transaction

    Match the event to GET /v1/transactions/{id} or the Transactions screen.

Webhooks

Subscribe to the events the dashboard actually lists

Add an endpoint URL, choose events, then test, pause, or inspect delivery. Preferences can retry failed deliveries up to five times over 24 hours, store a webhook secret, and set a 5s, 10s, or 30s timeout.

Request log

See the calls the workspace records

Settings → Developers includes a recent API request table (method, path, status, latency). The rows below are the same preview paths the dashboard uses.

Keys

Live and test secrets from the same settings screen

Generate a key with a name, environment, permission set, and expiry (never, 30 days, 90 days, or 1 year). The secret is shown once. Rate limit on the simpler API page is displayed as 100 requests per minute.

Developers

Start building with StockBill.

Register the business, generate a key in Settings → Developers, and subscribe your endpoint to payment events from the same workspace.