Trendsic Platform Service

<back to all web services

CoverageOfferCallbackRequest

The following routes are available for this service:
POST/v1/coverage/offer/{Token}/callback
CoverageOfferCallbackRequest Parameters:
NameParameterData TypeRequiredDescription
TokenpathstringNo
CoverageOfferViewResponse Parameters:
NameParameterData TypeRequiredDescription
StateformstringNo
WorkerFirstformstringNo
PrimaryformstringNo
KindformstringNo
RoleformstringNo
PayformstringNo
SiteformstringNo
AddressformstringNo
GapDateformstringNo
GapTimeformstringNo
CalMonformstringNo
CalDayformstringNo
ReportToformstringNo
EligformList<CoverageOfferEligChip>No
AssignmentModeformstringNo
TicketformstringNo
ExpiresformstringNo
BlockExplformCoverageExplanationNo
ResponseStatusformResponseStatusNo
CoverageOfferEligChip Parameters:
NameParameterData TypeRequiredDescription
LabelformstringNo
DetailformstringNo
StateformstringNo
CoverageExplanation Parameters:
NameParameterData TypeRequiredDescription
PlainSentenceformstringNo
RuleIdformstringNo
RuleNameformstringNo
DemandformstringNo
SourceformCoverageExplanationSourceNo
KindformstringNo
WhyItExistsformstringNo
WhatWouldChangeItformstringNo
OverrideformCoverageExplanationOverrideNo
DrillformstringNo
CoverageExplanationSource Parameters:
NameParameterData TypeRequiredDescription
PolicyNameformstringNo
CascadeLevelformstringNo
CoverageExplanationOverride Parameters:
NameParameterData TypeRequiredDescription
WhoformstringNo
ConsequenceformstringNo

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/coverage/offer/{Token}/callback HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

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

{
	State: String,
	WorkerFirst: String,
	Primary: String,
	Kind: String,
	Role: String,
	Pay: String,
	Site: String,
	Address: String,
	GapDate: String,
	GapTime: String,
	CalMon: String,
	CalDay: String,
	ReportTo: String,
	Elig: 
	[
		{
			Label: String,
			Detail: String,
			State: String
		}
	],
	AssignmentMode: String,
	Ticket: String,
	Expires: String,
	BlockExpl: 
	{
		PlainSentence: String,
		RuleId: String,
		RuleName: String,
		Demand: String,
		Source: 
		{
			PolicyName: String,
			CascadeLevel: String
		},
		Kind: String,
		WhyItExists: String,
		WhatWouldChangeIt: String,
		Override: 
		{
			Who: String,
			Consequence: String
		},
		Drill: String
	},
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}