Skip to main content

Connect to a bank running CoreWave

The CoreWave API lets your app work with a bank’s customers, accounts, payments, loans and deposits. The bank gives you credentials and decides which products and services you can use.

JSON response properties use camelCase, including status, message, data, id and institutionID. Encrypted dashboard responses use the same names after decryption. Dictionary keys such as NGN and provider-defined field names retain their original casing. A missing or unreadable decision response is unconfirmed: check the saved approval or payment reference before retrying a financial action.

1. Get your bank’s integration details​

Ask the bank for:

  • The staging and production API base URLs, with separate credentials for each environment. The explorer defaults to https://api.staging.ibanks.corewavecba.com and https://api.ibanks.corewavecba.com; confirm the addresses assigned to your bank.
  • A clientId and clientSecret from the bank’s API key management. Each key gives access to one bank. Staff portal tokens cannot be used for these API requests.
  • Test accounts, available product codes, branch IDs and account officer codes. Transfer, bill and card providers must be enabled and their settlement ledgers configured by the bank.
  • The bank’s approval requirements, transaction limits and support contacts.

Keep credentials in your server-side secret store. Use your backend to call CoreWave. Do not include client secrets in your web or mobile app.

2. Authenticate​

Set COREWAVE_BASE_URL to the HTTPS base URL supplied by the bank, without an API path. These examples use Bash or Zsh, cURL, jq and uuidgen.

export COREWAVE_BASE_URL='https://api.staging.ibanks.corewavecba.com'
# Put your bank-issued credentials in credentials.json on your development machine.
# Do not commit that file or include it in support messages.
set -o pipefail
COREWAVE_TOKEN="$(
curl --fail-with-body --request POST "$COREWAVE_BASE_URL/api/auth/v1/authenticate" \
--header 'Content-Type: application/json' \
--data-binary @credentials.json \
| jq -er '.accessToken | select(type == "string" and length > 0)'
)" && export COREWAVE_TOKEN

credentials.json:

{
"clientId": "YOUR_CLIENT_ID",
"clientSecret": "YOUR_CLIENT_SECRET"
}

The command captures the token without printing it or saving the token itself in shell history. Stop if it fails. A successful authentication response has these fields directly, without a data wrapper:

{
"accessToken": "YOUR_ACCESS_TOKEN",
"tokenType": "Bearer",
"expirationTime": 1793707200,
"tokenValiditySec": 3600
}

The token and numbers above are examples. expirationTime is Unix time in seconds; tokenValiditySec is a duration in seconds. The default duration is 3,600 seconds and can be changed by the bank. Re-authenticate before expiry; there is no refresh-token endpoint. API keys are disabled after 14 days without activity. Ask the bank to reactivate an inactive key.

3. Verify with a read request​

The command above sets COREWAVE_TOKEN for this shell session. List one available product:

curl --fail-with-body --request GET \
"$COREWAVE_BASE_URL/api/product/v1/searchproducts?PageNumber=1&PageSize=1" \
--header "Authorization: Bearer $COREWAVE_TOKEN" \
--header "request-reference: read-$(uuidgen)"

A successful response confirms that your token works. The product list may be empty if the bank has not set up products for your integration. If the request fails, read the status and error message before sending payments.

Request conventions​

ConcernContract
Routing/api/{module}/v1/{action}; use the exact route and HTTP method from the explorer.
AuthorizationAuthorization: Bearer ACCESS_TOKEN on protected routes. The token determines which bank’s records you can access.
CorrelationSend a unique request-reference per attempt, up to 100 printable ASCII characters. The response echoes it. The server generates one if absent or unsuitable.
Retry safetyrequest-reference is not a universal idempotency key. Save the payment reference separately and use it to check payment status.
MoneyAmounts are in Naira, including decimal amounts; do not multiply by 100. Keep account numbers and bank codes as strings.
JSONUse the field names shown in the API reference. Required fields are marked; some options and bank rules require extra fields.
DatesDate-only values use YYYY-MM-DD. Date-time values use ISO 8601. Ask the bank which financial date and timezone to use for reports and postings.
PaginationSearch endpoints commonly accept PageNumber and PageSize. Check each endpoint’s contract; response formats differ between endpoints.
Extra dataMetadata fields accept nested JSON objects or arrays for the bank’s extra data. A metadata PUT request replaces the stored value.

Your connection works when​

You can authenticate, retrieve a product response and capture the echoed request-reference. An empty product list still confirms an authenticated response; ask the bank to set up products before creating accounts. Run this read request again when testing a new environment.

For your next step, use Postman and OpenAPI, or troubleshoot a blocked request.

Continue your integration​