v2.4.0 Release

Build clean, reliable money flows

Integrate balances, beneficiaries, account inquiry, keys, and developer-first payment infrastructure with our REST APIs built for speed and clarity.

Environment:

1 Quick Start Guide

Create Account

Sign up for an account and access your developer settings.

Generate Keys

Retrieve your Public Key and Secret Key from the developer dashboard.

Make Request

Pass your keys in request headers and test balances and beneficiaries.

cURL Request
curl -X GET "https://flovide.com/api/v1/balances" ^
  -H "Accept: application/json" ^
  -H "X-Public-Key: pk_live_xxxxxxxxxxxxxxxxx" ^
  -H "X-Secret-Key: sk_live_xxxxxxxxxxxxxxxxx"

Authentication

The Flovide API uses your Public Key and Secret Key to authenticate requests. Include both keys in the request headers. Your public key identifies your account, while your secret key authorizes access.

All API requests must be made over HTTPS. Never expose your secret key in frontend code or public repositories.

Security

Store your secret key only on the server side. Use your public key for identification and your secret key for authorization.

Balances API

Reference
GET /api/v1/balances

List all balances

Returns all balances that belong to the matched account.

Parameters
currency String
Optional
GET /api/v1/balances/{id}

Fetch single balance

Returns one balance record for the matched account.

Path Parameter
id Integer
Required
POST /api/v1/balances

Create a balance

Creates a new balance for the matched account.

Body Parameters
name
Required
currency
Required

Beneficiaries API

Reference
POST /api/v1/beneficiaries/account-inquiry

Account Inquiry

Validate recipient details before creating a beneficiary.

Body Parameters
currency
Required
bank_code

Use the Flovide bank code. The provider-specific code is resolved internally.

Required
account_number
Required
POST /api/v1/beneficiaries

Create beneficiary

Creates a beneficiary for the matched account.

Body Parameters
type
Required (Individual or Corporate)
firstNames
Individual
lastName
Individual
name
Corporate
transfer_method
Required (bank or mobile)
bank.country
Required
bank.currency
Required
bank.accountHolder
Required (non-CAD)
bank.accountNumber
Required (Bank)
bank.bankCode
Required (Bank)
bank.mobileNumber
Required (Mobile, alt. to accountNumber)
bank.interac_first_name
Required (CAD)
bank.interac_last_name
Required (CAD)
bank.interac_email
Required (CAD)
GET /api/v1/beneficiaries

List beneficiaries

Returns all beneficiaries for the matched account.

GET /api/v1/beneficiaries/{id}

Fetch single beneficiary

Returns one beneficiary record for the matched account.

Path Parameter
id Integer
Required
DELETE /api/v1/beneficiaries/{id}

Delete beneficiary

Deletes a beneficiary by ID for the matched account.

Path Parameter
id Integer
Required

Transactions API

Reference
GET /api/v1/transactions

List transactions

Returns all transactions for the matched account.

GET /api/v1/transactions/{id}

Fetch single transaction

Returns one transaction record for the matched account.

Path Parameter
id Integer
Required
POST /api/v1/transactions

Initiate transaction

Creates a new transaction for the matched account.

Path Parameter
order_id Random UUID generate by you
Required
reference Random UUID generate by you
Required

Swaps API

Reference
POST /api/v1/swap

Swap between business balances

Converts funds from one of your business currency balances to another using Flovide's configured exchange rate. Both currency balances must exist in the active API environment. The test endpoint is /api/test/v1/swap.

Request Body
from_currencyThree-letter currency code
Required
to_currencyThree-letter currency code; must differ from source
Required
amountAmount to debit from the source balance; minimum 1, up to 2 decimal places
Required

Collections API

Reference
POST /api/v1/collections/interac

Interac collection (top-up)

Create a Flovide CAD collection with one API request. Flovide returns the payment instructions and credits the matching CAD wallet after the payment is confirmed. Track the final result with your collection webhook.

