{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/precisely-apis/main/json-schema/precisely-apis-validate-mailing-address-response-schema.json",
  "title": "ValidateMailingAddressResponse",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/precisely-apis-validatemailingaddress-api-openapi.yml#/components/schemas/ValidateMailingAddressResponse",
  "properties": {
    "Output": {
      "items": {
        "$ref": "#/$defs/ValidateMailingAddressOutput"
      },
      "type": "array"
    }
  },
  "type": "object",
  "$defs": {
    "GetPostalCodesAPIOutput_user_fields": {
      "properties": {
        "name": {
          "type": "string"
        },
        "value": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "ValidateMailingAddressOutput": {
      "properties": {
        "user_fields": {
          "description": "These fields are returned, unmodified, in the user_fields section of the response.",
          "items": {
            "$ref": "#/$defs/GetPostalCodesAPIOutput_user_fields"
          },
          "type": "array"
        },
        "AddressLine1": {
          "description": "The first line of the validated address.",
          "type": "string"
        },
        "AddressLine2": {
          "description": "The second line of the validated address.",
          "type": "string"
        },
        "FirmName": {
          "description": "The validated firm or company name.",
          "type": "string"
        },
        "City": {
          "description": "The validated city name.",
          "type": "string"
        },
        "PostalCode": {
          "description": "The validated ZIP Code or postal code.",
          "type": "string"
        },
        "Country": {
          "description": "The country name in English.",
          "type": "string"
        },
        "StateProvince": {
          "description": "The validated state or province abbreviation.",
          "type": "string"
        },
        "BlockAddress": {
          "description": "The formatted address, as it would appear on a physical mail piece.",
          "type": "string"
        },
        "AdditionalInputData": {
          "description": "Input data not used by the address validation process.",
          "type": "string"
        },
        "PostalCode.Base": {
          "description": "The 5-digit ZIP Code.",
          "type": "string"
        },
        "PostalCode.AddOn": {
          "description": "The 4-digit add-on part of the ZIP Code.",
          "type": "string"
        },
        "Status": {
          "description": "Reports the success or failure of the match attempt.",
          "type": "string"
        },
        "Status.Code": {
          "description": "Reason for failure, if there is one.",
          "type": "string"
        },
        "Status.Description": {
          "description": "Description of the problem, if there is one.",
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}