{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "title": "New Customer Profile Company",
  "$id": "#customer/new-customer-profile-company",
  "properties": {
    "accountable_person": {
      "type": "string"
    },
    "address": {
      "type": "string"
    },
    "billing_type": {
      "enum": ["company", "personal"],
      "type": "string"
    },
    "city": {
      "type": "string",
      "minLength": 1
    },
    "country_code": {
      "type": "string",
      "minLength": 2,
      "maxLength": 3
    },
    "customer_profile_id": {
      "type": "number"
    },
    "organization": {
      "type": "string",
      "minLength": 2
    },
    "tax_number": {
      "type": "string",
      "minLength": 1
    },
    "vat": {
      "type": "string"
    },
    "zip_code": {
      "type": "string",
      "minLength": 1
    }
  },
  "required": [
    "address",
    "city",
    "customer_profile_id",
    "organization",
    "tax_number"
  ],
  "type": "object"
}
