Skip to main content

Input OrderImportInput

No description

input OrderImportInput {
stops: [StopImportInput!]!
departureDate: DateTime
tourType: TourType
legViapoints: [LegViapointsInput!]
load: LoadInput
reference: String
comment: String
files: [OrderFilesInput!]
loadingUnits: [OrderLoadingUnitsInput!]
bulkProducts: [OrderImportBulkProductInput!]
subcontractor: ObjectId
vehicle: ObjectId
trailer: ObjectId
driver: ObjectId
customer: ObjectId
additionalDetails: [AdditionalFieldInput!]
cost: Float
price: Float
}

Fields​

OrderImportInput.stops ● [StopImportInput!]! non-null input​

Stops that the driver will have to drive to in order to process the order. Minimum is 2 stops (i.e. pickup & drop).

OrderImportInput.departureDate ● DateTime scalar​

Specifies the planned departure date and time at the first stop of the order. When provided, this value serves as the starting point for time management calculations. Based on the provided departure time, stop time windows, and driving durations between stops, the system automatically calculates the estimated arrival and departure times for all subsequent stops.

OrderImportInput.tourType ● TourType enum​

Defines how route scheduling should treat the tour duration. Defaults to MULTIDAY when omitted.

OrderImportInput.legViapoints ● [LegViapointsInput!] list input​

OrderImportInput.load ● LoadInput input​

Detailed order load information.

OrderImportInput.reference ● String scalar​

Reference number of the order. This is usually internal for the company and not supplied by external customers and third parties. If missing, will be autogenerated based on stop locations and dates. Note: this field is ignored when automatic incremental reference numbers are enabled on the company account — the incremental number is always used in that case.

OrderImportInput.comment ● String scalar​

OrderImportInput.files ● [OrderFilesInput!] list input​

OrderImportInput.loadingUnits ● [OrderLoadingUnitsInput!] list input​

Detailed information about the shipments to be included in this order.

OrderImportInput.bulkProducts ● [OrderImportBulkProductInput!] list input​

Detailed information about the bulk products to be included in this order.

OrderImportInput.subcontractor ● ObjectId scalar​

Reference to the CostprofilesSubcontractor model _id. Has to be a valid ObjectId.

OrderImportInput.vehicle ● ObjectId scalar​

Reference to the CostprofilesVehicle model _id. Has to be a valid ObjectId.

OrderImportInput.trailer ● ObjectId scalar​

Reference to the CostprofilesTrailer model _id. Has to be a valid ObjectId.

OrderImportInput.driver ● ObjectId scalar​

Reference to the CostprofilesDriver model _id. Has to be a valid ObjectId.

OrderImportInput.customer ● ObjectId scalar​

Reference to the CostprofilesCustomer model _id. Has to be a valid ObjectId.

OrderImportInput.additionalDetails ● [AdditionalFieldInput!] list input​

An array of additional data. Can be used to store external order data or reference, custom / company specific data, or data specific to the order execution. The array contains values (can be strings, numbers, or arrays of strings), and labels (strings) used to identify the fields.

OrderImportInput.cost ● Float scalar​

Custom cost for the order. If provided, this will override the calculated cost from the quote. If not provided, the system will use the calculated cost from quote.total.

OrderImportInput.price ● Float scalar​

Price for the order. If provided, this will override the price from the load.price.