{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/AddressReference",
  "title": "AddressReference",
  "type": "object",
  "description": "Reference to an address",
  "properties": {
    "id": {
      "type": "integer",
      "description": "Coupa unique identifier for the address"
    },
    "name": {
      "type": "string",
      "description": "Address name"
    },
    "street1": {
      "type": "string",
      "description": "Street address line 1"
    },
    "street2": {
      "type": "string",
      "description": "Street address line 2"
    },
    "city": {
      "type": "string",
      "description": "City"
    },
    "state": {
      "type": "string",
      "description": "State or province"
    },
    "postal-code": {
      "type": "string",
      "description": "Postal or ZIP code"
    },
    "country": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "code": {
          "type": "string",
          "description": "ISO 3166-1 alpha-2 country code"
        }
      }
    }
  }
}