Cdn API - CPG Source

<back to all web services

AddressRequest

Cdn.Api

AddressRequest Parameters:
NameParameterData TypeRequiredDescription
IdbodylongNo
CustIdbodylongNo
IncludeStatesAndCountriesbodyboolNo
CountryIdbodylongNo
StateIdbodylongNo
LabelbodystringNo
FullNamebodystringNo
CompanyNamebodystringNo
Address1bodystringNo
Address2bodystringNo
Address3bodystringNo
CitybodystringNo
ZipCodebodystringNo
ProvinceRegionbodystringNo
IsPrimaryBillingbodyboolNo
IsPrimaryShippingbodyboolNo
IsTemporarybodyboolNo
IsDealerDirectorybodyboolNo
IsCdnxbodyboolNo
StartDtbodyDateTimeNo
StartDtDisplaybodystringNo
EndDtbodyDateTimeNo
EndDtDisplaybodystringNo
CountryNamebodystringNo
StateAbbrbodystringNo
CustomerIdbodylongNo
OrganizationIdbodylongNo
IsUspsValidbodyboolNo
AddressResponse Parameters:
NameParameterData TypeRequiredDescription
DataformList<AddressDto>No
BaseResponse Parameters:
NameParameterData TypeRequiredDescription
TotalformintNo
OpCodeformintNo
ErrorTextformstringNo
RequestTimeformstringNo
ResponseTimeformstringNo
TotalExecutionTimeformstringNo
CachedResponseformboolNo
AddressDto Parameters:
NameParameterData TypeRequiredDescription
CountryIdformlongNo
StateIdformlongNo
LabelformstringNo
FullNameformstringNo
CompanyNameformstringNo
Address1formstringNo
Address2formstringNo
Address3formstringNo
CityformstringNo
ZipCodeformstringNo
ProvinceRegionformstringNo
IsPrimaryBillingformboolNo
IsPrimaryShippingformboolNo
IsTemporaryformboolNo
IsDealerDirectoryformboolNo
IsCdnxformboolNo
StartDtformDateTimeNo
StartDtDisplayformstringNo
EndDtformDateTimeNo
EndDtDisplayformstringNo
CountryformCountryDtoNo
CountryNameformstringNo
StateformStateDtoNo
StateAbbrformstringNo
CountriesformIList<CountryDto>No
StatesformIList<StateDto>No
CustomerIdformlongNo
OrganizationIdformlongNo
IsUspsValidformboolNo
DtoBase Parameters:
NameParameterData TypeRequiredDescription
IdformlongNo
ActiveformboolNo
LastModformDateTimeNo
LastModByformstringNo
CountryDto Parameters:
NameParameterData TypeRequiredDescription
CountryNameformstringNo
SortOrderformintNo
CountryCodeformstringNo
StateDto Parameters:
NameParameterData TypeRequiredDescription
StateNameformstringNo
AbbrformstringNo
SortOrderformint?No
IsTaxableformboolNo
IsTaxedformboolNo
UseTaxApiformboolNo
TaxRateformdecimalNo

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

HTTP + SOAP12

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

POST /soap12 HTTP/1.1 
Host: cdnapidev.greysheet.com 
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
    <soap12:Body>

<AddressRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cdn.Api.RequestObjects">
  <Address1>String</Address1>
  <Address2>String</Address2>
  <Address3>String</Address3>
  <City>String</City>
  <CompanyName>String</CompanyName>
  <CountryId>0</CountryId>
  <CountryName>String</CountryName>
  <CustId>0</CustId>
  <CustomerId>0</CustomerId>
  <EndDt>0001-01-01T00:00:00</EndDt>
  <EndDtDisplay>String</EndDtDisplay>
  <FullName>String</FullName>
  <Id>0</Id>
  <IncludeStatesAndCountries>false</IncludeStatesAndCountries>
  <IsCdnx>false</IsCdnx>
  <IsDealerDirectory>false</IsDealerDirectory>
  <IsPrimaryBilling>false</IsPrimaryBilling>
  <IsPrimaryShipping>false</IsPrimaryShipping>
  <IsTemporary>false</IsTemporary>
  <IsUspsValid>false</IsUspsValid>
  <Label>String</Label>
  <OrganizationId>0</OrganizationId>
  <ProvinceRegion>String</ProvinceRegion>
  <StartDt>0001-01-01T00:00:00</StartDt>
  <StartDtDisplay>String</StartDtDisplay>
  <StateAbbr>String</StateAbbr>
  <StateId>0</StateId>
  <ZipCode>String</ZipCode>
