Trendsic Platform Service

<back to all web services

AddressRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/getAddress/{AddressID}
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class AddressRequest
    {
        public Integer AddressID = null;
        
        public Integer getAddressID() { return AddressID; }
        public AddressRequest setAddressID(Integer value) { this.AddressID = value; return this; }
    }

    public static class AddressResponse
    {
        public ResponseStatus ResponseStatus = null;
        public Address Address = null;
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public AddressResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public Address getAddress() { return Address; }
        public AddressResponse setAddress(Address value) { this.Address = value; return this; }
    }

    public static class Address
    {
        public Integer ID = null;
        public Short AddressTypeID = null;
        public String AddressContact = null;
        public String AttentionTo = null;
        public String AddressLine1 = null;
        public String AddressLine2 = null;
        public String AddressLine3 = null;
        public String AddressCity = null;
        public String AddressState = null;
        public String AddressZip = null;
        public String AddressCountry = null;
        public String PhoneNumber = null;
        public String FaxNumber = null;
        public UUID UID = null;
        public String Name = null;
        
        public Integer getId() { return ID; }
        public Address setId(Integer value) { this.ID = value; return this; }
        public Short getAddressTypeID() { return AddressTypeID; }
        public Address setAddressTypeID(Short value) { this.AddressTypeID = value; return this; }
        public String getAddressContact() { return AddressContact; }
        public Address setAddressContact(String value) { this.AddressContact = value; return this; }
        public String getAttentionTo() { return AttentionTo; }
        public Address setAttentionTo(String value) { this.AttentionTo = value; return this; }
        public String getAddressLine1() { return AddressLine1; }
        public Address setAddressLine1(String value) { this.AddressLine1 = value; return this; }
        public String getAddressLine2() { return AddressLine2; }
        public Address setAddressLine2(String value) { this.AddressLine2 = value; return this; }
        public String getAddressLine3() { return AddressLine3; }
        public Address setAddressLine3(String value) { this.AddressLine3 = value; return this; }
        public String getAddressCity() { return AddressCity; }
        public Address setAddressCity(String value) { this.AddressCity = value; return this; }
        public String getAddressState() { return AddressState; }
        public Address setAddressState(String value) { this.AddressState = value; return this; }
        public String getAddressZip() { return AddressZip; }
        public Address setAddressZip(String value) { this.AddressZip = value; return this; }
        public String getAddressCountry() { return AddressCountry; }
        public Address setAddressCountry(String value) { this.AddressCountry = value; return this; }
        public String getPhoneNumber() { return PhoneNumber; }
        public Address setPhoneNumber(String value) { this.PhoneNumber = value; return this; }
        public String getFaxNumber() { return FaxNumber; }
        public Address setFaxNumber(String value) { this.FaxNumber = value; return this; }
        public UUID getUid() { return UID; }
        public Address setUid(UUID value) { this.UID = value; return this; }
        public String getName() { return Name; }
        public Address setName(String value) { this.Name = value; return this; }
    }

}

Java AddressRequest DTOs

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 /v1/getAddress/{AddressID} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<AddressResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Address>
    <AddressCity>String</AddressCity>
    <AddressContact>String</AddressContact>
    <AddressCountry>String</AddressCountry>
    <AddressLine1>String</AddressLine1>
    <AddressLine2>String</AddressLine2>
    <AddressLine3>String</AddressLine3>
    <AddressState>String</AddressState>
    <AddressTypeID>0</AddressTypeID>
    <AddressZip>String</AddressZip>
    <AttentionTo>String</AttentionTo>
    <FaxNumber>String</FaxNumber>
    <ID>0</ID>
    <Name>String</Name>
    <PhoneNumber>String</PhoneNumber>
    <UID>00000000-0000-0000-0000-000000000000</UID>
  </Address>
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Meta>
  </ResponseStatus>
</AddressResponse>