Trendsic Platform Service

<back to all web services

CoverageSwapRespondRequest

The following routes are available for this service:
POST/v1/coverage/swap/{Token}/respond
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 CoverageSwapRespondRequest
            Public Overridable Property Token As String
            Public Overridable Property Action As String
        End Class

        Public Partial Class CoverageSwapSideInfo
            Public Overridable Property Name As String
            Public Overridable Property DateText As String
            Public Overridable Property JobName As String
            Public Overridable Property Consented As Boolean
        End Class

        Public Partial Class CoverageSwapViewResponse
            Public Overridable Property State As String
            Public Overridable Property You As CoverageSwapSideInfo
            Public Overridable Property Them As CoverageSwapSideInfo
            Public Overridable Property Directed As Boolean
            Public Overridable Property WithdrawnBy As String
            Public Overridable Property ResponseStatus As ResponseStatus
        End Class
    End Namespace
End Namespace

VB.NET CoverageSwapRespondRequest 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.

POST /v1/coverage/swap/{Token}/respond HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"Token":"String","Action":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"State":"String","You":{"Name":"String","DateText":"String","JobName":"String","Consented":false},"Them":{"Name":"String","DateText":"String","JobName":"String","Consented":false},"Directed":false,"WithdrawnBy":"String","ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}