</AddressRequest>

    </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
    <soap12:Body>

<AddressResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cdn.Api.ResponseObjects">
  <CachedResponse>false</CachedResponse>
  <ErrorText>String</ErrorText>
  <OpCode>0</OpCode>
  <RequestTime>String</RequestTime>
  <ResponseTime>String</ResponseTime>
  <Total>0</Total>
  <TotalExecutionTime>String</TotalExecutionTime>
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/Cdn.Api.Dto">
    <d2p1:AddressDto>
      <d2p1:_x003C_Active_x003E_k__BackingField>false</d2p1:_x003C_Active_x003E_k__BackingField>
      <d2p1:_x003C_Id_x003E_k__BackingField>0</d2p1:_x003C_Id_x003E_k__BackingField>
      <d2p1:_x003C_LastModBy_x003E_k__BackingField>String</d2p1:_x003C_LastModBy_x003E_k__BackingField>
      <d2p1:_x003C_LastMod_x003E_k__BackingField>0001-01-01T00:00:00</d2p1:_x003C_LastMod_x003E_k__BackingField>
      <d2p1:_x003C_Address1_x003E_k__BackingField>String</d2p1:_x003C_Address1_x003E_k__BackingField>
      <d2p1:_x003C_Address2_x003E_k__BackingField>String</d2p1:_x003C_Address2_x003E_k__BackingField>
      <d2p1:_x003C_Address3_x003E_k__BackingField>String</d2p1:_x003C_Address3_x003E_k__BackingField>
      <d2p1:_x003C_City_x003E_k__BackingField>String</d2p1:_x003C_City_x003E_k__BackingField>
      <d2p1:_x003C_CompanyName_x003E_k__BackingField>String</d2p1:_x003C_CompanyName_x003E_k__BackingField>
      <d2p1:_x003C_Countries_x003E_k__BackingField i:nil="true" />
      <d2p1:_x003C_CountryId_x003E_k__BackingField>0</d2p1:_x003C_CountryId_x003E_k__BackingField>
      <d2p1:_x003C_CountryName_x003E_k__BackingField>String</d2p1:_x003C_CountryName_x003E_k__BackingField>
      <d2p1:_x003C_Country_x003E_k__BackingField>
        <d2p1:_x003C_Active_x003E_k__BackingField>false</d2p1:_x003C_Active_x003E_k__BackingField>
        <d2p1:_x003C_Id_x003E_k__BackingField>0</d2p1:_x003C_Id_x003E_k__BackingField>
        <d2p1:_x003C_LastModBy_x003E_k__BackingField>String</d2p1:_x003C_LastModBy_x003E_k__BackingField>
        <d2p1:_x003C_LastMod_x003E_k__BackingField>0001-01-01T00:00:00</d2p1:_x003C_LastMod_x003E_k__BackingField>
        <d2p1:CountryCode>String</d2p1:CountryCode>
        <d2p1:CountryName>String</d2p1:CountryName>
        <d2p1:SortOrder>0</d2p1:SortOrder>
      </d2p1:_x003C_Country_x003E_k__BackingField>
      <d2p1:_x003C_CustomerId_x003E_k__BackingField>0</d2p1:_x003C_CustomerId_x003E_k__BackingField>
      <d2p1:_x003C_EndDtDisplay_x003E_k__BackingField>String</d2p1:_x003C_EndDtDisplay_x003E_k__BackingField>
      <d2p1:_x003C_EndDt_x003E_k__BackingField>0001-01-01T00:00:00</d2p1:_x003C_EndDt_x003E_k__BackingField>
      <d2p1:_x003C_FullName_x003E_k__BackingField>String</d2p1:_x003C_FullName_x003E_k__BackingField>
      <d2p1:_x003C_IsCdnx_x003E_k__BackingField>false</d2p1:_x003C_IsCdnx_x003E_k__BackingField>
      <d2p1:_x003C_IsDealerDirectory_x003E_k__BackingField>false</d2p1:_x003C_IsDealerDirectory_x003E_k__BackingField>
      <d2p1:_x003C_IsPrimaryBilling_x003E_k__BackingField>false</d2p1:_x003C_IsPrimaryBilling_x003E_k__BackingField>
      <d2p1:_x003C_IsPrimaryShipping_x003E_k__BackingField>false</d2p1:_x003C_IsPrimaryShipping_x003E_k__BackingField>
      <d2p1:_x003C_IsTemporary_x003E_k__BackingField>false</d2p1:_x003C_IsTemporary_x003E_k__BackingField>
      <d2p1:_x003C_IsUspsValid_x003E_k__BackingField>false</d2p1:_x003C_IsUspsValid_x003E_k__BackingField>
      <d2p1:_x003C_Label_x003E_k__BackingField>String</d2p1:_x003C_Label_x003E_k__BackingField>
      <d2p1:_x003C_OrganizationId_x003E_k__BackingField>0</d2p1:_x003C_OrganizationId_x003E_k__BackingField>
      <d2p1:_x003C_ProvinceRegion_x003E_k__BackingField>String</d2p1:_x003C_ProvinceRegion_x003E_k__BackingField>
      <d2p1:_x003C_StartDtDisplay_x003E_k__BackingField>String</d2p1:_x003C_StartDtDisplay_x003E_k__BackingField>
      <d2p1:_x003C_StartDt_x003E_k__BackingField>0001-01-01T00:00:00</d2p1:_x003C_StartDt_x003E_k__BackingField>
      <d2p1:_x003C_StateAbbr_x003E_k__BackingField>String</d2p1:_x003C_StateAbbr_x003E_k__BackingField>
      <d2p1:_x003C_StateId_x003E_k__BackingField>0</d2p1:_x003C_StateId_x003E_k__BackingField>
      <d2p1:_x003C_State_x003E_k__BackingField>
        <d2p1:_x003C_Active_x003E_k__BackingField>false</d2p1:_x003C_Active_x003E_k__BackingField>
        <d2p1:_x003C_Id_x003E_k__BackingField>0</d2p1:_x003C_Id_x003E_k__BackingField>
        <d2p1:_x003C_LastModBy_x003E_k__BackingField>String</d2p1:_x003C_LastModBy_x003E_k__BackingField>
        <d2p1:_x003C_LastMod_x003E_k__BackingField>0001-01-01T00:00:00</d2p1:_x003C_LastMod_x003E_k__BackingField>
        <d2p1:Abbr>String</d2p1:Abbr>
        <d2p1:IsTaxable>false</d2p1:IsTaxable>
        <d2p1:IsTaxed>false</d2p1:IsTaxed>
        <d2p1:SortOrder>0</d2p1:SortOrder>
        <d2p1:StateName>String</d2p1:StateName>
        <d2p1:TaxRate>0</d2p1:TaxRate>
        <d2p1:UseTaxApi>false</d2p1:UseTaxApi>
      </d2p1:_x003C_State_x003E_k__BackingField>
      <d2p1:_x003C_States_x003E_k__BackingField i:nil="true" />
      <d2p1:_x003C_ZipCode_x003E_k__BackingField>String</d2p1:_x003C_ZipCode_x003E_k__BackingField>
    </d2p1:AddressDto>
  </Data>
</AddressResponse>

    </soap12:Body>
</soap12:Envelope>