{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/4chems-com/json-schema/4chems-com-billing-out-schema.json",
  "title": "BillingOut",
  "description": "The stored billing data, `get_billing` (owner and billing contacts only).",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/4chems-com-openapi.json#/components/schemas/BillingOut",
  "properties": {
    "name": {
      "type": "string",
      "title": "Name"
    },
    "country": {
      "type": "string",
      "title": "Country"
    },
    "legal_entity_type": {
      "type": "string",
      "title": "Legal Entity Type"
    },
    "other_label": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Other Label"
    },
    "vat_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Vat Id"
    },
    "address_line1": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Address Line1"
    },
    "address_line2": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Address Line2"
    },
    "postal_code": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Postal Code"
    },
    "city": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "City"
    },
    "invoice_email": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Invoice Email"
    },
    "po_reference": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Po Reference"
    },
    "vat_validated_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Vat Validated At"
    },
    "billing_completed": {
      "type": "boolean",
      "title": "Billing Completed"
    },
    "billing_completed_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Billing Completed At"
    }
  },
  "type": "object",
  "required": [
    "name",
    "country",
    "legal_entity_type",
    "billing_completed"
  ]
}