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
namespace CRM.AgencyPlatform.API.Internal

open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type NotaryInvitePreview() = 
        member val Link:String = null with get,set
        member val Subject:String = null with get,set
        member val Greeting:String = null with get,set
        member val Lead:String = null with get,set
        member val SignIn:String = null with get,set
        member val Sms:String = null with get,set
        member val SmsLength:Int32 = new Int32() with get,set
        member val SmsSegments:Int32 = new Int32() with get,set

    [<AllowNullLiteral>]
    type NotaryInviteResponse() = 
        member val Preview:NotaryInvitePreview = null with get,set
        member val Lines:ResizeArray<String> = new ResizeArray<String>() with get,set
        member val EmailedTo:String = null with get,set
        member val TextedTo:String = null with get,set
        member val ResponseStatus:ResponseStatus = null with get,set

    [<AllowNullLiteral>]
    type NotaryInviteRequest() = 
        member val Email:String = null with get,set
        member val Phone:String = null with get,set
        member val NotaryId:Nullable<Int32> = new Nullable<Int32>() with get,set

F# NotaryInviteRequest DTOs

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

HTTP + JSV

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/jsv
Content-Type: text/jsv
Content-Length: length

{
	Email: String,
	Phone: String,
	NotaryId: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
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
		}
	}
}