{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "title": "Address",
  "description": "An address for a shipments to or from address",
  "type": "object",
  "properties": {
    "company": {
      "type": "string"
    },
    "first_name": {
      "type": "string"
    },
    "last_name": {
      "type": "string"
    },
    "care_of": {
      "type": "string"
    },
    "street": {
      "type": "string"
    },
    "street_no": {
      "type": "string"
    },
    "city": {
      "type": "string"
    },
    "zip_code": {
      "type": "string"
    },
    "state": {
      "type": "string"
    },
    "country": {
      "type": "string",
      "description": "Country as uppercase ISO 3166-1 alpha-2 code"
    },
    "phone": {
      "type": "string",
      "description": "telephone number (mandatory when using UPS and the following terms apply: service is one_day or one_day_early or ship to country is different than ship from country)"
    },
    "email": {
      "type": "string",
      "description": "Corresponding email address. Some carrier will need this to be provided"
    }
  },
  "required": ["last_name", "street", "street_no", "city", "zip_code", "country"],
  "additionalProperties": false
}

download