{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/skavio-eu/json-schema/skavio-eu-invoice-create-schema.json",
  "title": "InvoiceCreate",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/skavio-eu-proof-openapi.json#/components/schemas/InvoiceCreate",
  "additionalProperties": false,
  "properties": {
    "accounting": {
      "description": "Existing dashboard accounting validation applies; see reference.",
      "type": "object"
    },
    "customer_id": {
      "type": "string"
    },
    "customer_receipt_opt_in": {
      "const": false
    },
    "due_date": {
      "format": "date",
      "type": "string"
    },
    "items": {
      "items": {
        "$ref": "#/$defs/Item"
      },
      "minItems": 1,
      "type": "array"
    },
    "reminder_opt_in": {
      "const": false
    },
    "send_now": {
      "const": false
    },
    "tax_mode": {
      "type": "string"
    },
    "tax_notes": {
      "type": "string"
    },
    "tax_rate": {
      "type": "string"
    },
    "tax_usdc": {
      "type": "string"
    },
    "wallet_id": {
      "type": "string"
    }
  },
  "required": [
    "customer_id",
    "wallet_id",
    "due_date",
    "items"
  ],
  "type": "object",
  "$defs": {
    "Item": {
      "properties": {
        "description": {
          "type": "string"
        },
        "quantity": {
          "type": "string"
        },
        "unit_usdc": {
          "type": "string"
        }
      },
      "required": [
        "description",
        "quantity",
        "unit_usdc"
      ],
      "type": "object"
    }
  }
}