Trendsic Platform Service

<back to all web services

DispatchQuoteAnswerRequest

The following routes are available for this service:
POST,OPTIONS/v1/dispatch/quote/{Token}/answer
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 DispatchQuoteAnswerRequest
    {
        public virtual string Token { get; set; }
        public virtual bool Accept { get; set; }
        public virtual string Reason { get; set; }
    }

    public partial class DispatchQuoteResponse
    {
        public virtual DispatchQuoteView Quote { get; set; }
        public virtual ResponseStatus ResponseStatus { get; set; }
    }

    public partial class DispatchQuoteView
    {
        public virtual string Code { get; set; }
        public virtual string CustomerName { get; set; }
        public virtual string Cargo { get; set; }
        public virtual int Units { get; set; }
        public virtual string FromLoc { get; set; }
        public virtual string ToLoc { get; set; }
        public virtual int? Miles { get; set; }
        public virtual string WindowText { get; set; }
        public virtual bool IsUrgent { get; set; }
        public virtual int? LoadsNeeded { get; set; }
        public virtual int? UnitsPerTruck { get; set; }
        public virtual decimal? RatePerLoad { get; set; }
        public virtual decimal UrgencyPct { get; set; }
        public virtual decimal? QuoteTotal { get; set; }
        public virtual int QuoteVersion { get; set; }
        public virtual string Status { get; set; }
        public virtual DateTime? QuotedUtc { get; set; }
        public virtual DateTime? ExpiresUtc { get; set; }
    }

}

C# DispatchQuoteAnswerRequest 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/dispatch/quote/{Token}/answer HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

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

{
	Quote: 
	{
		Code: String,
		CustomerName: String,
		Cargo: String,
		Units: 0,
		FromLoc: String,
		ToLoc: String,
		Miles: 0,
		WindowText: String,
		IsUrgent: False,
		LoadsNeeded: 0,
		UnitsPerTruck: 0,
		RatePerLoad: 0,
		UrgencyPct: 0,
		QuoteTotal: 0,
		QuoteVersion: 0,
		Status: String,
		QuotedUtc: 0001-01-01,
		ExpiresUtc: 0001-01-01
	},
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}