Trendsic Platform Service

<back to all web services

CourierProfileCreateRequest

Requires Authentication
The following routes are available for this service:
POST,OPTIONS/v1/dispatch/courier/profiles
CourierProfileCreateRequest Parameters:
NameParameterData TypeRequiredDescription
NamebodystringNo
TemplateKeybodystringNo
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
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
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 .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/courier/profiles HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"Name":"String","TemplateKey":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
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"}}}