Bare Bitcoin · Schema

NewLightningInvoiceRequest

CompanyCryptocurrencyFinancePaymentsNorway

Properties

Name Type Description
accountId string if empty, the default account is used.
currency string The currency the invoice is denominated in. Once created, the invoice is for a specific amount of bitcoin.
amount number The amount of the invoice, in the requested currency. Setting to 0 creates an invoice where any amount is accepted.
publicDescription string Public description of the invoice. The invoice commits to it through its description hash; the memo field is left empty, so most wallets do not show it to the payer.
internalDescription string Free-form text description of the invoice. Can be used to correlate with your own systems. Only shown to the creator of this invoice, within the Bare Bitcoin systems.
expirySeconds integer How long the invoice stays payable, counted from when it is created. At least 60 seconds, at most 24 hours. If empty, the invoice expires after 24 hours.
View JSON Schema on GitHub

JSON Schema

bare-bitcoin-new-lightning-invoice-request-schema.json Raw ↑
{
  "$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"
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/bare-bitcoin-new-lightning-invoice-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.