Create an address

Creates an address for a given account.

SecurityCommonAuth
Request
query Parameters
accountId
required
string

The ID of the account to work with.

Example: accountId=F50091
Request Body schema: application/json

Body

type
required
string

The address type.

nickName
string <= 256 characters

The nickname of the address.

addressLine1
required
string [ 1 .. 256 ] characters

The first line of the address.

addressLine2
string <= 256 characters

The second line of the address.

addressLine3
string <= 256 characters

The third line of the address.

addressContact
string <= 256 characters

The name of the contact associated with the address.

city
required
string <= 256 characters

The city of the address.

postcode
required
string <= 50 characters

The postal or ZIP code of the address.

country
required
string <= 256 characters

The country of the address.

Responses
201

Created

post/addresses
Request samples
application/json
{
  • "type": "office",
  • "nickName": "office",
  • "addressLine1": "Great Building",
  • "addressLine2": "Four Maple Street",
  • "addressLine3": "Southwark",
  • "addressContact": "Brian May",
  • "city": "string",
  • "postcode": "SE13UB",
  • "country": "England"
}
Response samples
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "type": "office",
  • "nickName": "office",
  • "addressLine1": "Great Building",
  • "addressLine2": "Four Maple Street",
  • "addressLine3": "Southwark",
  • "addressContact": "Brian May",
  • "city": "string",
  • "postcode": "SE13UB",
  • "country": "England",
  • "countryCode": "GB"
}