Trendsic Platform Service

<back to all web services

AddressRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/getAddress/{AddressID}
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports CRM.AgencyPlatform.API.Internal

Namespace Global

    Namespace CRM.AgencyPlatform.API.Internal

        Public Partial Class Address
            Public Overridable Property ID As Integer
            Public Overridable Property AddressTypeID As Byte
            Public Overridable Property AddressContact As String
            Public Overridable Property AttentionTo As String
            Public Overridable Property AddressLine1 As String
            Public Overridable Property AddressLine2 As String
            Public Overridable Property AddressLine3 As String
            Public Overridable Property AddressCity As String
            Public Overridable Property AddressState As String
            Public Overridable Property AddressZip As String
            Public Overridable Property AddressCountry As String
            Public Overridable Property PhoneNumber As String
            Public Overridable Property FaxNumber As String
            Public Overridable Property UID As Guid
            Public Overridable Property Name As String
        End Class

        Public Partial Class AddressRequest
            Public Overridable Property AddressID As Integer
        End Class

        Public Partial Class AddressResponse
            Public Overridable Property ResponseStatus As ResponseStatus
            Public Overridable Property Address As Address
        End Class
    End Namespace
End Namespace

VB.NET AddressRequest DTOs

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

HTTP + OTHER

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: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Address":{"ID":0,"AddressTypeID":0,"AddressContact":"String","AttentionTo":"String","AddressLine1":"String","AddressLine2":"String","AddressLine3":"String","AddressCity":"String","AddressState":"String","AddressZip":"String","AddressCountry":"String","PhoneNumber":"String","FaxNumber":"String","UID":"00000000000000000000000000000000","Name":"String"}}