{
  "$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."
    }
  }
}