| GET,OPTIONS | /v1/dispatch/quote/{Token}/json |
|---|
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 DispatchQuoteRequest
{
public virtual string Token { 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; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/dispatch/quote/{Token}/json HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
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
}
}
}