BitPay · Schema

BitPay Invoice

A time-sensitive payment request created on the BitPay platform with a fixed price in fiat currency and cryptocurrency equivalents locked at exchange rates expiring in 15 minutes.

CryptocurrencyPaymentsBitcoinBlockchainInvoicesPayoutsSettlement

Properties

Name Type Description
id string BitPay invoice ID.
url string URL to the hosted invoice checkout page.
status string Current status of the invoice.
price number Invoice price in the specified currency.
currency string ISO 4217 3-character currency code for the invoice.
orderId string Merchant internal order identifier.
invoiceTime integer Invoice creation timestamp in Unix milliseconds.
expirationTime integer Invoice expiration timestamp in Unix milliseconds.
currentTime integer Current server timestamp in Unix milliseconds.
btcPrice string BTC equivalent price locked at invoice creation.
btcDue string BTC amount still due.
btcPaid string BTC amount paid.
rate number BTC/fiat exchange rate at invoice creation.
exceptionStatus string Exception status for underpaid or overpaid invoices.
token string Invoice-specific token for status checks.
itemDesc string Invoice description displayed on the checkout page.
posData string Merchant passthru variable for correlating invoices with orders.
guid string Merchant passthru GUID for order lookup.
notificationURL string Webhook URL for invoice status notifications.
buyer object Buyer information.
View JSON Schema on GitHub

JSON Schema

invoice.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/bitpay/main/json-schema/invoice.json",
  "title": "BitPay Invoice",
  "description": "A time-sensitive payment request created on the BitPay platform with a fixed price in fiat currency and cryptocurrency equivalents locked at exchange rates expiring in 15 minutes.",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "BitPay invoice ID."
    },
    "url": {
      "type": "string",
      "format": "uri",
      "description": "URL to the hosted invoice checkout page."
    },
    "status": {
      "type": "string",
      "enum": ["new", "paid", "confirmed", "complete", "expired", "invalid"],
      "description": "Current status of the invoice."
    },
    "price": {
      "type": "number",
      "description": "Invoice price in the specified currency."
    },
    "currency": {
      "type": "string",
      "description": "ISO 4217 3-character currency code for the invoice.",
      "pattern": "^[A-Z]{3}$"
    },
    "orderId": {
      "type": "string",
      "description": "Merchant internal order identifier."
    },
    "invoiceTime": {
      "type": "integer",
      "description": "Invoice creation timestamp in Unix milliseconds."
    },
    "expirationTime": {
      "type": "integer",
      "description": "Invoice expiration timestamp in Unix milliseconds."
    },
    "currentTime": {
      "type": "integer",
      "description": "Current server timestamp in Unix milliseconds."
    },
    "btcPrice": {
      "type": "string",
      "description": "BTC equivalent price locked at invoice creation."
    },
    "btcDue": {
      "type": "string",
      "description": "BTC amount still due."
    },
    "btcPaid": {
      "type": "string",
      "description": "BTC amount paid."
    },
    "rate": {
      "type": "number",
      "description": "BTC/fiat exchange rate at invoice creation."
    },
    "exceptionStatus": {
      "type": "string",
      "description": "Exception status for underpaid or overpaid invoices."
    },
    "token": {
      "type": "string",
      "description": "Invoice-specific token for status checks."
    },
    "itemDesc": {
      "type": "string",
      "description": "Invoice description displayed on the checkout page."
    },
    "posData": {
      "type": "string",
      "description": "Merchant passthru variable for correlating invoices with orders."
    },
    "guid": {
      "type": "string",
      "description": "Merchant passthru GUID for order lookup."
    },
    "notificationURL": {
      "type": "string",
      "format": "uri",
      "description": "Webhook URL for invoice status notifications."
    },
    "buyer": {
      "type": "object",
      "description": "Buyer information.",
      "properties": {
        "name": { "type": "string" },
        "address1": { "type": "string" },
        "address2": { "type": "string" },
        "city": { "type": "string" },
        "state": { "type": "string" },
        "zip": { "type": "string" },
        "country": { "type": "string" },
        "email": { "type": "string", "format": "email" },
        "phone": { "type": "string" },
        "notify": { "type": "boolean" }
      }
    }
  },
  "required": ["id", "url", "status", "price", "currency"],
  "examples": [
    {
      "id": "Hpqc63wvE1ZjzeeH4kEycF",
      "url": "https://bitpay.com/invoice?id=Hpqc63wvE1ZjzeeH4kEycF",
      "status": "new",
      "price": 10.00,
      "currency": "USD",
      "orderId": "order-12345",
      "invoiceTime": 1600000000000,
      "expirationTime": 1600000900000,
      "currentTime": 1600000000000,
      "btcPrice": "0.000249",
      "btcDue": "0.000249",
      "btcPaid": "0",
      "rate": 40160.78
    }
  ]
}

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/invoice"
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.