Trendsic Platform Service

<back to all web services

VisitExceptionsRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/visits/exceptions
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 ExceptionItem
    {
        public virtual string Kind { get; set; }
        public virtual string VisitKey { get; set; }
        public virtual int JobID { get; set; }
        public virtual int ProjectID { get; set; }
        public virtual int? AgreementID { get; set; }
        public virtual int? AgreementJobID { get; set; }
        public virtual string OccurrenceDate { get; set; }
        public virtual string CustomerName { get; set; }
        public virtual string LocationName { get; set; }
        public virtual string City { get; set; }
        public virtual double? Lat { get; set; }
        public virtual double? Lng { get; set; }
        public virtual int AgeDays { get; set; }
        public virtual string Reason { get; set; }
        public virtual int DurationMinutes { get; set; }
        public virtual bool IsCommercial { get; set; }
        public virtual int? PreferredCrewID { get; set; }
    }

    public partial class VisitExceptionsRequest
    {
    }

    public partial class VisitExceptionsResponse
    {
        public virtual List<ExceptionItem> Items { get; set; } = [];
        public virtual int MissedCount { get; set; }
        public virtual int SlaCount { get; set; }
        public virtual int SkippedCount { get; set; }
        public virtual int AtRiskCount { get; set; }
        public virtual ResponseStatus ResponseStatus { get; set; }
    }

}

C# VisitExceptionsRequest 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/visits/exceptions HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Items: 
	[
		{
			Kind: String,
			VisitKey: String,
			JobID: 0,
			ProjectID: 0,
			AgreementID: 0,
			AgreementJobID: 0,
			OccurrenceDate: String,
			CustomerName: String,
			LocationName: String,
			City: String,
			Lat: 0,
			Lng: 0,
			AgeDays: 0,
			Reason: String,
			DurationMinutes: 0,
			IsCommercial: False,
			PreferredCrewID: 0
		}
	],
	MissedCount: 0,
	SlaCount: 0,
	SkippedCount: 0,
	AtRiskCount: 0,
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}