{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bitnob/json-schema/bitnob-payouts-create-quote-request-schema.json",
  "title": "PayoutsCreateQuoteRequest",
  "description": "Give exactly one of amount, amount_in_base_units or settlement_amount. amount_in_base_units wins over amount when both are sent, and either wins over settlement_amount.",
  "x-generated": "2026-11-16",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bitnob-openapi.json#/components/schemas/PayoutsCreateQuoteRequest",
  "properties": {
    "amount": {
      "description": "Source amount in major units of from_asset (BTC, tokens, naira), decimal string",
      "type": "string"
    },
    "amount_in_base_units": {
      "description": "Source amount in base units: satoshis for BTC, 10^-6 for USDT and USDC, kobo for NGN",
      "type": "string"
    },
    "chain": {
      "description": "Required when source is onchain. Case-insensitive, CHAIN_TYPE_ prefix accepted. BTC runs on BITCOIN or LIGHTNING; USDT on ETHEREUM, POLYGON, TRON, BSC, SOLANA, ARBITRUM, OPTIMISM, AVALANCHE, TON or PLASMA; USDC on ETHEREUM, POLYGON, BSC, SOLANA, ARBITRUM, OPTIMISM, BASE, AVALANCHE or STELLAR",
      "type": "string"
    },
    "country": {
      "description": "ISO 3166-1 alpha-2 destination country",
      "maxLength": 2,
      "minLength": 2,
      "type": "string"
    },
    "from_asset": {
      "description": "Source asset, case-insensitive: BTC, USDT, USDC or NGN",
      "maxLength": 10,
      "type": "string"
    },
    "metadata": {
      "description": "A JSON object encoded as a string; ignored if it does not parse",
      "type": "string"
    },
    "payment_reason": {
      "description": "Reason for the payment.",
      "maxLength": 255,
      "type": "string"
    },
    "reference": {
      "description": "Your reference; must be unique within the organisation",
      "maxLength": 255,
      "type": "string"
    },
    "settlement_amount": {
      "description": "Amount the beneficiary should receive, in major units of to_currency, decimal string",
      "type": "string"
    },
    "source": {
      "description": "offchain debits the balance; onchain funds the payout from a generated deposit address. Case-insensitive. NGN is offchain only",
      "enum": [
        "offchain",
        "onchain"
      ],
      "type": "string"
    },
    "to_currency": {
      "description": "Settlement currency, case-insensitive; must be enabled for a corridor available to the organisation",
      "maxLength": 10,
      "type": "string"
    }
  },
  "required": [
    "from_asset",
    "to_currency",
    "source",
    "country"
  ],
  "type": "object"
}