Trendsic Platform Service

<back to all web services

FormFillReplyRequest

The following routes are available for this service:
POST/v1/formfill/status/{Token}/request/send
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*


open class FormFillReplyRequest
{
    open var Token:String? = null
    open var RequestUID:String? = null
    open var AnswersJson:String? = null
    open var Lang:String? = null
}

open class FormFillReplyResponse
{
    open var Sent:Boolean? = null
    open var Status:FormFillStatusResponse? = null
    open var Errors:ArrayList<FormFillFieldError> = ArrayList<FormFillFieldError>()
    open var ResponseStatus:ResponseStatus? = null
}

open class FormFillStatusResponse
{
    open var Number:String? = null
    open var FormName:String? = null
    open var Noun:String? = null
    open var TenantName:String? = null
    open var Stage:String? = null
    open var StageKind:String? = null
    open var Stages:ArrayList<FormFillStage> = ArrayList<FormFillStage>()
    open var Seen:ArrayList<FormFillStageSeen> = ArrayList<FormFillStageSeen>()
    open var SubmittedAt:Date? = null
    open var Receipt:ArrayList<FormFillReceiptLine> = ArrayList<FormFillReceiptLine>()
    open var CanWithdraw:Boolean? = null
    open var Lang:String? = null
    open var NounEs:String? = null
    open var HasRequest:Boolean? = null
    open var RequestNote:String? = null
    open var Outcome:String? = null
    open var DecisionReason:String? = null
    open var DecisionNote:String? = null
    open var ResponseStatus:ResponseStatus? = null
}

open class FormFillStage
{
    open var Id:String? = null
    open var Label:String? = null
    open var Tone:String? = null
    open var Kind:String? = null
}

open class FormFillStageSeen
{
    open var Id:String? = null
    open var At:Date? = null
}

open class FormFillReceiptLine
{
    open var Channel:String? = null
    open var To:String? = null
    open var Outcome:String? = null
}

open class FormFillFieldError
{
    open var K:String? = null
    open var Msg:String? = null
}

Kotlin FormFillReplyRequest 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/formfill/status/{Token}/request/send HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	Token: String,
	RequestUID: String,
	AnswersJson: String,
	Lang: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Sent: False,
	Status: 
	{
		Number: String,
		FormName: String,
		Noun: String,
		TenantName: String,
		Stage: String,
		StageKind: String,
		Stages: 
		[
			{
				Id: String,
				Label: String,
				Tone: String,
				Kind: String
			}
		],
		Seen: 
		[
			{
				Id: String,
				At: 0001-01-01
			}
		],
		SubmittedAt: 0001-01-01,
		Receipt: 
		[
			{
				Channel: String,
				To: String,
				Outcome: String
			}
		],
		CanWithdraw: False,
		Lang: String,
		NounEs: String,
		HasRequest: False,
		RequestNote: String,
		Outcome: String,
		DecisionReason: String,
		DecisionNote: String,
		ResponseStatus: 
		{
			ErrorCode: String,
			Message: String,
			StackTrace: String,
			Errors: 
			[
				{
					ErrorCode: String,
					FieldName: String,
					Message: String,
					Meta: 
					{
						String: String
					}
				}
			],
			Meta: 
			{
				String: String
			}
		}
	},
	Errors: 
	[
		{
			K: String,
			Msg: String
		}
	],
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}