{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/jupiterinvoice-com/json-schema/jupiterinvoice-com-customer-schema.json",
  "title": "Customer",
  "x-generated": "2026-11-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/jupiterinvoice-com-openapi.yml#/components/schemas/Customer",
  "properties": {
    "address": {
      "$ref": "#/$defs/Address"
    },
    "ap_contact": {
      "properties": {
        "email": {
          "format": "email",
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "billing_entity": {
      "type": "string"
    },
    "cc_emails": {
      "items": {
        "format": "email",
        "type": "string"
      },
      "type": "array"
    },
    "code": {
      "readOnly": true,
      "type": "string"
    },
    "company": {
      "type": "string"
    },
    "contact": {
      "properties": {
        "email": {
          "format": "email",
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "id": {
      "readOnly": true,
      "type": "integer"
    },
    "notes": {
      "type": "string"
    },
    "po_required": {
      "type": "boolean"
    }
  },
  "required": [
    "company"
  ],
  "type": "object",
  "$defs": {
    "Address": {
      "properties": {
        "city": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "line1": {
          "type": "string"
        },
        "line2": {
          "type": "string"
        },
        "line3": {
          "type": "string"
        },
        "postal_code": {
          "type": "string"
        },
        "state": {
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}