Trendsic Platform Service

<back to all web services

GetInspectionReport

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/InspectionReport/{AgentUID}/{ContactUID}/
"use strict";
export class Employee {
    /** @param {{FirstName?:string,MiddleName?:string,LastName?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    FirstName;
    /** @type {string} */
    MiddleName;
    /** @type {string} */
    LastName;
}
export class InspectionReport {
    /** @param {{AgentUID?:string,ContactUID?:string,InspectionReportUID?:string,TradeName?:string,BusinessPhone?:string,StreetAddress?:string,ZipCode?:string,OwnersName?:string,ComplianceStatus?:number,IsBusinessClassABeer?:boolean,IsBusinessClassBBeer?:boolean,IsBusinessClassALiquor?:boolean,IsBusinessClassBLiquor?:boolean,IsBusinessClassD?:boolean,IsBusinessClassM?:boolean,IsBusinessClassP?:boolean,IsBusinessClassR?:boolean,IsBusinessClassRAH?:boolean,ClassBeerAccountNum?:string,ClassBeerStateNum?:string,ClassLiquorAccountNum?:string,ClassLiquorStateNum?:string,LicensedEmployees?:Employee[],AgentName?:string,ManagerSignature?:Object,ManagerName?:string,ManagerPhone?:string,InspectionDate?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    AgentUID;
    /** @type {string} */
    ContactUID;
    /** @type {string} */
    InspectionReportUID;
    /** @type {string} */
    TradeName;
    /** @type {string} */
    BusinessPhone;
    /** @type {string} */
    StreetAddress;
    /** @type {string} */
    ZipCode;
    /** @type {string} */
    OwnersName;
    /** @type {number} */
    ComplianceStatus;
    /** @type {boolean} */
    IsBusinessClassABeer;
    /** @type {boolean} */
    IsBusinessClassBBeer;
    /** @type {boolean} */
    IsBusinessClassALiquor;
    /** @type {boolean} */
    IsBusinessClassBLiquor;
    /** @type {boolean} */
    IsBusinessClassD;
    /** @type {boolean} */
    IsBusinessClassM;
    /** @type {boolean} */
    IsBusinessClassP;
    /** @type {boolean} */
    IsBusinessClassR;
    /** @type {boolean} */
    IsBusinessClassRAH;
    /** @type {string} */
    ClassBeerAccountNum;
    /** @type {string} */
    ClassBeerStateNum;
    /** @type {string} */
    ClassLiquorAccountNum;
    /** @type {string} */
    ClassLiquorStateNum;
    /** @type {Employee[]} */
    LicensedEmployees = [];
    /** @type {string} */
    AgentName;
    /** @type {Object} */
    ManagerSignature;
    /** @type {string} */
    ManagerName;
    /** @type {string} */
    ManagerPhone;
    /** @type {string} */
    InspectionDate;
}
export class GetInspectionReportResponse {
    /** @param {{Result?:InspectionReport[],ResponseStatus?:ResponseStatus}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {InspectionReport[]} */
    Result = [];
    /** @type {ResponseStatus} */
    ResponseStatus;
}
export class GetInspectionReport {
    /** @param {{AgentUID?:string,ContactUID?:string,InspectionReportUID?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    AgentUID;
    /** @type {string} */
    ContactUID;
    /** @type {string} */
    InspectionReportUID;
}

JavaScript GetInspectionReport 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.

GET /v1/InspectionReport/{AgentUID}/{ContactUID}/ HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Result: 
	[
		{
			AgentUID: 00000000000000000000000000000000,
			ContactUID: 00000000000000000000000000000000,
			InspectionReportUID: 00000000000000000000000000000000,
			TradeName: String,
			BusinessPhone: String,
			StreetAddress: String,
			ZipCode: String,
			OwnersName: String,
			ComplianceStatus: 0,
			IsBusinessClassABeer: False,
			IsBusinessClassBBeer: False,
			IsBusinessClassALiquor: False,
			IsBusinessClassBLiquor: False,
			IsBusinessClassD: False,
			IsBusinessClassM: False,
			IsBusinessClassP: False,
			IsBusinessClassR: False,
			IsBusinessClassRAH: False,
			ClassBeerAccountNum: String,
			ClassBeerStateNum: String,
			ClassLiquorAccountNum: String,
			ClassLiquorStateNum: String,
			LicensedEmployees: 
			[
				{
					FirstName: String,
					MiddleName: String,
					LastName: String
				}
			],
			AgentName: String,
			ManagerSignature: {},
			ManagerName: String,
			ManagerPhone: String,
			InspectionDate: 0001-01-01
		}
	],
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}