post https://integrationgateway.falconflex.ai/api/v1/tasks/create
This API allows for creating a Task. Following are some additional details for some of the body parameters.
TransportType
In order to provide more flexibility, different tasks can be assigned to different modes of transport. The current supported transport type and their IDs are shown in the table below:
Transport Type | transportTypeId |
---|---|
No Preference | 1 |
Bicycle | 2 |
Bike | 3 |
Car | 4 |
Truck | 5 |
PickupLocationTypeId / DeliveryLocationTypeId
Specifies whether the location is an existing location, an international location or a location in Qatar. The values corresponding to each type are:
Location | PickupLocationTypeId / DeliveryLocationTypeId |
---|---|
Existing | 1 |
International | 2 |
Qatar | 3 |
Pickup / Delivery
The value for the pickup or delivery body parameters would depend on pickupLocationTypeId or deliveryLocationTypeId respectively.
LocationTypeId | pickup / delivery |
---|---|
1 | ID of an existing location-point, for example: "63283adc3374eaaba031bfde" |
2 | International Location, for example: { "Address": "Dummy", "Name": "Jhon Doe", "PhoneNumber": "+97400000000", "Latitude": 25.8871, "Longitude": 51.33455, "Notes": "vip" } |
3 | Qatar Location, for example: { "Address": "Dummy", "Name": "Jhon Doe", "PhoneNumber": "+97400000000", "ZoneNumber": 69, "StreetNumber": 349, "BuildingNumber": 28, "Notes": "vip" } |