Trendsic Platform Service

<back to all web services

CourierBookQuoteRequest

The following routes are available for this service:
POST,OPTIONS/v1/book/{Slug}/quote
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*


open class CourierBookQuoteRequest
{
    open var Slug:String? = null
    open var Profile:String? = null
    open var Level:String? = null
    open var Units:Int? = null
    open var Zip:String? = null
    open var Lat:BigDecimal? = null
    open var Lng:BigDecimal? = null
    open var DropLat:BigDecimal? = null
    open var DropLng:BigDecimal? = null
}

open class CourierBookQuoteResponse
{
    open var Zone:String? = null
    open var Miles:BigDecimal? = null
    open var Lines:ArrayList<CourierBookQuoteLine> = ArrayList<CourierBookQuoteLine>()
    open var Total:BigDecimal? = null
    open var ResponseStatus:ResponseStatus? = null
}

open class CourierBookQuoteLine
{
    open var Kind:String? = null
    open var Amount:BigDecimal? = null
    open var Qty:BigDecimal? = null
    open var Rate:BigDecimal? = null
}

Kotlin CourierBookQuoteRequest DTOs

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

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /v1/book/{Slug}/quote HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"Slug":"String","Profile":"String","Level":"String","Units":0,"Zip":"String","Lat":0,"Lng":0,"DropLat":0,"DropLng":0}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"Zone":"String","Miles":0,"Lines":[{"Kind":"String","Amount":0,"Qty":0,"Rate":0}],"Total":0,"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}