Trendsic Platform Service

<back to all web services

DispatchRateConfigSaveRequest

Requires Authentication
The following routes are available for this service:
PUT,OPTIONS/v1/dispatch/rates/config
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports CRM.AgencyPlatform.API.Internal

Namespace Global

    Namespace CRM.AgencyPlatform.API.Internal

        Public Partial Class DispatchLaneRateView
            Public Overridable Property DispatchSiteID As Integer?
            Public Overridable Property DispatchSupplierID As Integer?
            Public Overridable Property SourceLabel As String
            Public Overridable Property SupplierName As String
            Public Overridable Property DispatchLaneRateID As Integer?
            Public Overridable Property Miles As Decimal?
            Public Overridable Property RatePerTon As Decimal?
            Public Overridable Property RatePerLoad As Decimal?
            Public Overridable Property RatePerTonMile As Decimal?
            Public Overridable Property RatePerHour As Decimal?
        End Class

        Public Partial Class DispatchPayPlanView
            Public Overridable Property DispatchPayPlanID As Integer
            Public Overridable Property Name As String
            Public Overridable Property Basis As String
            Public Overridable Property Rate As Decimal
            Public Overridable Property Rate2 As Decimal?
            Public Overridable Property EffectiveDate As Date?
            Public Overridable Property IsActive As Boolean
            Public Overridable Property Drivers As Integer
        End Class

        Public Partial Class DispatchRateConfigSaveRequest
            Public Overridable Property Config As DispatchRateConfigView
        End Class

        Public Partial Class DispatchRateConfigView
            Public Overridable Property FuelSurchargePct As Decimal
            Public Overridable Property TransportPerMile As Decimal
            Public Overridable Property TransportJobMin As Decimal
            Public Overridable Property TransportEnclosedUpliftPct As Decimal
            Public Overridable Property OdBase As Decimal
            Public Overridable Property OdPerBag As Decimal
            Public Overridable Property OdPremiumUpliftPct As Decimal
            Public Overridable Property HaulBasis As String
            Public Overridable Property Facility As String
            Public Overridable Property Unit As String
            Public Overridable Property LoadQty As Decimal
        End Class

        Public Partial Class DispatchRatesResponse
            Public Overridable Property Config As DispatchRateConfigView
            Public Overridable Property Lanes As List(Of DispatchLaneRateView) = New List(Of DispatchLaneRateView)
            Public Overridable Property Zones As List(Of DispatchZoneRateView) = New List(Of DispatchZoneRateView)
            Public Overridable Property Plans As List(Of DispatchPayPlanView) = New List(Of DispatchPayPlanView)
            Public Overridable Property Repriced As Integer?
            Public Overridable Property StillNoRevenue As Integer?
            Public Overridable Property StillNoPay As Integer?
            Public Overridable Property ResponseStatus As ResponseStatus
        End Class

        Public Partial Class DispatchZoneRateView
            Public Overridable Property Zone As String
            Public Overridable Property DispatchZoneRateID As Integer?
            Public Overridable Property Base As Decimal?
            Public Overridable Property PerBag As Decimal?
            Public Overridable Property PremiumUpliftPct As Decimal?
            Public Overridable Property Drivers As Integer
        End Class
    End Namespace
End Namespace

VB.NET DispatchRateConfigSaveRequest 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.

PUT /v1/dispatch/rates/config HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsonl
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}}
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"}}}