Get your API credentials
After your business account is approved, navigate to Dashboard → Security → API Client to find your credentials.
| Credential | Description |
|---|---|
client_id | Your unique business identifier — safe to log |
client_secret | Your secret key for generating auth tokens |
Generate a bearer token
Exchange your credentials for a short-lived JWT. All API calls require this token in the A successful response returns a Cache the token on your server and regenerate it before it expires. Tokens are valid for 1 hour.
Authorization header.token and its expires_in value in seconds:Create a customer account
Provision a permanent virtual account for one of your customers using their BVN or NIN. This account can receive payments indefinitely — no need to generate a new one for each transaction.On success, Shogun returns the provisioned account details:Your customer can now receive payments at account number
8801234567. Share this number with them as their dedicated payment address.At least one of
bvn or nin must be provided. Both values must be exactly 11 digits. If identity verification fails, you’ll receive response_code: "83" — see Errors for guidance.Set up a webhook
Register a webhook URL so Shogun notifies your server in real time whenever a payment lands or a transfer completes.Shogun signs every webhook payload with an HMAC-SHA256 signature in the
X-Shogun-Signature header. You must verify this signature before processing the event. See Authentication for verification code examples in Python and JavaScript.Next steps
Authentication
Token lifecycle, credential management, and webhook signature verification
Errors
Response codes, HTTP status mapping, and retry logic
Transfers
Send funds to any bank account
Webhooks
Receive and process inbound payments