PUT address/{collectionKey}

Update address in collection

Request Information

URI Parameters

NameDescriptionTypeAdditional information
collectionKey

Address collection key

string

Required

Body Parameters

Address model

AddressUpdateModel
NameDescriptionTypeAdditional information
Id

Unique Identifier

integer

None.

AddressType

Specifies Type of address (SoldTo, BillTo, Payer, ShipTo, EndUser)
0 – SoldTo
1 – BillTo
2 – Payer
3 – ShipTo
4 – EndUser

AddressType

None.

Name

Recipient’s name

string

Max length: 100

Attention

Attention line

string

Max length: 100

Phone

Contact phone #

string

Max length: 20

Street1

Street address line one

string

Max length: 100

Street2

Street address line two

string

Max length: 100

City

City

string

Max length: 100

StateProvince

State / Province code Valid 2 character State or Province code. See ISO-3166

string

Max length: 100

PostalCode

Postal code

string

Max length: 20

CountryCode

Country Code Standard ISO-3166 2-Character country code

string

Max length: 2

ExtendedData

Client defined data

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "AddressType": 0,
  "Name": "sample string 2",
  "Attention": "sample string 3",
  "Phone": "sample string 4",
  "Street1": "sample string 5",
  "Street2": "sample string 6",
  "City": "sample string 7",
  "StateProvince": "sample string 8",
  "PostalCode": "sample string 9",
  "CountryCode": "sample string 10",
  "ExtendedData": "sample string 11"
}

application/xml, text/xml

Sample:
<AddressUpdateModel xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <AddressType>SoldTo</AddressType>
  <Name>sample string 2</Name>
  <Attention>sample string 3</Attention>
  <Phone>sample string 4</Phone>
  <Street1>sample string 5</Street1>
  <Street2>sample string 6</Street2>
  <City>sample string 7</City>
  <StateProvince>sample string 8</StateProvince>
  <PostalCode>sample string 9</PostalCode>
  <CountryCode>sample string 10</CountryCode>
  <ExtendedData>sample string 11</ExtendedData>
  <Id>1</Id>
</AddressUpdateModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.