# Store verification

Source: https://developer.avalara.com/avatax-for-bevalc/age-verification-api/store-verification/

# Store verification

The [VerifyAge](https://sandbox-rest.avatax.com/swagger/ui/index.html?urls.primaryName=Alcohol%20Shipping%20Verification#/Age%20Verification/verifyAge) endpoint verifies a person's age using IDology's age verification service. If you use another service, run the [StoreAgeVerification](https://sandbox-rest.avatax.com/swagger/ui/index.html?urls.primaryName=Alcohol%20Shipping%20Verification#/Age%20Verification/storeAgeVerification) endpoint to store an age verification response from another provider where`isOfAge` is`true`.

## Endpoint

PUT /api/v2/ageverification/store/identity

## Input fields for store verification

The table below describes the required and optional fields for the store age verification request.

Field name

Description

Required?

`firstName`

The first name of the person whose age you want to verify.

Yes

`lastName`

The last name of the person whose age you want to verify.

Yes

`address`

The address of the person whose age you want to verify. One of the following sets of attributes are required for`address`:

-   `line1`,`city`,`region`
-   `line1`,`postalCode`

A`country` field can also be provided, but only`US` and`USA` are valid.

Yes

`DOB`

The ISO-8601 compliant date of birth of the person whose age you want to verify. Note that a date of birth can be specified in a transaction using the`PurchaserDOB` and`RecipientDOB` parameters.

No

`isOfAge`

A Boolean indicating whether the individual is within the legal limit to purchase or receive alcohol. Specify this in a response model.

Yes

`failureCodes`

A list of failure codes that describe why the response returns`isOfAge=false`. Available failure codes include:

-   `not_found`
-   `dob_unverifiable`
-   `under_age`
-   `suspected_fraud`
-   `deceased`
-   `unknown_error`

Yes

## Request

The following request stores a verification for a person whose date of birth could not be verified and is deceased.

```
curl    -X POST    -H 'Accept: application/json'    -H 'Authorization: Basic aHR0cHdhdQNoOmY='    -H 'Content-Type: application/json'    --data '{      "request": {        "firstName": "John",        "lastName": "Doe",        "address": {          "line1": "255 S King St",          "city": "Seattle",          "region": "WA",          "country": "US",          "postalCode": "98104"        },        "DOB": "1994-10-01"      },      "response": {        "isOfAge": false,        "failureCodes": [          "deceased",          "dob_unverifiable"        ]      }    }'    'https://sandbox-rest.avatax.com/api/v2/ageverification/store/identity'
```

## Response

The response returns 204 upon success.

[Previous](/avatax-for-bevalc/age-verification-api/verify-age)

[Next](/avatax-for-bevalc/age-verification-api/find-an-age-verification-record)