OpenNode · Schema

OpenNode Charge

Schema for an OpenNode Bitcoin payment charge object returned by the Charges API.

BitcoinLightning NetworkPaymentsPayment ProcessingCryptocurrencyFintechWebhookInvoicingPayoutsLNURL

Properties

Name Type Description
id string Unique charge identifier.
description string Payment description displayed in the payer's wallet.
amount integer Charge amount in satoshis.
status string Current payment status of the charge.
fiat_value number Fiat value of the charge at the time of creation.
currency string ISO 4217 fiat currency code used for conversion.
source_fiat_value number Source fiat value used for conversion.
lightning_invoice object Lightning Network payment invoice.
chain_invoice object On-chain Bitcoin invoice details.
address string Primary on-chain Bitcoin address for the charge.
created_at integer Unix timestamp of charge creation.
order_id string Merchant internal order reference identifier.
callback_url string Webhook endpoint URL for payment status notifications.
success_url string Redirect URL for the customer after successful payment.
auto_settle boolean Whether automatic fiat settlement is enabled.
View JSON Schema on GitHub

JSON Schema

opennode-charge.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://api-evangelist.github.io/opennode/json-schema/opennode-charge.json",
  "title": "OpenNode Charge",
  "description": "Schema for an OpenNode Bitcoin payment charge object returned by the Charges API.",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique charge identifier.",
      "examples": ["ch_abc123def456"]
    },
    "description": {
      "type": "string",
      "description": "Payment description displayed in the payer's wallet."
    },
    "amount": {
      "type": "integer",
      "description": "Charge amount in satoshis.",
      "minimum": 1
    },
    "status": {
      "type": "string",
      "enum": ["unpaid", "processing", "paid", "expired"],
      "description": "Current payment status of the charge."
    },
    "fiat_value": {
      "type": "number",
      "description": "Fiat value of the charge at the time of creation."
    },
    "currency": {
      "type": "string",
      "description": "ISO 4217 fiat currency code used for conversion.",
      "pattern": "^[A-Z]{3}$",
      "examples": ["USD", "EUR", "GBP"]
    },
    "source_fiat_value": {
      "type": "number",
      "description": "Source fiat value used for conversion."
    },
    "lightning_invoice": {
      "type": "object",
      "description": "Lightning Network payment invoice.",
      "properties": {
        "expires_at": {
          "type": "integer",
          "description": "Unix timestamp when the Lightning invoice expires."
        },
        "payreq": {
          "type": "string",
          "description": "BOLT11 Lightning payment request string."
        }
      }
    },
    "chain_invoice": {
      "type": "object",
      "description": "On-chain Bitcoin invoice details.",
      "properties": {
        "address": {
          "type": "string",
          "description": "On-chain Bitcoin address for payment."
        },
        "settled_at": {
          "type": "integer",
          "description": "Unix timestamp when the on-chain payment was settled."
        }
      }
    },
    "address": {
      "type": "string",
      "description": "Primary on-chain Bitcoin address for the charge."
    },
    "created_at": {
      "type": "integer",
      "description": "Unix timestamp of charge creation."
    },
    "order_id": {
      "type": "string",
      "description": "Merchant internal order reference identifier."
    },
    "callback_url": {
      "type": "string",
      "format": "uri",
      "description": "Webhook endpoint URL for payment status notifications."
    },
    "success_url": {
      "type": "string",
      "format": "uri",
      "description": "Redirect URL for the customer after successful payment."
    },
    "auto_settle": {
      "type": "boolean",
      "description": "Whether automatic fiat settlement is enabled.",
      "default": false
    }
  },
  "required": ["id", "amount", "status", "created_at"]
}

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/opennode-charge"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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