{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bare-bitcoin/json-schema/bare-bitcoin-new-lightning-invoice-request-schema.json",
  "title": "NewLightningInvoiceRequest",
  "x-generated": "2026-11-16",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/bare-bitcoin-developers-openapi.json#/components/schemas/NewLightningInvoiceRequest",
  "type": "object",
  "properties": {
    "accountId": {
      "type": "string",
      "description": "if empty, the default account is used."
    },
    "currency": {
      "enum": [
        "CURRENCY_BTC",
        "CURRENCY_NOK"
      ],
      "type": "string",
      "description": "The currency the invoice is denominated in. Once created, the invoice\n is for a specific amount of bitcoin.",
      "format": "enum"
    },
    "amount": {
      "type": "number",
      "description": "The amount of the invoice, in the requested currency. Setting to 0\n creates an invoice where any amount is accepted.",
      "format": "double"
    },
    "publicDescription": {
      "type": "string",
      "description": "Public description of the invoice. The invoice commits to it through its\n description hash; the memo field is left empty, so most wallets do not\n show it to the payer."
    },
    "internalDescription": {
      "type": "string",
      "description": "Free-form text description of the invoice. Can be used to correlate with\n your own systems. Only shown to the creator of this invoice, within the\n Bare Bitcoin systems."
    },
    "expirySeconds": {
      "type": "integer",
      "description": "How long the invoice stays payable, counted from when it is created. At\n least 60 seconds, at most 24 hours. If empty, the invoice expires after\n 24 hours.",
      "format": "uint32"
    }
  }
}