PUT v3/customers/{id}/addresses

Replace all current addresses on a customers record

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

string

Required

Body Parameters

Collection of NewCustomerAddress
NameDescriptionTypeAdditional information
IsDelivery

boolean

None.

IsBilling

boolean

None.

Country

string

None.

AdministrativeDivision

string

None.

Name

string

None.

Line1

string

None.

Line2

string

None.

Line3

string

None.

Line4

string

None.

Line5

string

None.

Postcode

string

None.

Town

string

None.

Request Formats

application/x-www-form-urlencoded

Sample:

Sample not available.

application/json

Sample:
[
  {
    "isDelivery": true,
    "isBilling": true,
    "country": "sample string 3",
    "administrativeDivision": "sample string 4",
    "name": "sample string 5",
    "line1": "sample string 6",
    "line2": "sample string 7",
    "line3": "sample string 8",
    "line4": "sample string 9",
    "line5": "sample string 10",
    "postcode": "sample string 11",
    "town": "sample string 12"
  },
  {
    "isDelivery": true,
    "isBilling": true,
    "country": "sample string 3",
    "administrativeDivision": "sample string 4",
    "name": "sample string 5",
    "line1": "sample string 6",
    "line2": "sample string 7",
    "line3": "sample string 8",
    "line4": "sample string 9",
    "line5": "sample string 10",
    "postcode": "sample string 11",
    "town": "sample string 12"
  }
]

text/xml

Sample:

The response/request for text/xml format is no longer supported for this endpoint.

Response Information

Resource Description

Collection of CustomerAddress
NameDescriptionTypeAdditional information
IsBilling

boolean

None.

IsDelivery

boolean

None.

Id

string

None.

Country

Country

None.

AdministrativeDivision

AdministrativeDivision

None.

Name

string

None.

Line1

string

None.

Line2

string

None.

Line3

string

None.

Line4

string

None.

Line5

string

None.

Postcode

string

None.

Town

string

None.

Response Formats

application/json

Sample:
[
  {
    "isBilling": false,
    "isDelivery": false,
    "id": null,
    "country": {
      "isoCode": "",
      "name": "",
      "postcodeRequired": false
    },
    "administrativeDivision": {
      "name": "",
      "isoCode": null
    },
    "name": "sample string 1",
    "line1": "sample string 2",
    "line2": "sample string 3",
    "line3": "sample string 4",
    "line4": "sample string 5",
    "line5": "sample string 6",
    "postcode": "sample string 7",
    "town": "sample string 8"
  },
  {
    "isBilling": false,
    "isDelivery": false,
    "id": null,
    "country": {
      "isoCode": "",
      "name": "",
      "postcodeRequired": false
    },
    "administrativeDivision": {
      "name": "",
      "isoCode": null
    },
    "name": "sample string 1",
    "line1": "sample string 2",
    "line2": "sample string 3",
    "line3": "sample string 4",
    "line4": "sample string 5",
    "line5": "sample string 6",
    "postcode": "sample string 7",
    "town": "sample string 8"
  }
]

text/xml

Sample:

The response/request for text/xml format is no longer supported for this endpoint.