Trendsic Platform Service

<back to all web services

FormOfficeSubmitRequest

Requires Authentication
The following routes are available for this service:
POST,OPTIONS/v1/forms/office/drafts/{SubmissionUID}/submit
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 FormFillFieldError
    {
        public virtual string K { get; set; }
        public virtual string Msg { get; set; }
    }

    public partial class FormFillReceiptLine
    {
        public virtual string Channel { get; set; }
        public virtual string To { get; set; }
        public virtual string Outcome { get; set; }
    }

    public partial class FormOfficeSubmitRequest
    {
        public virtual Guid SubmissionUID { get; set; }
        public virtual string AnswersJson { get; set; }
    }

    public partial class FormOfficeSubmitResponse
    {
        public virtual string State { get; set; }
        public virtual string Number { get; set; }
        public virtual string SubmissionUID { get; set; }
        public virtual bool Approved { get; set; }
        public virtual bool Waiting { get; set; }
        public virtual List<FormFillReceiptLine> Receipt { get; set; } = [];
        public virtual List<FormFillFieldError> Errors { get; set; } = [];
        public virtual ResponseStatus ResponseStatus { get; set; }
    }

}

C# FormOfficeSubmitRequest 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/forms/office/drafts/{SubmissionUID}/submit HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	SubmissionUID: 00000000000000000000000000000000,
	AnswersJson: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	State: String,
	Number: String,
	SubmissionUID: String,
	Approved: False,
	Waiting: False,
	Receipt: 
	[
		{
			Channel: String,
			To: String,
			Outcome: 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
		}
	}
}