Bare Bitcoin · Schema

GetLightningInvoiceResponse

CompanyCryptocurrencyFinancePaymentsNorway

Properties

Name Type Description
depositDestinationId string
invoice string
status string
expiresAt string When the invoice stops being payable. This is the expiry encoded into the invoice itself, so a payer's wallet enforces it too.
amountReceivedMillisatoshi string The amount the payer sent, in millisatoshis. Set only when the invoice is paid. It is never less than the amount encoded in the invoice, but can be more: Lightning nodes accept overpayment.
paidAt string When the invoice was paid. Set only when the invoice is paid.
preimage string The payment preimage, hex encoded. Its SHA-256 hash is the payment hash encoded in the invoice, so it is proof of payment. Set only when the invoice is paid.
View JSON Schema on GitHub

JSON Schema

bare-bitcoin-get-lightning-invoice-response-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bare-bitcoin/json-schema/bare-bitcoin-get-lightning-invoice-response-schema.json",
  "title": "GetLightningInvoiceResponse",
  "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/GetLightningInvoiceResponse",
  "type": "object",
  "properties": {
    "depositDestinationId": {
      "type": "string"
    },
    "invoice": {
      "type": "string"
    },
    "status": {
      "enum": [
        "INVOICE_STATUS_UNPAID",
        "INVOICE_STATUS_PENDING",
        "INVOICE_STATUS_PAID",
        "INVOICE_STATUS_EXPIRED",
        "INVOICE_STATUS_CANCELED"
      ],
      "type": "string",
      "format": "enum"
    },
    "expiresAt": {
      "type": "string",
      "description": "When the invoice stops being payable. This is the expiry encoded into the\n invoice itself, so a payer's wallet enforces it too.",
      "format": "date-time"
    },
    "amountReceivedMillisatoshi": {
      "type": "string",
      "description": "The amount the payer sent, in millisatoshis. Set only when the invoice is\n paid. It is never less than the amount encoded in the invoice, but can be\n more: Lightning nodes accept overpayment."
    },
    "paidAt": {
      "type": "string",
      "description": "When the invoice was paid. Set only when the invoice is paid.",
      "format": "date-time"
    },
    "preimage": {
      "type": "string",
      "description": "The payment preimage, hex encoded. Its SHA-256 hash is the payment hash\n encoded in the invoice, so it is proof of payment. Set only when the\n invoice is paid."
    }
  }
}

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-get-lightning-invoice-response"
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.