Trendsic Platform Service

<back to all web services

DispatchRepriceRequest

Requires Authentication
The following routes are available for this service:
POST,OPTIONS/v1/dispatch/rates/reprice
import Foundation
import ServiceStack

public class DispatchRepriceRequest : Codable
{
    required public init(){}
}

public class DispatchRatesResponse : Codable
{
    public var config:DispatchRateConfigView
    public var lanes:[DispatchLaneRateView] = []
    public var zones:[DispatchZoneRateView] = []
    public var plans:[DispatchPayPlanView] = []
    public var repriced:Int?
    public var stillNoRevenue:Int?
    public var stillNoPay:Int?
    public var responseStatus:ResponseStatus

    required public init(){}
}

public class DispatchRateConfigView : Codable
{
    public var fuelSurchargePct:Double
    public var transportPerMile:Double
    public var transportJobMin:Double
    public var transportEnclosedUpliftPct:Double
    public var odBase:Double
    public var odPerBag:Double
    public var odPremiumUpliftPct:Double
    public var haulBasis:String
    public var facility:String
    public var unit:String
    public var loadQty:Double

    required public init(){}
}

public class DispatchLaneRateView : Codable
{
    public var dispatchSiteID:Int?
    public var dispatchSupplierID:Int?
    public var sourceLabel:String
    public var supplierName:String
    public var dispatchLaneRateID:Int?
    public var miles:Double?
    public var ratePerTon:Double?
    public var ratePerLoad:Double?
    public var ratePerTonMile:Double?
    public var ratePerHour:Double?

    required public init(){}
}

public class DispatchZoneRateView : Codable
{
    public var zone:String
    public var dispatchZoneRateID:Int?
    public var base:Double?
    public var perBag:Double?
    public var premiumUpliftPct:Double?
    public var drivers:Int

    required public init(){}
}

public class DispatchPayPlanView : Codable
{
    public var dispatchPayPlanID:Int
    public var name:String
    public var basis:String
    public var rate:Double
    public var rate2:Double?
    public var effectiveDate:Date?
    public var isActive:Bool
    public var drivers:Int

    required public init(){}
}


Swift DispatchRepriceRequest DTOs

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

HTTP + OTHER

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

POST /v1/dispatch/rates/reprice HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"Config":{"FuelSurchargePct":0,"TransportPerMile":0,"TransportJobMin":0,"TransportEnclosedUpliftPct":0,"OdBase":0,"OdPerBag":0,"OdPremiumUpliftPct":0,"HaulBasis":"String","Facility":"String","Unit":"String","LoadQty":0},"Lanes":[{"DispatchSiteID":0,"DispatchSupplierID":0,"SourceLabel":"String","SupplierName":"String","DispatchLaneRateID":0,"Miles":0,"RatePerTon":0,"RatePerLoad":0,"RatePerTonMile":0,"RatePerHour":0}],"Zones":[{"Zone":"String","DispatchZoneRateID":0,"Base":0,"PerBag":0,"PremiumUpliftPct":0,"Drivers":0}],"Plans":[{"DispatchPayPlanID":0,"Name":"String","Basis":"String","Rate":0,"Rate2":0,"EffectiveDate":"0001-01-01T00:00:00.0000000","IsActive":false,"Drivers":0}],"Repriced":0,"StillNoRevenue":0,"StillNoPay":0,"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}