> ## Documentation Index
> Fetch the complete documentation index at: https://docs.daya.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Funding Accounts

> How customers receive funds into Daya

## Overview

A **funding account** is the API resource that powers onramps and offramps. It gives a customer either an NGN virtual account or a crypto address, and lets you control where the money settles after it arrives.

Funding accounts are scoped to one customer and one rail:

| Rail | What the customer receives | Required fields |
| - | - | - |
| `NGN_VIRTUAL_ACCOUNT` | Bank account details for NGN transfers | `currency: NGN` |
| `CRYPTO_ADDRESS` | Stablecoin address on a supported chain | `asset`, `chain` |

## What You Can Build

Use funding accounts to create the receive flow you need:

| Flow | Funding account shape | Settlement |
| - | - | - |
| Temporary onramp | `NGN_VIRTUAL_ACCOUNT` + `TEMPORARY` | `INTERNAL_BALANCE`, `NGN_BALANCE`, or `ONCHAIN` |
| Permanent onramp | `NGN_VIRTUAL_ACCOUNT` + `PERMANENT` | `INTERNAL_BALANCE`, `NGN_BALANCE`, `CUSTOMER_NGN_BALANCE`, or `ONCHAIN` |
| Temporary balance funding | `CRYPTO_ADDRESS` + `TEMPORARY` | `INTERNAL_BALANCE` |
| Temporary offramp | `CRYPTO_ADDRESS` + `TEMPORARY` | `NGN_PAYOUT` |
| Permanent offramp | `CRYPTO_ADDRESS` + `PERMANENT` | `INTERNAL_BALANCE`, `CUSTOMER_NGN_BALANCE`, or `NGN_PAYOUT` |

For example, if you want to give a customer a reusable wallet address to collect USDC and keep the funds in your Daya balance, create a `PERMANENT` crypto funding account with `settlement_destination.type: INTERNAL_BALANCE`.

```json Reusable crypto address to Daya balance theme={"dark"}
{
  "type": "PERMANENT",
  "rail": "CRYPTO_ADDRESS",
  "customer": {
    "customer_id": "650e8400-e29b-41d4-a716-446655440000"
  },
  "asset": "USDC",
  "chain": "BASE",
  "settlement_destination": {
    "type": "INTERNAL_BALANCE"
  }
}
```

The account or address the customer should pay into is returned in `instructions`.

For NGN, `instructions` contains the bank account details:

```json theme={"dark"}
{
  "currency": "NGN",
  "instructions": [
    {
      "type": "NGN_VIRTUAL_ACCOUNT",
      "provider": "FLUTTERWAVE",
      "provider_availability": {
        "status": "OPERATIONAL"
      },
      "status": "ACTIVE",
      "bank_name": "Wema Bank",
      "bank_code": "035",
      "account_number": "1234567890",
      "account_name": "Daya - Ada Lovelace",
      "currency": "NGN"
    },
    {
      "type": "NGN_VIRTUAL_ACCOUNT",
      "provider": "PAYSTACK",
      "provider_availability": {
        "status": "DEGRADED",
        "message": "This provider is experiencing funding-account delays."
      },
      "status": "ACTIVE",
      "bank_name": "Wema Bank",
      "bank_code": "035",
      "account_number": "9876543210",
      "account_name": "Ada Lovelace",
      "currency": "NGN"
    }
  ]
}
```

`provider` identifies the funding provider. `bank_name` is the bank the customer pays. These values may be different, and two providers may return accounts from the same bank.

`bank_code` is included when the provider returns it or Daya can safely resolve it from the assigned `bank_name`. If it is omitted, use the returned `bank_name` and `account_number`; do not substitute a code from the account-creation request.

Treat the entries in `instructions` as independent payment options. Use each entry's `provider` and `status`; do not infer special meaning from its array position.

Every permanent NGN funding account response includes Flutterwave and Paystack. If a Paystack account has not been requested because the customer's bank details are missing, the Paystack entry is `REQUIRES_INFORMATION` and lists the fields you must submit. This entry does not contain a virtual account number. Show it as a payment option only after its status becomes `ACTIVE` and account details are present.

For crypto, `asset` identifies the stablecoin, `chain` identifies the network, and `instructions` contains the wallet address:

