Share via


Service - Validate Address

[DEPRECATED NOTICE: This operation will soon be removed]. This method validates the customer shipping address and provide alternate addresses if any.

POST https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.DataBox/locations/{location}/validateAddress?api-version=2025-02-01

URI Parameters

Name In Required Type Description
location
path True

string

The location of the resource

subscriptionId
path True

string

The Subscription Id

api-version
query True

string

The API Version

Request Body

Name Required Type Description
deviceType True

SkuName

Device type to be used for the job.

shippingAddress True

ShippingAddress

Shipping address of the customer.

validationType True string:

ValidateAddress

Identifies the type of validation request.

model

ModelName

The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025

transportPreferences

TransportPreferences

Preferences related to the shipment logistics of the sku.

Responses

Name Type Description
200 OK

AddressValidationOutput

The valid and alternate addresses.

Other Status Codes

ApiError

Error response describing reason for operation failure.

Security

azure_auth

Azure Active Directory OAuth2 Flow

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account

Examples

ValidateAddressPost

Sample request

POST https://management.azure.com/subscriptions/YourSubscriptionId/providers/Microsoft.DataBox/locations/westus/validateAddress?api-version=2025-02-01

{
  "validationType": "ValidateAddress",
  "shippingAddress": {
    "streetAddress1": "XXXX XXXX",
    "streetAddress2": "XXXX XXXX",
    "city": "XXXX XXXX",
    "stateOrProvince": "XX",
    "country": "XX",
    "postalCode": "00000",
    "companyName": "XXXX XXXX",
    "addressType": "Commercial"
  },
  "deviceType": "DataBox",
  "model": "DataBox"
}

Sample response

{
  "properties": {
    "validationStatus": "Valid",
    "alternateAddresses": [
      {
        "streetAddress1": "XXXX XXXX",
        "streetAddress2": "XXXX XXXX",
        "streetAddress3": "",
        "city": "XXXX XXXX",
        "stateOrProvince": "XX",
        "country": "XX",
        "postalCode": "00000",
        "addressType": "None"
      }
    ],
    "validationType": "ValidateAddress"
  }
}

Definitions

Name Description
AdditionalErrorInfo

This class represents additional info which Resource Providers pass when an error occurs.

AddressType

Type of address.

AddressValidationOutput

Output of the address validation api.

AddressValidationStatus

The address validation status.

ApiError
CloudError

Provides additional information about an http error response.

Details
ErrorDetail
ModelName

The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025

ShippingAddress

Shipping address where customer wishes to receive the device.

SkuName

Sku Names to filter for available skus

TransportPreferences

Preferences related to the shipment logistics of the sku

TransportShipmentTypes

Indicates Shipment Logistics type that the customer preferred.

ValidateAddress

The requirements to validate customer address where the device needs to be shipped.

AdditionalErrorInfo

This class represents additional info which Resource Providers pass when an error occurs.

Name Type Description
info

object

Additional information of the type of error.

type

string

Type of error (e.g. CustomerIntervention, PolicyViolation, SecurityViolation).

AddressType

Type of address.

Value Description
None

Address type not known.

Residential

Residential Address.

Commercial

Commercial Address.

AddressValidationOutput

Output of the address validation api.

Name Type Description
properties.alternateAddresses

ShippingAddress[]

List of alternate addresses.

properties.error

CloudError

Error code and message of validation response.

properties.validationStatus

AddressValidationStatus

The address validation status.

properties.validationType

ValidationInputDiscriminator

Identifies the type of validation response.

AddressValidationStatus

The address validation status.

Value Description
Valid

Address provided is valid.

Invalid

Address provided is invalid or not supported.

Ambiguous

Address provided is ambiguous, please choose one of the alternate addresses returned.

ApiError

Name Type Description
error

ErrorDetail

CloudError

Provides additional information about an http error response.

Name Type Description
additionalInfo

AdditionalErrorInfo[]

Gets or sets additional error info.

code

string

Error code.

details

CloudError[]

Gets or sets details for the error.

message

string

The error message parsed from the body of the http error response.

target

string

Gets or sets the target of the error.

Details

Name Type Description
code

string

message

string

ErrorDetail

Name Type Description
code

string

details

Details[]

message

string

target

string

ModelName

The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025

Value Description
DataBox

Data Box.

DataBoxDisk

Data Box Disk.

DataBoxHeavy

Data Box Heavy.

DataBoxCustomerDisk

Data Box Customer Disk

AzureDataBox120

Data Box V2 with 125TB usable capacity.

AzureDataBox525

Data Box V2 with 500TB usable capacity.

ShippingAddress

Shipping address where customer wishes to receive the device.

Name Type Default value Description
addressType

AddressType

None

Type of address.

city

string

Name of the City.

companyName

string

Name of the company.

country

string

Name of the Country.

postalCode

string

Postal code.

skipAddressValidation

boolean

Flag to indicate if customer has chosen to skip default address validation

stateOrProvince

string

Name of the State or Province.

streetAddress1

string

Street Address line 1.

streetAddress2

string

Street Address line 2.

streetAddress3

string

Street Address line 3.

taxIdentificationNumber

string

Tax Identification Number

zipExtendedCode

string

Extended Zip Code.

SkuName

Sku Names to filter for available skus

Value Description
DataBox

Data Box.

DataBoxDisk

Data Box Disk.

DataBoxHeavy

Data Box Heavy.

DataBoxCustomerDisk

Data Box Customer Disk

TransportPreferences

Preferences related to the shipment logistics of the sku

Name Type Description
isUpdated

boolean

Read only property which indicates whether transport preferences has been updated or not after device is prepared.

preferredShipmentType

TransportShipmentTypes

Indicates Shipment Logistics type that the customer preferred.

TransportShipmentTypes

Indicates Shipment Logistics type that the customer preferred.

Value Description
CustomerManaged

Shipment Logistics is handled by the customer.

MicrosoftManaged

Shipment Logistics is handled by Microsoft.

ValidateAddress

The requirements to validate customer address where the device needs to be shipped.

Name Type Description
deviceType

SkuName

Device type to be used for the job.

model

ModelName

The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025

shippingAddress

ShippingAddress

Shipping address of the customer.

transportPreferences

TransportPreferences

Preferences related to the shipment logistics of the sku.

validationType string:

ValidateAddress

Identifies the type of validation request.