Skip to main content

Deletes an address

DELETE 

/addresses/:id

Deletes an existing address.

Request

Path Parameters

    id stringrequired

    address ID

Responses

200: Successful response

Schema

    data

    object

    id int64

    Uniquely identifies the address.

    record_type string

    Identifies the type of the resource.

    customer_reference customer_reference

    A customer reference string for customer look ups.

    first_name first_name

    The first name associated with the address. An address must have either a first last name or a business name.

    last_name last_name

    The last name associated with the address. An address must have either a first last name or a business name.

    business_name business_name

    The business name associated with the address. An address must have either a first last name or a business name.

    phone_number phone_number

    The phone number associated with the address.

    street_address street_address

    The primary street address information about the address.

    extended_address extended_address

    Additional street address information about the address such as, but not limited to, unit number or apartment number.

    locality locality

    The locality of the address. For US addresses, this corresponds to the city of the address.

    administrative_area administrative_area

    The locality of the address. For US addresses, this corresponds to the state of the address.

    neighborhood neighborhood

    The neighborhood of the address. This field is not used for addresses in the US but is used for some international addresses.

    borough borough

    The borough of the address. This field is not used for addresses in the US but is used for some international addresses.

    postal_code postal_code

    The postal code of the address.

    country_code country_code

    The two-character (ISO 3166-1 alpha-2) country code of the address.

    address_book address_book

    Default value: true

    Indicates whether or not the address should be considered part of your list of addresses that appear for regular use.

    validate_address validate_address

    Default value: true

    Indicates whether or not the address should be validated for emergency use upon creation or not. This should be left with the default value of true unless you have used the /addresses/actions/validate endpoint to validate the address separately prior to creation. If an address is not validated for emergency use upon creation and it is not valid, it will not be able to be used for emergency services.

    created_at string

    ISO 8601 formatted date indicating when the resource was created.

    updated_at string

    ISO 8601 formatted date indicating when the resource was updated.

401: Unauthorized

404: Resource not found

422: Bad request

Loading...