OrderImportInput
No description
input OrderImportInput {
stops: [StopImportInput!]!
departureDate: DateTime
legViapoints: [LegViapointsInput!]
load: LoadInput
reference: String
comment: String
files: [OrderFilesInput!]
loadingUnits: [OrderLoadingUnitsInput!]
subcontractor: ObjectId
vehicle: ObjectId
driver: ObjectId
customer: ObjectId
additionalDetails: [AdditionalFieldInput!]
cost: 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.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.
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.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.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.