Body Parameters
amount
Required
email
Required (payer's email)

Rates API

Reference
GET /api/v1/rates

Get exchange rate

Returns exchange rate and transfer fee for a currency pair.

Query Params
from_currency
Required
to_currency
Required
amount
Optional

Reference Data API

Reference
GET /api/v1/reference-data/currencies

Currencies only

Returns all supported currencies.

GET /api/v1/reference-data/banks

Banks only

Returns banks, optionally filtered by country_iso and currency.

Query Params
country_iso
Optional
currency
Optional

Webhooks

Flovide sends a signed webhook to the configured Collection URL or Payout URL when an API transaction is created and whenever its status changes. Configure separate live and test endpoints from the Webhooks settings panel. Status changes such as pending, processing, successful, or failed are reported as separate events.

Always verify the X-Flovide-Signature header before trusting a webhook payload. Never process a webhook you haven't verified.

Event Types

collection.created

Sent to the configured Collection URL when the API creates a collection request, including its initial status.

payout.created

Sent to the configured Payout URL when the API creates a payout request, including its initial status.

transaction.success

Sent when an API transaction status changes to successful.

transaction.failed

Sent when an API transaction status changes to failed.

transaction.pending

Sent when an API transaction status changes to pending.

transaction.status_updated

Sent when an API transaction changes to a status not covered by the success, failed, or pending events.

Payloads

Every webhook request is a POST with a JSON body. Collection events are sent to the Collection URL and payout events to the Payout URL. Both use the common transaction fields; payout events also include recipient details.

Payout webhook payload
{
                  "message": "Transaction initiated",
                  "event_id": "01a1b1bc-6bf6-7142-a835-1cd2cf714d94",
                  "event": "payout.created",
                  "type": "payout",
                  "transaction_id": "019f6bb5-7f5f-724d-8999-8a86b98c0f2a",
                  "transaction_reference": "CAyAHe1XxpDs",
                  "transaction_status": "PENDING",
                  "transaction_fee": 1.50,
                  "transaction_amount_without_fee": 98.50,
                  "transaction_amount": 100.00,
                  "transaction_currency": "NGN",
                  "customer_id": null,
                  "recipient": {
                    "account_number": "0123456789",
                    "account_name": "Example Recipient",
                    "bank_name": "Example Bank",
                    "amount": 98.50
                  }
                }
Collection webhook payload
{
                  "message": "Transaction initiated",
                  "event_id": "01a1b1bc-6bf6-7142-a835-1cd2cf714d94",
                  "event": "collection.created",
                  "type": "collection",
                  "transaction_id": "019f6bb5-7f5f-724d-8999-8a86b98c0f2a",
                  "transaction_reference": "CA1MRs5KvbNb",
                  "transaction_status": "PENDING",
                  "transaction_fee": 1.30,
                  "transaction_amount_without_fee": 198.70,
                  "transaction_amount": 200.00,
                  "transaction_currency": "CAD",
                  "payer_email": "payer@example.com",
                  "customer_id": null
                }

For a collection, payer_email is the payer's email address when supplied with the collection request. It is separate from customer_id, which is an optional Flovide customer identifier and may be null. transaction_amount is the gross amount and transaction_amount_without_fee is the amount after the Flovide fee. Collection payloads do not include a recipient object. Subsequent status changes are delivered as separate events, such as transaction.success or transaction.failed.

Acknowledge a webhook

After verifying and handling the request, respond with an HTTP 2xx status. The response body may be JSON; Flovide records the HTTP status and response for delivery logs.

Example collection endpoint response
HTTP/1.1 200 OK
Content-Type: application/json

{
  "message": "Webhook processed"
}

Headers

Header Description
X-Flovide-Signature HMAC-SHA256 hex digest of the raw request body, signed with your webhook secret_key.
X-Flovide-Event The event type, matching the event field in the body (e.g. payout.created).
X-Flovide-Event-Id Unique ID for this event; use it to prevent processing duplicate deliveries.

Webhook logs

Fetch recent webhook events for the environment associated with your API keys: GET /api/v1/webhooks/logs or GET /api/test/v1/webhooks/logs. Optionally filter with ?type=COLLECTION or ?type=PAYOUT.

Verifying the Signature

Compute an HMAC-SHA256 digest of the raw request body using your secret key, then compare it to the X-Flovide-Signature header using a constant-time comparison.

$payload = file_get_contents('php://input');
                $signature = $_SERVER['HTTP_X_FLOVIDE_SIGNATURE'] ?? '';
                $secret = 'your_webhook_secret_key';

                $expected = hash_hmac('sha256', $payload, $secret);

                if (!hash_equals($expected, $signature)) {
                    http_response_code(401);
                    exit('Invalid signature');
                }

                $event = json_decode($payload, true);
                // process $event['event'] / $event['data'] ...

Retry Policy

If your endpoint doesn't respond with a 2xx status, Flovide retries delivery up to 5 times with increasing backoff:

Attempt Delay After Previous Failure
110 seconds
230 seconds
32 minutes
410 minutes
530 minutes

Respond quickly — return a 200 immediately, then process the event asynchronously if it requires heavier work. Your endpoint should be idempotent, since the same event may be delivered more than once.

Error Handling

All errors return a consistent structure: success, message, code, and optional errors/data.

Error Response Example
{
                  "success": false,
                  "message": "Validation failed",
                  "code": "VALIDATION_ERROR",
                  "errors": {
                    "amount": ["The amount field is required."]
                  },
                  "data": null
                }
Status Error Code Meaning
400 BAD_REQUEST Malformed or invalid request payload.
401 UNAUTHORIZED Missing or invalid authentication credentials/API keys.
403 FORBIDDEN Authenticated but not allowed to perform this action.
403 INVALID_KEY_MODE The API key environment does not match the endpoint (live or test).
403 WALLET_LOCKED A wallet involved in the requested swap is locked.
404 NOT_FOUND Requested resource was not found.
404 RATE_NOT_FOUND No configured exchange rate is available for the requested currency pair.
422 VALIDATION_ERROR Validation failed for one or more request fields.
422 SAME_CURRENCY The source and destination currencies must be different.
422 INVALID_WALLET A required wallet is missing for the account or API environment.
422 INSUFFICIENT_FUNDS Wallet balance is not enough to complete the transaction.
422 INSUFFICIENT_BALANCE The source wallet does not have enough funds for the requested swap.
500 SERVER_ERROR Unexpected internal server error occurred.
500 TXN_FAILED Transaction processing failed on the server/provider side.

Official SDKs