| GET,POST | /v1/witness/notary/invite |
|---|
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using CRM.AgencyPlatform.API.Internal;
namespace CRM.AgencyPlatform.API.Internal
{
public partial class NotaryInvitePreview
{
public virtual string Link { get; set; }
public virtual string Subject { get; set; }
public virtual string Greeting { get; set; }
public virtual string Lead { get; set; }
public virtual string SignIn { get; set; }
public virtual string Sms { get; set; }
public virtual int SmsLength { get; set; }
public virtual int SmsSegments { get; set; }
}
public partial class NotaryInviteRequest
{
public virtual string Email { get; set; }
public virtual string Phone { get; set; }
public virtual int? NotaryId { get; set; }
}
public partial class NotaryInviteResponse
{
public virtual NotaryInvitePreview Preview { get; set; }
public virtual List<string> Lines { get; set; } = [];
public virtual string EmailedTo { get; set; }
public virtual string TextedTo { get; set; }
public virtual ResponseStatus ResponseStatus { get; set; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=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
}
}
}