Trendsic Platform Service

<back to all web services

NotaryInviteRequest

Requires Authentication
The following routes are available for this service:
GET,POST/v1/witness/notary/invite
import Foundation
import ServiceStack

public class NotaryInviteRequest : Codable
{
    public var email:String
    public var phone:String
    public var notaryId:Int?

    required public init(){}
}

public class NotaryInviteResponse : Codable
{
    public var preview:NotaryInvitePreview
    public var lines:[String] = []
    public var emailedTo:String
    public var textedTo:String
    public var responseStatus:ResponseStatus

    required public init(){}
}

public class NotaryInvitePreview : Codable
{
    public var link:String
    public var subject:String
    public var greeting:String
    public var lead:String
    public var signIn:String
    public var sms:String
    public var smsLength:Int
    public var smsSegments:Int

    required public init(){}
}


Swift NotaryInviteRequest 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/witness/notary/invite HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"Email":"String","Phone":"String","NotaryId":0}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"Preview":{"Link":"String","Subject":"String","Greeting":"String","Lead":"String","SignIn":"String","Sms":"String","SmsLength":0,"SmsSegments":0},"Lines":["String"],"EmailedTo":"String","TextedTo":"String","ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}