Trendsic Platform Service

<back to all web services

DispatchQuoteRequest

The following routes are available for this service:
GET,OPTIONS/v1/dispatch/quote/{Token}/json
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class DispatchQuoteRequest
    {
        public String Token = null;
        
        public String getToken() { return Token; }
        public DispatchQuoteRequest setToken(String value) { this.Token = value; return this; }
    }

    public static class DispatchQuoteResponse
    {
        public DispatchQuoteView Quote = null;
        public ResponseStatus ResponseStatus = null;
        
        public DispatchQuoteView getQuote() { return Quote; }
        public DispatchQuoteResponse setQuote(DispatchQuoteView value) { this.Quote = value; return this; }
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public DispatchQuoteResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
    }

    public static class DispatchQuoteView
    {
        public String Code = null;
        public String CustomerName = null;
        public String Cargo = null;
        public Integer Units = null;
        public String FromLoc = null;
        public String ToLoc = null;
        public Integer Miles = null;
        public String WindowText = null;
        public Boolean IsUrgent = null;
        public Integer LoadsNeeded = null;
        public Integer UnitsPerTruck = null;
        public BigDecimal RatePerLoad = null;
        public BigDecimal UrgencyPct = null;
        public BigDecimal QuoteTotal = null;
        public Integer QuoteVersion = null;
        public String Status = null;
        public Date QuotedUtc = null;
        public Date ExpiresUtc = null;
        
        public String getCode() { return Code; }
        public DispatchQuoteView setCode(String value) { this.Code = value; return this; }
        public String getCustomerName() { return CustomerName; }
        public DispatchQuoteView setCustomerName(String value) { this.CustomerName = value; return this; }
        public String getCargo() { return Cargo; }
        public DispatchQuoteView setCargo(String value) { this.Cargo = value; return this; }
        public Integer getUnits() { return Units; }
        public DispatchQuoteView setUnits(Integer value) { this.Units = value; return this; }
        public String getFromLoc() { return FromLoc; }
        public DispatchQuoteView setFromLoc(String value) { this.FromLoc = value; return this; }
        public String getToLoc() { return ToLoc; }
        public DispatchQuoteView setToLoc(String value) { this.ToLoc = value; return this; }
        public Integer getMiles() { return Miles; }
        public DispatchQuoteView setMiles(Integer value) { this.Miles = value; return this; }
        public String getWindowText() { return WindowText; }
        public DispatchQuoteView setWindowText(String value) { this.WindowText = value; return this; }
        public Boolean getIsUrgent() { return IsUrgent; }
        public DispatchQuoteView setIsUrgent(Boolean value) { this.IsUrgent = value; return this; }
        public Integer getLoadsNeeded() { return LoadsNeeded; }
        public DispatchQuoteView setLoadsNeeded(Integer value) { this.LoadsNeeded = value; return this; }
        public Integer getUnitsPerTruck() { return UnitsPerTruck; }
        public DispatchQuoteView setUnitsPerTruck(Integer value) { this.UnitsPerTruck = value; return this; }
        public BigDecimal getRatePerLoad() { return RatePerLoad; }
        public DispatchQuoteView setRatePerLoad(BigDecimal value) { this.RatePerLoad = value; return this; }
        public BigDecimal getUrgencyPct() { return UrgencyPct; }
        public DispatchQuoteView setUrgencyPct(BigDecimal value) { this.UrgencyPct = value; return this; }
        public BigDecimal getQuoteTotal() { return QuoteTotal; }
        public DispatchQuoteView setQuoteTotal(BigDecimal value) { this.QuoteTotal = value; return this; }
        public Integer getQuoteVersion() { return QuoteVersion; }
        public DispatchQuoteView setQuoteVersion(Integer value) { this.QuoteVersion = value; return this; }
        public String getStatus() { return Status; }
        public DispatchQuoteView setStatus(String value) { this.Status = value; return this; }
        public Date getQuotedUtc() { return QuotedUtc; }
        public DispatchQuoteView setQuotedUtc(Date value) { this.QuotedUtc = value; return this; }
        public Date getExpiresUtc() { return ExpiresUtc; }
        public DispatchQuoteView setExpiresUtc(Date value) { this.ExpiresUtc = value; return this; }
    }

}

Java DispatchQuoteRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

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: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<DispatchQuoteResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Quote>
    <Cargo>String</Cargo>
    <Code>String</Code>
    <CustomerName>String</CustomerName>
    <ExpiresUtc>0001-01-01T00:00:00</ExpiresUtc>
    <FromLoc>String</FromLoc>
    <IsUrgent>false</IsUrgent>
    <LoadsNeeded>0</LoadsNeeded>
    <Miles>0</Miles>
    <QuoteTotal>0</QuoteTotal>
    <QuoteVersion>0</QuoteVersion>
    <QuotedUtc>0001-01-01T00:00:00</QuotedUtc>
    <RatePerLoad>0</RatePerLoad>
    <Status>String</Status>
    <ToLoc>String</ToLoc>
    <Units>0</Units>
    <UnitsPerTruck>0</UnitsPerTruck>
    <UrgencyPct>0</UrgencyPct>
    <WindowText>String</WindowText>
  </Quote>
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Meta>
  </ResponseStatus>
</DispatchQuoteResponse>