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_rates can fetch rates but cannot execute conversions.

  • An API key with crypto_wallets can create wallets, check balances, and request payouts.

  • An API key with fiat_wallet can check NGN balances, request fiat payouts, and fetch virtual accounts.


Endpoints

Health & Rates

GET /v1/health

Scope: None Description: Returns the current status of the Ledig API. Useful for monitoring uptime. Sample Response


GET /v1/rates

Scope: 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

Scope: 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

Scope: 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

Scope: instant Description: Fetches the full details of a previously executed instant liquidity transaction. Sample Request

Sample Response


Crypto Wallets

POST /v1/create_wallet

Scope: 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

Scope: crypto_wallets Description: Lists all crypto wallets you have created under your account. Sample Request

Sample Response


POST /v1/wallet_details

Scope: crypto_wallets Description: Returns details of a single crypto wallet by alias (address, supported assets, etc). Sample Request

Sample Response


POST /v1/coin_balance

Scope: crypto_wallets Description: Checks the balance of a specific coin (USDT, USDC, etc) in your wallet. Sample Request

Sample Response


POST /v1/crypto_payout

Scope: crypto_wallets Description: Requests a crypto payout to one of your whitelisted settlement wallets. Sample Request

Sample Response


Fiat Wallets

POST /v1/fiat_balance

Scope: fiat_wallet Description: Returns the current balance of a fiat currency account (e.g., NGN). Sample Request

Sample Response


POST /v1/fiat_payout

Scope: fiat_wallet Description: Initiates a payout in fiat to one of your settlement accounts. Sample Request

Sample Response


POST /v1/funding_account

Scope: 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

Scope: 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

Scope: 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

Scope: fiat_wallet Description: Fetches full details of a specific virtual account by alias. Sample Request

Sample Response


Settlement Wallets & Accounts

POST /v1/settlement_wallets

Scope: 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

Scope: None Description: Returns details of a single settlement wallet by alias. Sample Request

Sample Response


POST /v1/add_settlement_wallet

Scope: 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

Scope: None Description: Lists all fiat settlement accounts linked to your business. Use these for payouts. Sample Response


POST /v1/settlement_account_details

Scope: None Description: Returns full details of a settlement account by alias. Sample Request

Sample Response


Sandbox / Admin Endpoints

POST /v1/fiat_balance_update

Scope: None Description: Sandbox only. Updates fiat balance manually for testing. Sample Request

Sample Response


POST /v1/crypto_balance_update

Scope: None Description: Sandbox only. Updates crypto balance manually for testing. Sample Request

Sample Response