Endpoints Guide
Permissions & Scopes
To protect your Ledig account, API keys are issued with specific scopes.
Scopes define which features your integration can access. If a key lacks the required scope, requests are rejected with a 403 forbidden error.
Available Scopes
view_rates→ Read access to currency rates.instant→ Access to instant liquidity contracts and conversions.crypto_wallets→ Manage crypto wallets, balances, and payouts.fiat_wallet→ Manage fiat balances, payouts, funding accounts, and virtual accounts.
Examples
An API key with only
view_ratescan fetch rates but cannot execute conversions.An API key with
crypto_walletscan create wallets, check balances, and request payouts.An API key with
fiat_walletcan check NGN balances, request fiat payouts, and fetch virtual accounts.
Endpoints
Health & Rates
GET /v1/health
GET /v1/healthScope: None Description: Returns the current status of the Ledig API. Useful for monitoring uptime. Sample Response
GET /v1/rates
GET /v1/ratesScope: view_rates
Description: Fetch available currency pair rates. Use this to display exchange rates in your app before executing conversions.
Sample Response
Instant Liquidity
GET /v1/instant_contracts
GET /v1/instant_contractsScope: instant
Description: Lists all available instant liquidity contracts. These contracts allow you to convert between stablecoins and fiat instantly.
Sample Response
POST /v1/instant_conversion
POST /v1/instant_conversionScope: instant
Description: Executes an instant liquidity contract, converting from one asset to another at the quoted rate.
Sample Request
Sample Response
POST /v1/instant_transaction
POST /v1/instant_transactionScope: instant
Description: Fetches the full details of a previously executed instant liquidity transaction.
Sample Request
Sample Response
Crypto Wallets
POST /v1/create_wallet
POST /v1/create_walletScope: crypto_wallets
Description: Creates a new crypto wallet on Ledig for your business (e.g., USDT wallet).
Sample Request
Sample Response
POST /v1/crypto_wallets
POST /v1/crypto_walletsScope: crypto_wallets
Description: Lists all crypto wallets you have created under your account.
Sample Request
Sample Response
POST /v1/wallet_details
POST /v1/wallet_detailsScope: crypto_wallets
Description: Returns details of a single crypto wallet by alias (address, supported assets, etc).
Sample Request
Sample Response
POST /v1/coin_balance
POST /v1/coin_balanceScope: crypto_wallets
Description: Checks the balance of a specific coin (USDT, USDC, etc) in your wallet.
Sample Request
Sample Response
POST /v1/crypto_payout
POST /v1/crypto_payoutScope: crypto_wallets
Description: Requests a crypto payout to one of your whitelisted settlement wallets.
Sample Request
Sample Response
Fiat Wallets
POST /v1/fiat_balance
POST /v1/fiat_balanceScope: fiat_wallet
Description: Returns the current balance of a fiat currency account (e.g., NGN).
Sample Request
Sample Response
POST /v1/fiat_payout
POST /v1/fiat_payoutScope: fiat_wallet
Description: Initiates a payout in fiat to one of your settlement accounts.
Sample Request
Sample Response
POST /v1/funding_account
POST /v1/funding_accountScope: fiat_wallet
Description: Returns the bank account details you should deposit into when funding your fiat wallet.
Sample Request
Sample Response
POST /v1/funding_request
POST /v1/funding_requestScope: fiat_wallet
Description: Submits a proof of payment (POP) after you have funded your fiat wallet. Ledig admins verify before crediting your wallet.
Sample Request
Sample Response
POST /v1/fiat_virtuals
POST /v1/fiat_virtualsScope: fiat_wallet
Description: Lists all your fiat virtual accounts. These are unique bank accounts assigned to you for receiving local deposits.
Sample Response
POST /v1/virtual_details
POST /v1/virtual_detailsScope: fiat_wallet
Description: Fetches full details of a specific virtual account by alias.
Sample Request
Sample Response
Settlement Wallets & Accounts
POST /v1/settlement_wallets
POST /v1/settlement_walletsScope: None Description: Returns all crypto settlement wallets linked to your business. Use these when configuring outbound transfers. Sample Request
Sample Response
POST /v1/settlement_wallet_details
POST /v1/settlement_wallet_detailsScope: None Description: Returns details of a single settlement wallet by alias. Sample Request
Sample Response
POST /v1/add_settlement_wallet
POST /v1/add_settlement_walletScope: None Description: Requests a new settlement wallet to be added and whitelisted in the Ledig ecosystem. Once approved, this wallet can safely receive crypto. Sample Request
Sample Response
POST /v1/settlement_accounts
POST /v1/settlement_accountsScope: None Description: Lists all fiat settlement accounts linked to your business. Use these for payouts. Sample Response
POST /v1/settlement_account_details
POST /v1/settlement_account_detailsScope: None Description: Returns full details of a settlement account by alias. Sample Request
Sample Response
Sandbox / Admin Endpoints
POST /v1/fiat_balance_update
POST /v1/fiat_balance_updateScope: None Description: Sandbox only. Updates fiat balance manually for testing. Sample Request
Sample Response
POST /v1/crypto_balance_update
POST /v1/crypto_balance_updateScope: None Description: Sandbox only. Updates crypto balance manually for testing. Sample Request
Sample Response