```json theme={"dark"}
{
  "asset": "USDC",
  "chain": "BASE",
  "instructions": [
    {
      "type": "CRYPTO_ADDRESS",
      "status": "ACTIVE",
      "address": "0x742d35cc6634c0532925a3b844bc9e7595f2bd18",
      "chain": "BASE"
    }
  ]
}
```

> [!NOTE]
>
> The product concepts are still onramps and offramps. New integrations create both with `/v1/funding-accounts`. The Legacy API section lists older `/v1/onramps` and `/v1/offramps` routes for existing integrations.

## Account Types

| Type | Use case | Amount | Lifetime |
| - | - | - | - |
| `TEMPORARY` | One-time payment details | Required integer `amount` for NGN virtual accounts | May expire |
| `PERMANENT` | Reusable payment details | Not allowed | Reusable until disabled |

Permanent NGN virtual accounts require the customer to have completed Tier 1 KYC.

## Temporary crypto balance funding

Use `TEMPORARY` + `CRYPTO_ADDRESS` + `INTERNAL_BALANCE` to receive USDT or USDC into your merchant USD balance. Provide the ID of an existing customer who belongs to your merchant account.

```json theme={"dark"}
{
  "type": "TEMPORARY",
  "rail": "CRYPTO_ADDRESS",
  "customer": {
    "customer_id": "650e8400-e29b-41d4-a716-446655440000"
  },
  "asset": "USDC",
  "chain": "ETHEREUM",
  "settlement_destination": {
    "type": "INTERNAL_BALANCE"
  }
}
```

