Trendsic Platform Service

<back to all web services

DispatchLaneRateSaveRequest

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

namespace CRM.AgencyPlatform.API.Internal
{
    public partial class DispatchLaneRateSaveRequest
    {
        public virtual DispatchLaneRateView Lane { get; set; }
    }

    public partial class DispatchLaneRateView
    {
        public virtual int? DispatchSiteID { get; set; }
        public virtual int? DispatchSupplierID { get; set; }
        public virtual string SourceLabel { get; set; }
        public virtual string SupplierName { get; set; }
        public virtual int? DispatchLaneRateID { get; set; }
        public virtual decimal? Miles { get; set; }
        public virtual decimal? RatePerTon { get; set; }
        public virtual decimal? RatePerLoad { get; set; }
        public virtual decimal? RatePerTonMile { get; set; }
        public virtual decimal? RatePerHour { get; set; }
    }

    public partial class DispatchPayPlanView
    {
        public virtual int DispatchPayPlanID { get; set; }
        public virtual string Name { get; set; }
        public virtual string Basis { get; set; }
        public virtual decimal Rate { get; set; }
        public virtual decimal? Rate2 { get; set; }
        public virtual DateTime? EffectiveDate { get; set; }
        public virtual bool IsActive { get; set; }
        public virtual int Drivers { get; set; }
    }

    public partial class DispatchRateConfigView
    {
        public virtual decimal FuelSurchargePct { get; set; }
        public virtual decimal TransportPerMile { get; set; }
        public virtual decimal TransportJobMin { get; set; }
        public virtual decimal TransportEnclosedUpliftPct { get; set; }
        public virtual decimal OdBase { get; set; }
        public virtual decimal OdPerBag { get; set; }
        public virtual decimal OdPremiumUpliftPct { get; set; }
        public virtual string HaulBasis { get; set; }
        public virtual string Facility { get; set; }
        public virtual string Unit { get; set; }
        public virtual decimal LoadQty { get; set; }
    }

    public partial class DispatchRatesResponse
    {
        public virtual DispatchRateConfigView Config { get; set; }
        public virtual List<DispatchLaneRateView> Lanes { get; set; } = [];
        public virtual List<DispatchZoneRateView> Zones { get; set; } = [];
        public virtual List<DispatchPayPlanView> Plans { get; set; } = [];
        public virtual int? Repriced { get; set; }
        public virtual int? StillNoRevenue { get; set; }
        public virtual int? StillNoPay { get; set; }
        public virtual ResponseStatus ResponseStatus { get; set; }
    }

    public partial class DispatchZoneRateView
    {
        public virtual string Zone { get; set; }
        public virtual int? DispatchZoneRateID { get; set; }
        public virtual decimal? Base { get; set; }
        public virtual decimal? PerBag { get; set; }
        public virtual decimal? PremiumUpliftPct { get; set; }
        public virtual int Drivers { get; set; }
    }

}

C# DispatchLaneRateSaveRequest DTOs

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

HTTP + JSV

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

PUT /v1/dispatch/rates/lane HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	Lane: 
	{
		DispatchSiteID: 0,
		DispatchSupplierID: 0,
		SourceLabel: String,
		SupplierName: String,
		DispatchLaneRateID: 0,
		Miles: 0,
		RatePerTon: 0,
		RatePerLoad: 0,
		RatePerTonMile: 0,
		RatePerHour: 0
	}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
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-01,
			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
		}
	}
}