Trendsic Platform Service

<back to all web services

FormInvitesRequest

Requires Authentication
The following routes are available for this service:
GET/v1/forms/{FormUID}/invites
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 FormFillReceiptLine
            Public Overridable Property Channel As String
            Public Overridable Property [To] As String
            Public Overridable Property Outcome As String
        End Class

        Public Partial Class FormInvitesRequest
            Public Overridable Property FormUID As Guid
        End Class

        Public Partial Class FormInvitesResponse
            Public Overridable Property Invites As List(Of FormInviteView) = New List(Of FormInviteView)
            Public Overridable Property Created As List(Of FormInviteView) = New List(Of FormInviteView)
            Public Overridable Property Emails As Integer
            Public Overridable Property Texts As Integer
            Public Overridable Property Consequence As String
            Public Overridable Property ResponseStatus As ResponseStatus
        End Class

        Public Partial Class FormInviteView
            Public Overridable Property InviteUID As Guid
            Public Overridable Property Name As String
            Public Overridable Property Email As String
            Public Overridable Property Phone As String
            Public Overridable Property CreatedBy As String
            Public Overridable Property CreatedAt As Date?
            Public Overridable Property ExpiresAt As Date?
            Public Overridable Property SentAt As Date?
            Public Overridable Property LastSentAt As Date?
            Public Overridable Property SendCount As Integer
            Public Overridable Property OpenedAt As Date?
            Public Overridable Property RevokedAt As Date?
            Public Overridable Property Number As String
            Public Overridable Property State As String
            Public Overridable Property Link As String
            Public Overridable Property Sends As List(Of FormFillReceiptLine) = New List(Of FormFillReceiptLine)
        End Class
    End Namespace
End Namespace

VB.NET FormInvitesRequest 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/forms/{FormUID}/invites HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"Invites":[{"InviteUID":"00000000000000000000000000000000","Name":"String","Email":"String","Phone":"String","CreatedBy":"String","CreatedAt":"0001-01-01T00:00:00.0000000","ExpiresAt":"0001-01-01T00:00:00.0000000","SentAt":"0001-01-01T00:00:00.0000000","LastSentAt":"0001-01-01T00:00:00.0000000","SendCount":0,"OpenedAt":"0001-01-01T00:00:00.0000000","RevokedAt":"0001-01-01T00:00:00.0000000","Number":"String","State":"String","Link":"String","Sends":[{"Channel":"String","To":"String","Outcome":"String"}]}],"Created":[{"InviteUID":"00000000000000000000000000000000","Name":"String","Email":"String","Phone":"String","CreatedBy":"String","CreatedAt":"0001-01-01T00:00:00.0000000","ExpiresAt":"0001-01-01T00:00:00.0000000","SentAt":"0001-01-01T00:00:00.0000000","LastSentAt":"0001-01-01T00:00:00.0000000","SendCount":0,"OpenedAt":"0001-01-01T00:00:00.0000000","RevokedAt":"0001-01-01T00:00:00.0000000","Number":"String","State":"String","Link":"String","Sends":[{"Channel":"String","To":"String","Outcome":"String"}]}],"Emails":0,"Texts":0,"Consequence":"String","ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}