GET api/v3/customers/{customerId}/addressBookEntry/{entryId}

Gets details of an address book entry for a customer

Request Information

URI Parameters

NameDescriptionTypeAdditional information
customerId

The Id of the customer to which the addressbook entry belongs.

integer

Required

entryId

The Id of the address book entry to delete.

integer

Required

Body Parameters

None.

Response Information

Resource Description

CustomerAddressBookEntry
NameDescriptionTypeAdditional information
AddressBookEntryId

The id of the entry

integer

None.

LocationId

The id of a customer location this entry is for. Null means customer level. Populated means location level.

integer

None.

FirstName

The First name of the entry

string

None.

LastName

The Last name of the entry

string

None.

PhoneNumber

The phone number of the entry

string

None.

EmailAddress

The email address of the entry

string

None.

Address

The Address of the entry

Address

Required

CompanyName

The associated Company name of the entry

string

None.

VatCode

The VAT code for the entry

string

None.

LocationCode

A customer designated location code for the entry

string

None.

LocationName

A customer designated location name for the entry

string

None.

RelatedConsigneeId

The ID of a related consignee addressbook entry. Used during international shipping.

integer

None.

TradeLocation

Is the entry identified as a Trade Location. Makes a difference during international shipping.

boolean

None.

Consignee

Is the entry a Consignee entry for use during international shipping.

boolean

None.

GroupName

The name of the group of related entries the entry belongs to.

string

None.

Response Formats

application/json, text/json

Sample:
{
  "AddressBookEntryId": 1,
  "LocationId": 1,
  "FirstName": "sample string 2",
  "LastName": "sample string 3",
  "PhoneNumber": "sample string 4",
  "EmailAddress": "sample string 5",
  "Address": {
    "Street1": "sample string 1",
    "Street2": "sample string 2",
    "City": "sample string 3",
    "Region": "sample string 4",
    "Postalcode": "sample string 5",
    "PostalZip4": "sample string 6",
    "CountryCode": "sample string 7"
  },
  "CompanyName": "sample string 6",
  "VatCode": "sample string 7",
  "LocationCode": "sample string 8",
  "LocationName": "sample string 9",
  "RelatedConsigneeId": 1,
  "TradeLocation": true,
  "Consignee": true,
  "GroupName": "sample string 12"
}

application/xml, text/xml

Sample:
<CustomerAddressBookEntry xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <AddressBookEntryId>1</AddressBookEntryId>
  <LocationId>1</LocationId>
  <FirstName>sample string 2</FirstName>
  <LastName>sample string 3</LastName>
  <PhoneNumber>sample string 4</PhoneNumber>
  <EmailAddress>sample string 5</EmailAddress>
  <Address>
    <Street1>sample string 1</Street1>
    <Street2>sample string 2</Street2>
    <City>sample string 3</City>
    <Region>sample string 4</Region>
    <Postalcode>sample string 5</Postalcode>
    <PostalZip4>sample string 6</PostalZip4>
    <CountryCode>sample string 7</CountryCode>
  </Address>
  <CompanyName>sample string 6</CompanyName>
  <VatCode>sample string 7</VatCode>
  <LocationCode>sample string 8</LocationCode>
  <LocationName>sample string 9</LocationName>
  <RelatedConsigneeId>1</RelatedConsigneeId>
  <TradeLocation>true</TradeLocation>
  <Consignee>true</Consignee>
  <GroupName>sample string 12</GroupName>
</CustomerAddressBookEntry>