| POST | /v1/formfill/status/{Token}/request/send |
|---|
export class FormFillStage
{
public Id: string;
public Label: string;
public Tone: string;
public Kind: string;
public constructor(init?: Partial<FormFillStage>) { (Object as any).assign(this, init); }
}
export class FormFillStageSeen
{
public Id: string;
public At: string;
public constructor(init?: Partial<FormFillStageSeen>) { (Object as any).assign(this, init); }
}
export class FormFillReceiptLine
{
public Channel: string;
public To: string;
public Outcome: string;
public constructor(init?: Partial<FormFillReceiptLine>) { (Object as any).assign(this, init); }
}
export class FormFillStatusResponse
{
public Number: string;
public FormName: string;
public Noun: string;
public TenantName: string;
public Stage: string;
public StageKind: string;
public Stages: FormFillStage[] = [];
public Seen: FormFillStageSeen[] = [];
public SubmittedAt?: string;
public Receipt: FormFillReceiptLine[] = [];
public CanWithdraw: boolean;
public Lang: string;
public NounEs: string;
public HasRequest: boolean;
public RequestNote: string;
public Outcome: string;
public DecisionReason: string;
public DecisionNote: string;
public ResponseStatus: ResponseStatus;
public constructor(init?: Partial<FormFillStatusResponse>) { (Object as any).assign(this, init); }
}
export class FormFillFieldError
{
public K: string;
public Msg: string;
public constructor(init?: Partial<FormFillFieldError>) { (Object as any).assign(this, init); }
}
export class FormFillReplyResponse
{
public Sent: boolean;
public Status: FormFillStatusResponse;
public Errors: FormFillFieldError[] = [];
public ResponseStatus: ResponseStatus;
public constructor(init?: Partial<FormFillReplyResponse>) { (Object as any).assign(this, init); }
}
export class FormFillReplyRequest
{
public Token: string;
public RequestUID: string;
public AnswersJson: string;
public Lang: string;
public constructor(init?: Partial<FormFillReplyRequest>) { (Object as any).assign(this, init); }
}
TypeScript FormFillReplyRequest DTOs
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/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
}
}
}