{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/xestando-com/json-schema/xestando-com-usage-invoice-v1-schema.json",
  "title": "UsageInvoiceV1",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/xestando-com-openapi.json#/components/schemas/UsageInvoiceV1",
  "type": "object",
  "properties": {
    "clientRef": {
      "type": "string",
      "format": "uuid"
    },
    "concept": {
      "type": "string"
    },
    "confirmationUrl": {
      "type": "string"
    },
    "currency": {
      "type": "string"
    },
    "error": {
      "type": "string"
    },
    "invoiceId": {
      "type": "string",
      "format": "uuid"
    },
    "message": {
      "type": "string"
    },
    "operationId": {
      "type": "string",
      "format": "uuid"
    },
    "paid": {
      "type": "boolean"
    },
    "paymentUrl": {
      "type": "string"
    },
    "periodFrom": {
      "type": "string",
      "format": "date"
    },
    "periodTo": {
      "type": "string",
      "format": "date"
    },
    "planId": {
      "type": "string",
      "format": "uuid"
    },
    "reason": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "subtotalMinor": {
      "type": "integer",
      "format": "int64"
    },
    "taxJurisdiction": {
      "type": "string"
    },
    "taxKind": {
      "type": "string"
    },
    "taxMinor": {
      "type": "integer",
      "format": "int64"
    },
    "taxRate": {
      "type": "number",
      "format": "double"
    },
    "totalMinor": {
      "type": "integer",
      "format": "int64"
    }
  }
}