| GET,OPTIONS | /v1/dispatch/quote/{Token}/json |
|---|
namespace CRM.AgencyPlatform.API.Internal
open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type DispatchQuoteView() =
member val Code:String = null with get,set
member val CustomerName:String = null with get,set
member val Cargo:String = null with get,set
member val Units:Int32 = new Int32() with get,set
member val FromLoc:String = null with get,set
member val ToLoc:String = null with get,set
member val Miles:Nullable<Int32> = new Nullable<Int32>() with get,set
member val WindowText:String = null with get,set
member val IsUrgent:Boolean = new Boolean() with get,set
member val LoadsNeeded:Nullable<Int32> = new Nullable<Int32>() with get,set
member val UnitsPerTruck:Nullable<Int32> = new Nullable<Int32>() with get,set
member val RatePerLoad:Nullable<Decimal> = new Nullable<Decimal>() with get,set
member val UrgencyPct:Decimal = new Decimal() with get,set
member val QuoteTotal:Nullable<Decimal> = new Nullable<Decimal>() with get,set
member val QuoteVersion:Int32 = new Int32() with get,set
member val Status:String = null with get,set
member val QuotedUtc:Nullable<DateTime> = new Nullable<DateTime>() with get,set
member val ExpiresUtc:Nullable<DateTime> = new Nullable<DateTime>() with get,set
[<AllowNullLiteral>]
type DispatchQuoteResponse() =
member val Quote:DispatchQuoteView = null with get,set
member val ResponseStatus:ResponseStatus = null with get,set
[<AllowNullLiteral>]
type DispatchQuoteRequest() =
member val Token:String = null with get,set
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
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/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
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-01T00:00:00.0000000","ExpiresUtc":"0001-01-01T00:00:00.0000000"},"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}