openapi: 3.0.1
info:
title: Address Validation 5103 Waiver Permanent And Total Disability API
description: "The Address Validation API accepts and validates an address and standardizes it for mailing. It can also help you process an address by:\n* Inferring missing or incorrect address components\n* Supplementing an address with additional information, such as geocode, latitude and longitude, and postal service metadata (when available)\n## Technical Overview\nThe Address Validation API returns validated addresses as they appear in the USPS database for domestic addresses. It validates by separating the address into individual components and then providing component-level validation checks.\n\nThis API is certified by the United States Postal Service (USPS) Coding Accuracy Support System (CASS) and adheres to [United States Postal Service (USPS) Publication 28 standards](https://pe.usps.com/text/pub28/welcome.htm) for domestic, military, and US territory addresses.\n\nFor international addresses, validation relies on Universal Postal Union (UPU) standards. \n\n## Validation\nIf an address is found, it is considered valid based on metadata returned by the Address Validation service, such as the confidence score and the [Delivery Point Validation (DPV)](https://postalpro.usps.com/address-quality/dpv).\n\nIf an address is found, there are multiple checks performed on the validated address. The address can fail validation for a variety of reasons, such as the inability to deliver (for domestic mailing addresses) or the format. For specific reasons why an address failed, refer to the error messages returned.\n\nIf an address is not found, it automatically fails validation.\n\n## Address override indicator\nSometimes an entered address is accurate for a Veteran but does not pass validation rules. These instances can occur when an address is newer than what is in the CASS software or in regions where address data is less accurate.\n\nSystems can accept these addresses despite the lack of address validation by submitting an \"accepted address\" (usually confirmed by the Veteran) to the Contact Information API (see Requirements below). An address is considered accepted after the address has been sent to the validation API and has failed validation, but the Veteran has confirmed the address is correct as entered. The accepted address can then be passed to the Contact Information API using an address override indicator set to show that the validation was overridden. To set an override indicator, the original address and the `overrideValidationKey` returned in the validation API response must be provided to the Contact Information API, in order to prove that a validation attempt has been made before overriding.\n\n## Version Interoperability\n\nTo ensure interoperability between APIs and eliminate the need for transforming data as one API feeds into the other, we strongly recommend using versions of the following APIs that are compatible.\n\n|
If Using
| Then Use...
|\n| :------------------------------:|:----------------------------------------------:|\n| Address Validation API v1/v2 | Contact Information API v1
Profile Service API v1/v2 |\n| Address Validation API v3 | Contact Information API v2
Profile Service API v3 |\n\n## Authorization\nAPI requests are authorized through a symmetric API token provided in an HTTP header with name apikey.\n\n**Important**: To get production access, you must either work for VA or have specific VA agreements in place. If you have questions, [contact us](https://developer.va.gov/support/contact-us)."
license:
name: Creative Commons
url: https://developer.va.gov/terms-of-service
version: '3'
servers:
- url: https://sandbox-api.va.gov/services/address-validation/{version}
description: Sandbox
variables:
version:
default: v3
- url: https://api.va.gov/services/address-validation/{version}
description: Production
variables:
version:
default: v3
security:
- apikey: []
tags:
- name: Permanent And Total Disability
paths:
/permanent_and_total_disability:
get:
tags:
- Permanent And Total Disability
summary: Get information about a Veteran's P&T disability and IU disability statuses and effective dates.
description: This endpoint provides a Veteran's permanent and total (P&T) disability and total disability based on Individual Unemployability (IU) statuses and effective dates, based on the ID in the bearer token.
operationId: GET:/permanent_and_total_disability
responses:
'200':
description: Permanent And Total Disability retrieved successfully
content:
application/json:
schema:
$ref: '#/components/schemas/PermanentAndTotalDisabilityResponseV2'
example:
data:
permanent_and_total:
service_connected_status: true
pension_award_status: false
total_disability:
status: true
effective_date: '1983-05-01'
'400':
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/BadRequest'
example:
title: Bad Request
detail: Bad Request
code: '400'
status: '400'
'401':
description: Not Authorized
content:
application/json:
schema:
$ref: '#/components/schemas/AuthorizationError'
example:
status: '401'
error: Invalid Token.
path: /veteran_verification/v2/permanent_and_total_disability
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/ForbiddenServerError'
example:
status: '403'
error: Token not granted requested scope.
path: /veteran_verification/v2/permanent_and_total_disability
'404':
description: Not Found
content:
application/json:
schema:
$ref: '#/components/schemas/MissingIcn'
example:
title: Veteran not identifiable.
detail: No data found for ID or demographics.
code: '404'
status: '404'
'413':
description: Payload too large
content:
application/json:
schema:
type: object
properties:
message:
type: string
example:
message: Request size limit exceeded
'429':
description: Too many requests
content:
application/json:
schema:
type: object
properties:
message:
type: string
example:
message: API rate limit exceeded
'500':
description: Internal Server Error
content:
application/json:
schema:
$ref: '#/components/schemas/InternalServerApiError'
example:
title: Internal server error
detail: Internal server error
code: '500'
status: '500'
'502':
description: Bad Gateway
content:
application/json:
schema:
$ref: '#/components/schemas/InaccessibleServiceDefintionErrorApiError'
'503':
description: Service Unavailable
content:
application/json:
schema:
$ref: '#/components/schemas/BackendServiceApiError'
'504':
description: Gateway Timeout
content:
application/json:
schema:
type: object
properties:
message:
type: string
example:
message: The server took too long to respond
security:
- sandboxOauth2:
- permanent_and_total_disability.read
- productionOauth2:
- permanent_and_total_disability.read
post:
tags:
- Permanent And Total Disability
summary: Search for information about a Veteran's P&T disability and IU disability statuses and effective dates, based on demographic data.
description: " This endpoint returns a Veteran's information about permanent and total (P&T) disability and total disability based on Individual Unemployability (IU) statuses and effective dates.\n\n Required information:\n\n * First name\n * Last name\n * Date of birth\n * Street address\n * City\n * State\n * Country\n * ZIP code\n\n Optional information:\n\n * Middle name\n * Gender\n * Mother's maiden name\n * Home phone number\n * Birthplace city\n * Birthplace state\n * Birthplace country\n\n Tips for finding a match:\n\n * Use first and last name, address, and date of birth for best results. Using a home address is recommended.\n * Retry with different demographic information, such as alternate addresses or last names, if no match is found.\n * Try removing special characters and spaces in a name.\n\n NOTE: In the sandbox environment, only date of birth and ZIP code are required to identify the test user.\n"
operationId: POST:/permanent_and_total_disability
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/VeteranAttributes'
example:
first_name: Alfredo
last_name: Armstrong
birth_date: '1993-06-08'
middle_name: M
gender: M
street_address_line1: 17020 Tortoise St
street_address_line2: ''
street_address_line3: ''
city: Round Rock
zipcode: '78664'
state: TX
country: USA
required: true
responses:
'200':
description: Permanent And Total Disability retrieved successfully
content:
application/json:
schema:
$ref: '#/components/schemas/PermanentAndTotalDisabilityResponseV2'
example:
data:
permanent_and_total:
service_connected_status: true
pension_award_status: false
total_disability:
status: true
effective_date: '1983-05-01'
'400':
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/BadRequest'
example:
title: Bad Request
detail: Bad Request
code: '400'
status: '400'
'401':
description: Not Authorized
content:
application/json:
schema:
$ref: '#/components/schemas/AuthorizationError'
example:
status: '401'
error: Invalid Token.
path: /veteran_verification/v2/permanent_and_total_disability
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/ForbiddenServerError'
example:
status: '403'
error: Token not granted requested scope.
path: /veteran_verification/v2/permanent_and_total_disability
'404':
description: Not Found
content:
application/json:
schema:
$ref: '#/components/schemas/MissingIcn'
example:
title: Veteran not identifiable.
detail: No data found for ID or demographics.
code: '404'
status: '404'
'413':
description: Payload too large
content:
application/json:
schema:
type: object
properties:
message:
type: string
example:
message: Request size limit exceeded
'429':
description: Too many requests
content:
application/json:
schema:
type: object
properties:
message:
type: string
example:
message: API rate limit exceeded
'500':
description: Internal Server Error
content:
application/json:
schema:
$ref: '#/components/schemas/InternalServerApiError'
example:
title: Internal server error
detail: Internal server error
code: '500'
status: '500'
'502':
description: Bad Gateway. Also, could indicate Person Not Found in MPI backend.
content:
application/json:
schema:
$ref: '#/components/schemas/InaccessibleServiceDefintionErrorApiError'
example:
title: Bad Gateway
detail: Upstream Request Error.
code: '502'
status: '502'
'503':
description: Service Unavailable
content:
application/json:
schema:
$ref: '#/components/schemas/BackendServiceApiError'
'504':
description: Gateway Timeout
content:
application/json:
schema:
type: object
properties:
message:
type: string
example:
message: The server took too long to respond
security:
- sandboxOauth2:
- permanent_and_total_disability.read
- productionOauth2:
- permanent_and_total_disability.read
/restricted/permanent_and_total_disability:
post:
tags:
- Permanent And Total Disability
summary: Search for information about a Veteran's P&T disability and IU disability statuses and effective dates (restricted access).
description: "This endpoint returns a Veteran's information about permanent and total (P&T) disability and total disability based on Individual Unemployability (IU) statuses and effective dates. It allows searching for a Veteran using a Social Security number and demographic information.\n\n If using a Social Security number, the following information is required:\n\n * Social Security number\n * First name\n * Last name\n * Date of birth\n\n If using demographic data, the following information is required:\n\n * First name\n * Last name\n * Date of birth\n * Street address\n * City\n * State\n * Country\n * ZIP code\n\n The following optional information may also be used with a Social Security number or demographic data:\n\n * Middle name\n * Gender\n * Mother's maiden name\n * Home phone number\n * Birthplace city\n * Birthplace state\n * Birthplace country\n\n Tips for finding a match:\n\n * Use first and last name, address, and date of birth for best results. Using a home address is recommended.\n * Retry with different demographic information, such as alternate addresses or last names, if no match is found.\n * Try removing special characters and spaces in a name.\n\n NOTE: In the sandbox environment, only date of birth and ZIP code are required to identify the test user.\n"
operationId: POST:/restricted/permanent_and_total_disability
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/VeteranAttributes'
example:
ssn: 796-01-2476
first_name: Alfredo
last_name: Armstrong
birth_date: '1993-06-08'
middle_name: M
gender: M
street_address_line1: 17020 Tortoise St
street_address_line2: ''
street_address_line3: ''
city: Round Rock
zipcode: '78664'
state: TX
country: USA
required: true
responses:
'200':
description: Permanent And Total Disability retrieved successfully
content:
application/json:
schema:
$ref: '#/components/schemas/PermanentAndTotalDisabilityResponseV2'
example:
data:
permanent_and_total:
service_connected_status: true
pension_award_status: false
total_disability:
status: true
effective_date: '1983-05-01'
'400':
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/BadRequest'
example:
title: Bad Request
detail: Bad Request
code: '400'
status: '400'
'401':
description: Not Authorized
content:
application/json:
schema:
$ref: '#/components/schemas/AuthorizationError'
example:
status: '401'
error: Invalid Token.
path: /veteran_verification/v2/permanent_and_total_disability
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/ForbiddenServerError'
example:
status: '403'
error: Token not granted requested scope.
path: /veteran_verification/v2/permenant_and_ total_disability
'404':
description: Not Found
content:
application/json:
schema:
$ref: '#/components/schemas/MissingIcn'
example:
title: Veteran not identifiable.
detail: No data found for ID or demographics.
code: '404'
status: '404'
'413':
description: Payload too large
content:
application/json:
schema:
type: object
properties:
message:
type: string
example:
message: Request size limit exceeded
'429':
description: Too many requests
content:
application/json:
schema:
type: object
properties:
message:
type: string
example:
message: API rate limit exceeded
'500':
description: Internal Server Error
content:
application/json:
schema:
$ref: '#/components/schemas/InternalServerApiError'
example:
title: Internal server error
detail: Internal server error
code: '500'
status: '500'
'502':
description: Bad Gateway. Also, could indicate Person Not Found in MPI backend.
content:
application/json:
schema:
$ref: '#/components/schemas/InaccessibleServiceDefintionErrorApiError'
example:
title: Bad Gateway
detail: Upstream Request Error.
code: '502'
status: '502'
'503':
description: Service Unavailable
content:
application/json:
schema:
$ref: '#/components/schemas/BackendServiceApiError'
'504':
description: Gateway Timeout
content:
application/json:
schema:
type: object
properties:
message:
type: string
example:
message: The server took too long to respond
security:
- sandboxOauth2:
- permanent_and_total_disability_restricted.read
- productionOauth2:
- permanent_and_total_disability_restricted.read
components:
schemas:
InternalServerApiError:
type: object
properties:
errors:
type: array
items:
$ref: '#/components/schemas/ApiErrorDetails'
example:
errors:
- title: Internal server error
detail: Internal server error
code: '500'
status: '500'
PermanentAndTotalDisabilityResponseV2:
required:
- data
type: object
properties:
data:
$ref: '#/components/schemas/PermanentAndTotalDisabilityData'
MissingIcn:
type: object
properties:
errors:
type: array
items:
$ref: '#/components/schemas/ApiErrorDetails'
example:
errors:
- title: Veteran not identifiable.
detail: No data found for ID or demographics.
code: '404'
status: '404'
AuthorizationError:
type: object
properties:
status:
type: string
example: '401'
error:
type: string
example: Invalid token.
path:
type: string
example: /veteran_verification/v2/{endpoint}
PermanentAndTotalDisabilityData:
type: object
properties:
permanent_and_total:
$ref: '#/components/schemas/PermanentAndTotalAttributes'
total_disability:
$ref: '#/components/schemas/TotalDisabilityAttributes'
BadRequest:
type: object
properties:
errors:
type: array
items:
$ref: '#/components/schemas/ApiErrorDetails'
example:
errors:
- title: Bad Request
detail: Bad Request
code: '400'
status: '400'
TotalDisabilityAttributes:
type: object
properties:
status:
type: boolean
description: Total disability status
example: true
effective_date:
type: string
description: The date the service decision goes into effect (YYYY-MM-DD)
format: date
example: '2008-07-18'
InaccessibleServiceDefintionErrorApiError:
type: object
properties:
errors:
type: array
items:
$ref: '#/components/schemas/ApiErrorDetails'
example:
errors:
- title: Bad Gateway
detail: Upstream Request Error.
code: '502'
status: '502'
BackendServiceApiError:
type: object
properties:
errors:
type: array
items:
$ref: '#/components/schemas/ApiErrorDetails'
example:
errors:
- title: Service Unavailable
detail: Backend Service Unavailable.
code: '503'
status: '503'
PermanentAndTotalAttributes:
type: object
properties:
service_connected_status:
type: boolean
description: The PT status for service-connected disabilities.
example: true
pension_award_status:
type: boolean
description: PT status specifically for pension awards.
example: true
ForbiddenServerError:
type: object
properties:
status:
type: string
example: '403'
error:
type: string
example: Token not granted requested scope.
path:
type: string
example: /veteran_verification/v2/{endpoint}
ApiErrorDetails:
type: object
properties:
title:
type: string
example: Error title
detail:
type: string
example: Detailed error message
code:
type: string
example: Error Code
status:
type: string
example: Error Code
VeteranAttributes:
required:
- birth_date
- city
- country
- first_name
- last_name
- street_address_line1
- zipcode
type: object
properties:
gender:
type: string
description: For gender, only 'm' or 'f' will help the search currently.
first_name:
type: string
description: '* Some names may require special handling if a Veteran is not found.
* Try removing special characters, such as hyphens, apostrophes, and spaces prior to
matching. For example, a submission of ''De''Anna'' can be matched as ''deanna''.
* In addition, depending on the handling logic of the front end application updating the VA
record, an inquiry with first name of ''Ann-Marie'' would be standardized to ''AnnMarie'' but
could be matched against ''AnnMarie'' or ''Ann Marie'' or ''Ann'' or ''Marie''.
* Therefore, if a Veteran with a hyphenated name is not found, it may be useful to retry the
hyphenated name without the hyphen and together, then separated, then each individual part
of the name as in the example with ''Ann-Marie''.
* Capitalization does not impede match strength.
'
middle_name:
type: string
last_name:
type: string
description: '* Some names may require special handling if a Veteran is not found.
* Try removing special characters, such as hyphens, apostrophes, and spaces prior to
matching. For example, a submission of ''O''leary'' can be matched as ''oleary''.
* In addition, depending on the handling logic of the front end application updating the
VA record, an inquiry with last name of ''Smith-Jones'' would be standardized to
''SmithJones'' but could be matched against ''SmithJones'' or ''Smith Jones'' or ''Smith'' or
''Jones''.
* Therefore, if a Veteran with a hyphenated name is not found, it may be useful to retry
the hyphenated name without the hyphen and together, then separated, then each
individual part of the name as in the example with ''Smith-Jones''.
* Capitalization does not impede match strength.'
zipcode:
type: string
city:
type: string
state:
type: string
country:
type: string
birth_date:
type: string
format: date
street_address_line1:
type: string
description: 'Address line 1 can accept one or more letters (uppercase or
lowercase), digits, spaces, commas, hashes(#), apostrophes(''),
periods(.), back slashes(\\), forward slashes(/), or hyphens(-).
'
street_address_line2:
type: string
description: 'Address line 2 can accept one or more letters (uppercase or
lowercase), digits, spaces, commas, hashes(#), apostrophes(''),
periods(.), back slashes(\\), forward slashes(/), or hyphens(-).
'
street_address_line3:
type: string
description: 'Address line 3 can accept one or more letters (uppercase or
lowercase), digits, spaces, commas, hashes(#), apostrophes(''),
periods(.), back slashes(\\), forward slashes(/), or hyphens(-).
'
home_phone_number:
type: string
birth_place_city:
type: string
birth_place_state:
type: string
birth_place_country:
type: string
mothers_maiden_name:
type: string
description: '* Use the current residence address of the Veteran.
* Some unhoused Veterans can use a local USPS, support organization, or other location
such as ''the corner of RTE512 and U.S.1''.
* Aim to match the input against the Veteran''s demographic information in their VA.gov
profile.
* Data in the request and the VA record is standardized using the same algorithm prior
to matching. If the data is close, and enough fields are provided, it will find the
Veteran most of the time; however, some records will have data that is not in sync and
may require trying the request again with different addresses, names, or formats.
* Alternately, the Veteran may need to update their information with the VA if they
are not found.
'
securitySchemes:
apikey:
type: apiKey
name: apikey
in: header