Trendsic Platform Service

<back to all web services

CourierProfileSaveRequest

Requires Authentication
The following routes are available for this service:
PUT,OPTIONS/v1/dispatch/courier/profiles/{Id}
CourierProfileSaveRequest Parameters:
NameParameterData TypeRequiredDescription
IdpathintNo
DraftbodyCourierProfileViewNo
FacilityCodebodystringNo
CourierProfileView Parameters:
NameParameterData TypeRequiredDescription
CourierProfileIDformintNo
CodeformstringNo
NameformstringNo
BusinessNameformstringNo
RouteShapeformstringNo
EnabledformboolNo
TemplateFromformstringNo
UnitOneformstringNo
UnitManyformstringNo
FacilityNounformstringNo
UnitOneEsformstringNo
UnitManyEsformstringNo
FacilityNounEsformstringNo
TagModeformstringNo
TagFormatsformList<string>No
PayformCourierPayNo
DispatchformCourierDispatchNo
MissedformCourierMissedNo
PrivacyformCourierPrivacyNo
PricingformCourierPricingNo
BookingformCourierBookingNo
FacilitiesformList<CourierFacilityView>No
VehiclesformList<CourierVehicleView>No
ProofformDictionary<string, Dictionary<String,String>>No
ContextformCourierProfileContextNo
CourierPay Parameters:
NameParameterData TypeRequiredDescription
WorkerClassformstringNo
PerPickupformdecimalNo
PerStopformdecimalNo
PerMissedformdecimalNo
PerCancelformdecimalNo
WaitAfterMinformintNo
WaitPerMinformdecimalNo
MileageOnformboolNo
PerMileformdecimalNo
MinPerJobformdecimalNo
TipsPctformdecimalNo
CourierDispatch Parameters:
NameParameterData TypeRequiredDescription
PingSecsformintNo
RadiusMiformdecimalNo
DeclinePenaltyformboolNo
NextRuleformstringNo
GoMinformintNo
LastMinformintNo
NearFullformintNo
MarginMinformintNo
TrafficSourceformstringNo
CourierMissed Parameters:
NameParameterData TypeRequiredDescription
WaitMinformintNo
FeeformdecimalNo
CancelFeeformdecimalNo
AutoRebookformboolNo
RequireContactformboolNo
RequirePhotoformboolNo
CourierPrivacy Parameters:
NameParameterData TypeRequiredDescription
ThreadHrsformintNo
PhotoDaysformintNo
LockNamesformstringNo
HideAddrformboolNo
LiveEtaformboolNo
TippingformboolNo
CourierPricing Parameters:
NameParameterData TypeRequiredDescription
BaseformdecimalNo
PerUnitformdecimalNo
PerMileformdecimalNo
MinOrderformdecimalNo
TaxPctformdecimalNo
FinalAfterCountformboolNo
ServiceAreaformList<string>No
WindowMinformintNo
SurchargesformDictionary<string, decimal>No
CourierBooking Parameters:
NameParameterData TypeRequiredDescription
OnformboolNo
SlugformstringNo
AsapformboolNo
MinLeadMinformintNo
OpenformstringNo
CloseformstringNo
DriveBufferMinformintNo
ZipsformList<string>No
RecurringformboolNo
PayTimingformstringNo
CourierFacilityView Parameters:
NameParameterData TypeRequiredDescription
CodeformstringNo
NameformstringNo
AddressformstringNo
IntakeMinformintNo
LevelsformList<CourierLevelView>No
HolidaysformList<string>No
CourierLevelView Parameters:
NameParameterData TypeRequiredDescription
CodeformstringNo
NameformstringNo
InByformstringNo
WithinMinformintNo
ReadyformstringNo
DaysformList<int>No
IsOnformboolNo
CourierVehicleView Parameters:
NameParameterData TypeRequiredDescription
EquipmentIDformintNo
UnitNumberformstringNo
NameformstringNo
UnitformstringNo
CapformdecimalNo
ColdformboolNo
CourierProfileContext Parameters:
NameParameterData TypeRequiredDescription
DriversformintNo
ProfileCountformintNo
PayPlanIdformint?No
ZoneModeformstringNo
ZoneNameformstringNo
ZoneCountformintNo
HasBookingPageformboolNo
HasRateConfigformboolNo
VehicleFactsformDictionary<string, string>No
CourierResponse Parameters:
NameParameterData TypeRequiredDescription
ProfilesformList<CourierProfileSummary>No
TemplatesformList<CourierTemplateOption>No
ProfileformCourierProfileViewNo
IssuesformList<CourierIssue>No
ChangesformList<CourierChange>No
PreviewformCourierPreviewNo
FleetformList<CourierFleetVehicle>No
ResponseStatusformResponseStatusNo
CourierProfileSummary Parameters:
NameParameterData TypeRequiredDescription
CourierProfileIDformintNo
CodeformstringNo
NameformstringNo
BusinessNameformstringNo
RouteShapeformstringNo
EnabledformboolNo
TemplateFromformstringNo
DriversformintNo
CourierTemplateOption Parameters:
NameParameterData TypeRequiredDescription
KeyformstringNo
LabelformstringNo
DetailformstringNo
RouteShapeformstringNo
CourierIssue Parameters:
NameParameterData TypeRequiredDescription
KeyformstringNo
SectionformstringNo
MessageformstringNo
CourierChange Parameters:
NameParameterData TypeRequiredDescription
KeyformstringNo
SectionformstringNo
LabelformstringNo
FromformstringNo
ToformstringNo
CourierPreview Parameters:
NameParameterData TypeRequiredDescription
DeadlineTitleformstringNo
DeadlineLeadformstringNo
RoomWformstringNo
LastWformstringNo
GoWformstringNo
ZonesformList<CourierPreviewLine>No
PaySubformstringNo
PayRowsformList<CourierPreviewLine>No
PayTotalformstringNo
ProofRowsformList<CourierPreviewLine>No
PingformstringNo
CourierPreviewLine Parameters:
NameParameterData TypeRequiredDescription
KformstringNo
VformstringNo
DotformstringNo
CourierFleetVehicle Parameters:
NameParameterData TypeRequiredDescription
EquipmentIDformintNo
UnitNumberformstringNo
NameformstringNo
VehicleTypeformstringNo
UnitformstringNo
Capformdecimal?No
ColdformboolNo
StatusformstringNo
AssignedformboolNo

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/courier/profiles/{Id} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	Id: 0,
	Draft: 
	{
		CourierProfileID: 0,
		Code: String,
		Name: String,
		BusinessName: String,
		RouteShape: String,
		Enabled: False,
		TemplateFrom: String,
		UnitOne: String,
		UnitMany: String,
		FacilityNoun: String,
		UnitOneEs: String,
		UnitManyEs: String,
		FacilityNounEs: String,
		TagMode: String,
		TagFormats: 
		[
			String
		],
		Pay: 
		{
			WorkerClass: String,
			PerPickup: 0,
			PerStop: 0,
			PerMissed: 0,
			PerCancel: 0,
			WaitAfterMin: 0,
			WaitPerMin: 0,
			MileageOn: False,
			PerMile: 0,
			MinPerJob: 0,
			TipsPct: 0
		},
		Dispatch: 
		{
			PingSecs: 0,
			RadiusMi: 0,
			DeclinePenalty: False,
			NextRule: String,
			GoMin: 0,
			LastMin: 0,
			NearFull: 0,
			MarginMin: 0,
			TrafficSource: String
		},
		Missed: 
		{
			WaitMin: 0,
			Fee: 0,
			CancelFee: 0,
			AutoRebook: False,
			RequireContact: False,
			RequirePhoto: False
		},
		Privacy: 
		{
			ThreadHrs: 0,
			PhotoDays: 0,
			LockNames: String,
			HideAddr: False,
			LiveEta: False,
			Tipping: False
		},
		Pricing: 
		{
			Base: 0,
			PerUnit: 0,
			PerMile: 0,
			MinOrder: 0,
			TaxPct: 0,
			FinalAfterCount: False,
			ServiceArea: 
			[
				String
			],
			WindowMin: 0,
			Surcharges: 
			{
				String: 0
			}
		},
		Booking: 
		{
			On: False,
			Slug: String,
			Asap: False,
			MinLeadMin: 0,
			Open: String,
			Close: String,
			DriveBufferMin: 0,
			Zips: 
			[
				String
			],
			Recurring: False,
			PayTiming: String
		},
		Facilities: 
		[
			{
				Code: String,
				Name: String,
				Address: String,
				IntakeMin: 0,
				Levels: 
				[
					{
						Code: String,
						Name: String,
						InBy: String,
						WithinMin: 0,
						Ready: String,
						Days: 
						[
							0
						],
						IsOn: False
					}
				],
				Holidays: 
				[
					String
				]
			}
		],
		Vehicles: 
		[
			{
				EquipmentID: 0,
				UnitNumber: String,
				Name: String,
				Unit: String,
				Cap: 0,
				Cold: False
			}
		],
		Proof: 
		{
			String: 
			{
				String: String
			}
		},
		Context: 
		{
			Drivers: 0,
			ProfileCount: 0,
			PayPlanId: 0,
			ZoneMode: String,
			ZoneName: String,
			ZoneCount: 0,
			HasBookingPage: False,
			HasRateConfig: False,
			VehicleFacts: 
			{
				String: String
			}
		}
	},
	FacilityCode: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Profiles: 
	[
		{
			CourierProfileID: 0,
			Code: String,
			Name: String,
			BusinessName: String,
			RouteShape: String,
			Enabled: False,
			TemplateFrom: String,
			Drivers: 0
		}
	],
	Templates: 
	[
		{
			Key: String,
			Label: String,
			Detail: String,
			RouteShape: String
		}
	],
	Profile: 
	{
		CourierProfileID: 0,
		Code: String,
		Name: String,
		BusinessName: String,
		RouteShape: String,
		Enabled: False,
		TemplateFrom: String,
		UnitOne: String,
		UnitMany: String,
		FacilityNoun: String,
		UnitOneEs: String,
		UnitManyEs: String,
		FacilityNounEs: String,
		TagMode: String,
		TagFormats: 
		[
			String
		],
		Pay: 
		{
			WorkerClass: String,
			PerPickup: 0,
			PerStop: 0,
			PerMissed: 0,
			PerCancel: 0,
			WaitAfterMin: 0,
			WaitPerMin: 0,
			MileageOn: False,
			PerMile: 0,
			MinPerJob: 0,
			TipsPct: 0
		},
		Dispatch: 
		{
			PingSecs: 0,
			RadiusMi: 0,
			DeclinePenalty: False,
			NextRule: String,
			GoMin: 0,
			LastMin: 0,
			NearFull: 0,
			MarginMin: 0,
			TrafficSource: String
		},
		Missed: 
		{
			WaitMin: 0,
			Fee: 0,
			CancelFee: 0,
			AutoRebook: False,
			RequireContact: False,
			RequirePhoto: False
		},
		Privacy: 
		{
			ThreadHrs: 0,
			PhotoDays: 0,
			LockNames: String,
			HideAddr: False,
			LiveEta: False,
			Tipping: False
		},
		Pricing: 
		{
			Base: 0,
			PerUnit: 0,
			PerMile: 0,
			MinOrder: 0,
			TaxPct: 0,
			FinalAfterCount: False,
			ServiceArea: 
			[
				String
			],
			WindowMin: 0,
			Surcharges: 
			{
				String: 0
			}
		},
		Booking: 
		{
			On: False,
			Slug: String,
			Asap: False,
			MinLeadMin: 0,
			Open: String,
			Close: String,
			DriveBufferMin: 0,
			Zips: 
			[
				String
			],
			Recurring: False,
			PayTiming: String
		},
		Facilities: 
		[
			{
				Code: String,
				Name: String,
				Address: String,
				IntakeMin: 0,
				Levels: 
				[
					{
						Code: String,
						Name: String,
						InBy: String,
						WithinMin: 0,
						Ready: String,
						Days: 
						[
							0
						],
						IsOn: False
					}
				],
				Holidays: 
				[
					String
				]
			}
		],
		Vehicles: 
		[
			{
				EquipmentID: 0,
				UnitNumber: String,
				Name: String,
				Unit: String,
				Cap: 0,
				Cold: False
			}
		],
		Proof: 
		{
			String: 
			{
				String: String
			}
		},
		Context: 
		{
			Drivers: 0,
			ProfileCount: 0,
			PayPlanId: 0,
			ZoneMode: String,
			ZoneName: String,
			ZoneCount: 0,
			HasBookingPage: False,
			HasRateConfig: False,
			VehicleFacts: 
			{
				String: String
			}
		}
	},
	Issues: 
	[
		{
			Key: String,
			Section: String,
			Message: String
		}
	],
	Changes: 
	[
		{
			Key: String,
			Section: String,
			Label: String,
			From: String,
			To: String
		}
	],
	Preview: 
	{
		DeadlineTitle: String,
		DeadlineLead: String,
		RoomW: String,
		LastW: String,
		GoW: String,
		Zones: 
		[
			{
				K: String,
				V: String,
				Dot: String
			}
		],
		PaySub: String,
		PayRows: 
		[
			{
				K: String,
				V: String,
				Dot: String
			}
		],
		PayTotal: String,
		ProofRows: 
		[
			{
				K: String,
				V: String,
				Dot: String
			}
		],
		Ping: String
	},
	Fleet: 
	[
		{
			EquipmentID: 0,
			UnitNumber: String,
			Name: String,
			VehicleType: String,
			Unit: String,
			Cap: 0,
			Cold: False,
			Status: String,
			Assigned: False
		}
	],
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}