{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/getnoden-com/json-schema/getnoden-com-order-schema.json",
  "title": "Order",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/shop-getnoden-com-openapi.json#/components/schemas/Order",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "pending",
        "completed",
        "failed",
        "refunded"
      ]
    },
    "amountSats": {
      "type": "integer"
    },
    "invoice": {
      "type": "string",
      "description": "BOLT11 Lightning invoice to pay"
    },
    "output": {
      "type": [
        "object",
        "null"
      ],
      "description": "Present only when status is 'completed'"
    },
    "retryToken": {
      "type": [
        "string",
        "null"
      ],
      "description": "Present when status is 'failed' and a free retry is still available"
    },
    "retryTokenExpiresAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "verificationResult": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "pass",
        "fail",
        null
      ]
    }
  }
}