Trendsic Platform Service

<back to all web services

PolicyInfoRequest

Requires Authentication
Requires any of the roles:Agent, Administrator
The following routes are available for this service:
POST,OPTIONS/v1/GetPolicyInfo
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class PolicyInfoRequest
    {
        public String PolicyNum = null;
        
        public String getPolicyNum() { return PolicyNum; }
        public PolicyInfoRequest setPolicyNum(String value) { this.PolicyNum = value; return this; }
    }

    public static class PolicyInfoResponse
    {
        public ResponseStatus ResponseStatus = null;
        public ArrayList<PolicyInfo> PolicyInfo = new ArrayList<PolicyInfo>();
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public PolicyInfoResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public ArrayList<PolicyInfo> getPolicyInfo() { return PolicyInfo; }
        public PolicyInfoResponse setPolicyInfo(ArrayList<PolicyInfo> value) { this.PolicyInfo = value; return this; }
    }

    public static class PolicyInfo
    {
        public String ReqCode = null;
        public Date RequestedDate = null;
        public String ReqStatus = null;
        public Date FulfilledDate = null;
        
        public String getReqCode() { return ReqCode; }
        public PolicyInfo setReqCode(String value) { this.ReqCode = value; return this; }
        public Date getRequestedDate() { return RequestedDate; }
        public PolicyInfo setRequestedDate(Date value) { this.RequestedDate = value; return this; }
        public String getReqStatus() { return ReqStatus; }
        public PolicyInfo setReqStatus(String value) { this.ReqStatus = value; return this; }
        public Date getFulfilledDate() { return FulfilledDate; }
        public PolicyInfo setFulfilledDate(Date value) { this.FulfilledDate = value; return this; }
    }

}

Java PolicyInfoRequest 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/GetPolicyInfo HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	PolicyNum: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	},
	PolicyInfo: 
	[
		{
			ReqCode: String,
			RequestedDate: 0001-01-01,
			ReqStatus: String,
			FulfilledDate: 0001-01-01
		}
	]
}