Orders
The Orders section provides users with essential functionalities for seamless management of their logistics operations. Customers gain the capability to send new orders or update existing ones.
Orders Object
This object represents how to create a new order, providing its ID and code, in addition to some detailed descriptions like order planning, stops, and suitable vehicles for this order.
Attributes Description
Order Object
Attribute | Data Type | Required | Description |
---|---|---|---|
| String | Required | Unique identifier for the order. |
| String | - | Code associated with the order. |
| String | - | Description of the order. |
| Object | - | Information about the customer. |
| String | - | Date and time when the order was created. |
| String | - | Date and time when the order was last modified. |
| Object | - | Operational status information. |
| Number | - | Planning status of the order. |
| Object | - | Planning group associated with the order. |
| List of key value | - | List of key-value pairs providing additional details. |
| List of tasks | - | List of tasks associated with the order. |
| List of goods | - | List of goods associated with the order. |
| Object | - | Capacity information for the order. |
| Object | - | Allowed vehicle types for the order. |
| Object | - | Allowed vehicles for the order. |
| Object | - | Driver skills required for the order. |
| Object | - | Vehicle characteristics required for the order. |
| Object | - | Trailer characteristics required for the order. |
| Object | - | Compartment details for the order. |
| Object | - | Dimension details for the order. |
| List of pallets | - | List of pallet details for the order. |
| Number | - | Distance for pickup and delivery. |
| Object | - | Extended data providing additional information for the order. |
Customer Object
Customer-specific information.
Attribute | Data Type | Required | Description |
---|---|---|---|
| String | - | Customer identifier. |
| String | - | Customer name. |
| String | - | Type of the customer. |
Planning Group
Represents the planning group name.
Attribute | Data Type | Required | Description |
---|---|---|---|
| String | - | Name of the planning group. |
Details
Order's extra details.
Attribute | Data Type | Required | Description |
---|---|---|---|
key | String | - | Key for the detail. |
value | String | - | Value associated with the key. |
Capacity
Order's capacity.
Attribute | Data Type | Required | Description |
---|---|---|---|
| Number | - | Weight capacity. |
| Number | - | Volume capacity. |
Order Task
Order Task explains the task applied to the order, whether it's a pickup, delivery, or both. It represents the task number, stops, and scheduling time.
Attribute | Data Type | Required | Description |
---|---|---|---|
| String | - | Name of the task. |
| String | - | Reference associated with the task. |
| Number | - | enum takes values: Loading, UnLoading |
| Object | - | Node information associated with the task. |
| Object | - | Schedule information for the task. |
| Number | - | Sequence of the task. |
| Number | - | Priority of the alert for the task. |
| Number | - | Time constraint for clustering tasks. |
| Number | - | Distance constraint for clustering tasks. |
| Number | - | Service time required for the task in minutes. |
| Object | - | Suggested appointment constraints for the order task. |
| Object | - | Booked time constraint for the task. |
Suggested Appointment Time Constraint
Delivering and receiving time constraints suggestion.
Attribute | Data Type | Required | Description |
---|---|---|---|
| Object | - | Information about the suggested time constraint. |
| Object | - | Constraints associated with the suggested time. |
| String | - | Date for the suggested time constraint. |
| List of time slots | - | List of time slots associated with the suggested time. |
| Number | - | Start time for the suggested time slot. |
| Number | - | End time for the suggested time slot. |
Booked Appointment Time Constraint
Delivering and receiving booked time.
Attribute | Data Type | Required | Description |
---|---|---|---|
| Object | - | Information about the booked time constraint. |
| Object | - | Constraints associated with the booked time. |
| String | - | Date for the booked time constraint. |
| List of time slots | - | List of time slots associated with the booked time. |
| Number | - | Start time for the booked time slot. |
| Number | - | End time for the booked time slot. |
| Number | - | Type of constraint associated with the booked time. |
Order Goods
Goods Details.
Attribute | Data Type | Required | Description |
---|---|---|---|
| String | - | Unique identifier for the goods. |
| String | - | Name of the goods. |
| String | - | Code associated with the goods. |
| String | - | Description of the goods. |
| Number | - | Amount of the goods. |
| Object | - | Capacity information for the goods. |
| Object | - | Dimensions information for the goods. |
| Number | - | Service time required for handling the goods in minutes. |
| Object | - | Compartment details for handling the goods. |
| List of pallets | - | List of pallet details for handling the goods. |
Allowed Vehicle Types
Vehicle types constrains.
Attribute | Data Type | Required | Description |
---|---|---|---|
| List of allowed vehicles | - | List of allowed vehicle types and associated details. |
| Number | - | Type of constraint. |
Allowed Vehicles
Vehicle constraints
Attribute | Data Type | Required | Description |
---|---|---|---|
| List of allowed vehicles | - | List of allowed vehicles and associated details. |
| Number | - | Type of constraint. |
Vehicle Characteristics
Vehicles features.
Attribute | Data Type | Required | Description |
---|---|---|---|
| Object | - | Vehicle characteristics constraint and associated details. |
| Number | - | Type of constraint. |
Trailer Characteristics
Trailer features.
Attribute | Data Type | Required | Description |
---|---|---|---|
| Object | - | Trailer characteristics constraint and associated details. |
| Number | - | Type of constraint. |
Compartment
Compartment information.
Attribute | Data Type | Required | Description |
---|---|---|---|
| String | - | Code associated with the compartment. |
| Number | - | Percentage of compartment usage. |
| Number | - | Minimum percentage of compartment volume. |
| Number | - | Maximum percentage of compartment volume. |
Dimension
Object dimensions.
Attribute | Data Type | Required | Description |
---|---|---|---|
| Number | - | Width dimension. |
| Number | - | Length dimension. |
| Number | - | Height dimension. |
Pallets
Pallets information.
Attribute | Data Type | Required | Description |
---|---|---|---|
| String | - | Type of pallet. |
| Number | - | Count of pallets. |
| Boolean | - | Stackability of pallets. |
Driver Skills
Driver skills information.
Attribute | Data Type | Required | Description |
---|---|---|---|
| Object | - | Information related to the driver's skills. |
| Object | - | The constraints associated with driver skills. |
| Boolean | - | Indicates if the driver has a first-degree license. |
| Boolean | - | Indicates if the driver can transport dangerous goods. |
| Boolean | - | Indicates if the driver is a Dutch speaker. |
| Boolean | - | Indicates if the driver is an English speaker. |
| Boolean | - | Indicates if the driver has an ADR |
| Boolean | - | Indicates if the driver has a forklift license. |
| Number | - | The type of constraint associated with driver skills. |
Creation Date
Order creation date
Attribute | Data Type | Required | Description |
---|---|---|---|
| String | - | The date and time when the order was created> |
Last Modified Date
order last modification date
Attribute | Data Type | Required | Description |
---|---|---|---|
| String | - | The date and time when the order was last modified. |
Operational Status
Order's operational staus information
Attribute | Data Type | Required | Description |
---|---|---|---|
| Object | - | The operational status of the order. |
| String | - | The name of the operational status. |
| String | - | The color code in hexadecimal format associated with the operational status. |
Node Type
Node type information
Attribute | Data Type | Required | Description |
---|---|---|---|
| Number | - | This property should take one of 6 values: Depot, Warehouse, Customer Location, Store, Home, Any. |
Location
Node location
Attribute | Data Type | Required | Description |
---|---|---|---|
| Object | Required | The geographical coordinates of the node. |
| Number | - | The longitude coordinate of the node's location. |
| Number | - | The latitude coordinate of the node's location. |
Schedule Info
Schedule constraints information
Attribute | Data Type | Required | Description |
---|---|---|---|
| Object | - | Information related to the schedule constraints. |
| Object | - | The constraints associated with the schedule. |
| List of time windows | - | List of time windows for scheduling. |
| String | - | The date for the time window in "YYYY-MM-DDTHH:mm:ss.sssZ" format. |
| List of time slots | - | List of time slots within the time window. |
| Number | - | The start time of the time slot. |
| Number | - | The end time of the time slot. |
Time Slot
Slot ending and receiving times
Attribute | Data Type | Required | Description |
---|---|---|---|
| Time | - | Start time of the time slot |
| Time | - | End time of the time slot |
Opening Hours
The opening hours object indicates the opening time slots for each day of the week
Attribute | Data Type | Required | Description |
---|---|---|---|
| List of time windows object | - | List of time windows |
| String | - | Day of week |
| List of time slot object | - | Start and end time slots |
Address
The address details of the pickup or delivery node are represented here.
Attribute | Data Type | Required | Description |
---|---|---|---|
| String | - | The street name of the address. |
| String | - | The street number of the address. |
| String | - | The postal code of the address. |
| String | - | The city of the address. |
| String | - | The country of the address. |
| String | - | The zone or region of the address. |
Location
Location requires the longitude and latitude of the node.
Attribute | Data Type | Required | Description |
---|---|---|---|
| Number | Required | The longitude coordinate of the location. |
| Number | Required | The latitude coordinate of the location. |
Constraint Generic Object
Generic object to specify constraint type (hard/soft) that is used to warp another object
Attribute | Data Type | Required | Description |
---|---|---|---|
| List of allowed vehicle type information | Required | List of allowed vehicle type information objects. |
| Number | Required | Type of this constraint 0:Soft 1:Hard |
Operational Status
Order's operational status
Attribute | Data Type | Required | Description |
---|---|---|---|
| Object | - | The operational status of the order. |
| String | - | The name of the operational status. |
| String | - | The color code in hexadecimal format associated with the operational status. |
Pickup/Delivery Distance
Distance between the pickup and the delivery points
Attribute | Data Type | Required | Description |
---|---|---|---|
| Number | - | Distance for pickup |
Extended Data
Customized extra information.
Attribute | Data Type | Required | Description |
---|---|---|---|
| Object | - | Extended data associated with the order. |
| String | - | Suggested driver for the order. |
Descriptive Response Object
This object typically includes key-value pairs, with fields such as "status" indicating the overall success or failure.
Attribute | Data Type | Required | Description |
---|---|---|---|
| String | Yes | The response message. |
| Boolean | Yes | Indicates if an error occurred. |
| String | - | The error message (if IsErrorState is true). |
| String | - | The error code (if IsErrorState is true). |
Available Endpoints
Send Order
POST
https://api.normalive.ai/SendOrder
This endpoint will add a new order if its ID doesn’t exist and will update it if it already exists.
Headers
Name | Type | Description |
---|---|---|
authentication * | String | Bearer token acquired after authentication |
Request Body
Name | Type | Description |
---|---|---|
Order* | Object | Order Object |
Example
In this example, an invalid order ID was used, so the user got an error response from the system.
Response Error
Delete Order
POST
https://api.normalive.ai/DeleteOrder
Endpoint for deleting orders.
Headers
Name | Type | Description |
---|---|---|
authentication * | String | Bearer token acquired after authentication |
Request Body
Name | Type | Description |
---|---|---|
ID* | String | Order ID |
Code* | String | Order Code |
Update Order Status
POST
https://api.normalive.ai/UpdateOrderStatus
This endpoint is for order status updates.
Headers
Name | Type | Description |
---|---|---|
authentication * | String | Bearer token acquired after authentication |
Request Body
Name | Type | Description |
---|---|---|
OrderID* | String | Unique identifier for the order |
OrderStatusWithColor* | String | Unique identifier for the order |
StatusName* | String | Name of the order status |
StatusColorInHexa | String | Color code of the order status in hexadecimal format |
Acknowledge Order Dispatch
POST
https://api.normalive.ai/AcknowledgeOrderDispatch
Acknowledge the order dispatching in a working set.
Headers
Name | Type | Description |
---|---|---|
authentication * | String | Bearer token acquired after authentication |
Request Body
Name | Type | Description |
---|---|---|
WorkingsetID* | String | Unique identifier for the working set |
TourID* | String | Unique identifier for the tour |
StopID* | String | Unique identifier for the stop |
OrderID* | String | Unique identifier for the order |
OrderTaskID* | String | Unique identifier for the order task |
Acknowledge Order Un-Dispatch
POST
https://api.normalive.ai/AcknowledgeOrderUnDispatch
Un-dispatching order acknowledgement in a working set
Headers
Name | Type | Description |
---|---|---|
authentication * | String | Bearer token acquired after authentication |
Request Body
Name | Type | Description |
---|---|---|
OrderID* | String | Unique identifier for the order |
StopID* | String | Unique identifier for the stop |
TourID* | String | Unique identifier for the tour |
WorkingsetID* | String | Unique identifier for the working set |
OrderTaskID* | String | Unique identifier for the order task |
Update Order Planning Status
POST
https://api.normalive.ai/UpdateOrderPlanningStatus
Update the user with the planning status of the order.
Headers
Name | Type | Description |
---|---|---|
authentication * | String | Bearer token acquired after authentication |
Request Body
Name | Type | Description |
---|---|---|
OrderID* | String | Unique identifier for the order |
PlanningStatusEnum* | Number | Planning status of order Values (New, Planned, Dispatched, OnProcess, Executed, Cancelled) |
Update Trailer For Order Task
POST
https://api.normalive.ai/UpdateTrailerForOrderTask
Update the user with order task of the trailer
Headers
Name | Type | Description |
---|---|---|
authentication * | String | Bearer token acquired after authentication |
Request Body
Name | Type | Description |
---|---|---|
WorkingsetId* | String | Identifier for the work set |
TourId* | String | Identifier for the tour |
StopId* | String | Identifier for the stop |
OrderID* | String | Identifier for the order |
OrderTaskID* | String | Identifier for the task |
Id* | String | Identifier for the trail |
PlateNumber* | String | Plate number of the trailer |
Code* | String | Specific code for the trailer |
TrailerType* | Object | Details about the trailer type |
Capacity* | Object | Weight and volume capacity of the trailer |
TrailerCharacteristics | Object |
Last updated