Send this to [Create a funding account](https://docs.daya.co/api-reference/funding-accounts/create-funding-account.md) with an API key that grants `write` and a unique `X-Idempotency-Key`. Reads require `read`.

* Set `asset` and `chain`. Supported production chains are `ETHEREUM`, `BSC`, `SOLANA`, `BASE`, and `POLYGON`. Check deposit support for the asset with [Supported Chains](https://docs.daya.co/api-reference/supported-chains/list-supported-chains.md). Sandbox uses `ETHEREUM`.
* Omit `currency`, `rate_id`, and payout destination fields. No FX quote is needed.
* Optional `amount` is a positive integer estimate in major token units. When supplied, the response returns a decimal string, such as `"500.00"`.
* Optional `developer_fee.percentage` is a decimal string from `0` to `50`, defaulting to `0`. The bridge fee and limits do not apply to this funding flow.

Show the returned `instructions[].address`, asset, chain, and `expires_at`. The payment window is **30 minutes**. Stop showing payment instructions at the deadline. Never reuse an address after `expires_at`; a later payment may not reach this account.

Track each deposit through `/v1/deposits` and `deposit.*` webhooks. Credit the payment only on `deposit.completed`. A deposit with `FUNDING_ACCOUNT_EXPIRED` requires review; contact [support@daya.co](mailto:support@daya.co) with its ID. Funding-account setup continues to use `funding_account.*` events.

Retry creation with the same key and body to avoid another account. Retries preserve the original address and deadline. See [idempotency](https://docs.daya.co/authentication.md#idempotent-write-requests).

See [sandbox checks](https://docs.daya.co/limits/sandbox-testing.md#temporary-crypto-balance-funding). For a payment to an external address on another chain, use [Bridges](https://docs.daya.co/concepts/bridges.md).

## Permanent NGN Accounts

Permanent NGN funding accounts support two banking providers: `FLUTTERWAVE` and `PAYSTACK`.

Complete Tier 1 KYC to create a permanent NGN funding account. Add the customer's verified bank details and Nigerian phone number when you submit Tier 1 KYC, or [update them later](https://docs.daya.co/api-reference/customers/update-tier1-verification.md), so Paystack can verify the customer and provide another instruction. The phone number is not required when Tier 1 is submitted without bank details.

Submitting bank details starts Paystack's asynchronous bank account verification even when the customer does not yet have a permanent NGN funding account. If Paystack is temporarily unavailable, Daya keeps the verification pending and starts it automatically after the provider recovers. Subscribe to `customer.bank_account_verification.succeeded` and `customer.bank_account_verification.failed` for the result.

After a successful result, Daya adds or activates the Paystack instruction on an existing permanent NGN funding account. If this makes a pending funding account usable, Daya sends `funding_account.active`; otherwise it sends `funding_account.updated`. If the customer does not have a permanent NGN funding account yet, Daya retains the verified result and uses it when you create one later. A failed Paystack verification does not prevent an available Flutterwave instruction from being created or used.

Before submitting bank details, get the supported bank code from [`GET /v1/banks`](https://docs.daya.co/api-reference/banks/list-banks) and verify the account with [`POST /v1/banks/resolve`](https://docs.daya.co/api-reference/banks/resolve-bank-account). The submitted account is not the funding account you give the customer.

The create response returns the available instructions. Show the customer any instruction whose `status` is `ACTIVE`. There is no provider field in the create request.

| Instruction status | What to do |
| - | - |
| `REQUIRES_INFORMATION` | Submit the fields listed in `required_fields`, then create the same permanent funding account again. |
| `PENDING` | Wait for `funding_account.active` when no payment option is active yet, or `funding_account.updated` when another instruction is already active. |
| `ACTIVE` | The instruction is ready to show to the customer. |
| `FAILED` | Read `failure.code` and `failure.message`, correct the customer details if needed, then create the same permanent funding account again. |

Calling create again with the same permanent account details does not create another live funding account. Daya returns the existing account with its latest instructions.

## Provider Availability

Each provider-backed instruction includes `provider_availability` so your integration can explain provider delays and outages.

| Field | Meaning |
| - | - |
| `status` | `OPERATIONAL`, `DEGRADED`, or `UNAVAILABLE`. |
| `message` | A user-facing explanation of a disruption. It is omitted for `OPERATIONAL`. |

| Availability status | How to handle it |
| - | - |
| `OPERATIONAL` | The provider is working normally. |
| `DEGRADED` | The provider accepts new requests but has a known delay or limitation. Show `message` where useful. |
| `UNAVAILABLE` | The provider is temporarily unavailable for new requests. Show `message` for the current guidance. |

For permanent NGN accounts, Daya evaluates Flutterwave and Paystack independently:

* If both providers are available, the response includes both provider instructions.
* If Flutterwave is `UNAVAILABLE` and Paystack can accept the request, Daya continues through Paystack when the customer has verified bank details. The response still includes the Flutterwave entry with `provider_availability.status: UNAVAILABLE`.
* If Paystack is `UNAVAILABLE`, Daya can continue through Flutterwave. The Paystack entry remains visible with `provider_availability.status: UNAVAILABLE`.
* If neither provider can accept a new permanent NGN request, creation returns HTTP `503` with error code `PROVIDER_UNAVAILABLE` and the configured message.

Temporary NGN accounts and crypto accounts use a single provider. Their creation returns `503 PROVIDER_UNAVAILABLE` when that provider is unavailable.

## Developer Fees

Developer fees let you keep a percentage of each deposit received through a funding account. Add `developer_fee.percentage` when creating the funding account.

Use a decimal string from `0` to `50`. Omit `developer_fee` to use `0%`.

`developer_fee.percentage` uses percentage values, not basis points. For example, `0.5` means `0.5%`, `2` means `2%`, and `50` means `50%`. This differs from rate `fee_bps`, where `50` means `0.5%`.

The percentage is stored on the funding account and applies to every deposit received through that account. Funding account responses include `developer_fee.percentage`. Deposit responses and deposit webhooks include `developer_fee` and `customer_amount` after Daya calculates the split, so you can reconcile your fee separately from Daya fees.

The developer fee is deducted before the final customer amount is calculated. It is not added as a separate charge. Use `developer_fee.amount` and `developer_fee.currency` to track the fee your merchant account kept, and use `customer_amount` as the amount left for the customer.
Flat developer fees, such as `NGN 500` or `$1` per transaction, are not currently supported through `developer_fee`.

## Settlement Destinations

Settlement destination controls where received funds are delivered after the funding account receives money.

| Rail | Type | Supported destinations |
| - | - | - |
| `NGN_VIRTUAL_ACCOUNT` | `TEMPORARY` | `INTERNAL_BALANCE`, `NGN_BALANCE`, `ONCHAIN` |
| `NGN_VIRTUAL_ACCOUNT` | `PERMANENT` | `INTERNAL_BALANCE`, `NGN_BALANCE`, `CUSTOMER_NGN_BALANCE`, `ONCHAIN` |
| `CRYPTO_ADDRESS` | `TEMPORARY` | `NGN_PAYOUT`, `INTERNAL_BALANCE` |
| `CRYPTO_ADDRESS` | `PERMANENT` | `INTERNAL_BALANCE`, `CUSTOMER_NGN_BALANCE`, `NGN_PAYOUT` |

Balance destinations have different owners:

| Destination | Result |
| - | - |
| `INTERNAL_BALANCE` | Uses the existing automatic merchant-balance settlement flow. |
| `NGN_BALANCE` | Retains an NGN virtual-account deposit in the merchant's `withdrawal_balance_ngn`. |
| `CUSTOMER_NGN_BALANCE` | Retains NGN, or converts supported USDC/USDT, into the funding account customer's NGN balance. Permanent accounts only. |

See [Customer NGN balances](https://docs.daya.co/concepts/customer-ngn-balances.md) to create customer-owned balances, read them, and spend them through customer-scoped transfers.

For an NGN virtual account that should automatically deliver USDT to a customer wallet, use `ONCHAIN` with `destination_asset: USDT`. BNB Smart Chain (`BSC`) and Polygon are supported in production when `GET /v1/supported-chains` returns `withdraw_enabled: true` for USDT on the selected chain.

For `NGN_PAYOUT`, fetch supported banks with [`GET /v1/banks`](https://docs.daya.co/api-reference/banks/list-banks), verify the account with [`POST /v1/banks/resolve`](https://docs.daya.co/api-reference/banks/resolve-bank-account), then send the verified `destination_bank.account_number` and `destination_bank.bank_code`.

## Lifecycle

Funding accounts move through these statuses:

| Status | Meaning |
| - | - |
| `PENDING` | Funding account setup is in progress |
| `ACTIVE` | Payment details are ready and can be shown to the customer |
| `FAILED` | Funding account setup failed |
| `DISABLED` | Funding account and active payment details are disabled |

Permanent active funding accounts can rotate settlement destination with `PATCH /v1/funding-accounts/{id}/settlement-destination`. Rotation does not create new payment details.

## Webhooks

Funding account setup emits:

| Event | When sent |
| - | - |
| `funding_account.created` | Funding account record is created in `PENDING` state |
| `funding_account.active` | Payment details are ready |
| `funding_account.updated` | A funding-account instruction changed status or received updated payment details |
| `funding_account.failed` | Setup fails |
| `funding_account.disabled` | An active funding account is disabled |

The webhook `data` object is the same public funding account response returned by the API.

Bank account verification is reported separately:

| Event | When sent |
| - | - |
| `customer.bank_account_verification.succeeded` | Paystack verified the customer's current bank details |
| `customer.bank_account_verification.failed` | Paystack rejected the customer's current bank details; read `failure_code` and `failure_message` |

See [Webhook Events](https://docs.daya.co/api-reference/webhooks/events.md#bank-account-verification-events) for the result fields and payload examples.

## Deposits from Funding Accounts

When money arrives through a funding account, Daya creates a deposit. Deposit API responses and deposit webhook payloads include `funding_account_id` so you can connect the incoming money back to the funding account the customer paid into.

Funding-account instruction IDs stay internal. Your integration should store the public `funding_account_id` and the deposit `id`.

| Event | When sent |
| - | - |
| `deposit.received` | Incoming funds are recorded |
| `deposit.processing` | Settlement has started |
| `deposit.requires_review` | The deposit needs review before it can continue |
| `deposit.completed` | Funds reached the configured settlement destination |
| `deposit.failed` | The deposit failed |
| `deposit.reversed` | A completed deposit was reversed |

> [!NOTE]
>
> If settlement requires background delivery work, track the merchant-facing lifecycle with `deposit.*` events. Funding-account settlement does not emit separate payout webhooks.

## Next Steps

> [card] [Create Funding Account](https://docs.daya.co/api-reference/funding-accounts/create-funding-account.md)
>
> Create NGN or crypto payment details.

> [card] [Onramps](https://docs.daya.co/concepts/onramps.md)
>
> Collect NGN from customers.

> [card] [Offramps](https://docs.daya.co/concepts/offramps.md)
>
> Collect stablecoins from customers.

> [card] [Webhook Events](https://docs.daya.co/api-reference/webhooks/events.md)
>
> Track funding account and deposit state changes in real time.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.