AIM Web Services

<back to all web services

ShippingAddressLookupRequest

ShippingAddressLookup
Requires active-e Customer Service.

The following routes are available for this service:
GET/api/ShippingAddressLookup
ShippingAddressLookupRequest Parameters:
NameParameterData TypeRequiredDescription
Acctqueryint?NoPass in this parameter if you want to lookup all shipping addresses linked to a customer. Not required if using a customer login. Do not pass in this parameter if passing in the ShipId parameter.
ShipIdquerylong?NoUse this parameter to lookup a single Shipping Address with this ID. Do not pass in this parameter if passing in the Acct parameter.
BaseSecureRequest Parameters:
NameParameterData TypeRequiredDescription
TokenHeaderstringNo
DeviceIdHeaderstringNo
AppIdHeaderstringYes
BaseRequest Parameters:
NameParameterData TypeRequiredDescription
ApiKeyheaderstringYesThis is your AIM API Key provided by Tri-Tech
OAuthTokenheaderstringNo
ShippingAddressLookupResponse Parameters:
NameParameterData TypeRequiredDescription
ShipTosformList<ShipToInfo>No
BaseResponse Parameters:
NameParameterData TypeRequiredDescription
StatusbodyBaseResponseResultNo
BaseResponseResult Parameters:
NameParameterData TypeRequiredDescription
StatusCodebodystringNo
LoginbodystringNo
ErrorCodebodystringNo
ErrorDisplayTextbodystringNo
ErrorMessagebodystringNo
DomainNamebodystringNo
IpAddressbodystringNo
ShipToInfo Parameters:
NameParameterData TypeRequiredDescription
IdformlongNo
NameformstringNo
AttentionformstringNo
Address1formstringNo
Address2formstringNo
CityformstringNo
StateformstringNo
ZipformstringNo
CountryformstringNo
EmailformstringNo
PhoneformstringNo
Phone2formstringNo
NotesformstringNo
PrimaryformboolNo
TaxLocformstringNo
ActiveformboolNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /api/ShippingAddressLookup HTTP/1.1 
Host: active-ewebservice.biz 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ShippingAddressLookupResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AIM.WebService">
  <Status>
    <DomainName>String</DomainName>
    <ErrorCode>String</ErrorCode>
    <ErrorDisplayText>String</ErrorDisplayText>
    <ErrorMessage>String</ErrorMessage>
    <IpAddress>String</IpAddress>
    <Login>String</Login>
    <StatusCode>String</StatusCode>
  </Status>
  <ShipTos>
    <ShipToInfo>
      <Active>false</Active>
      <Address1>String</Address1>
      <Address2>String</Address2>
      <Attention>String</Attention>
      <City>String</City>
      <Country>String</Country>
      <Email>String</Email>
      <Id>0</Id>
      <Name>String</Name>
      <Notes>String</Notes>
      <Phone>String</Phone>
      <Phone2>String</Phone2>
      <Primary>false</Primary>
      <State>String</State>
      <TaxLoc>String</TaxLoc>
      <Zip>String</Zip>
    </ShipToInfo>
  </ShipTos>
</ShippingAddressLookupResponse>