Create delivery
The new API v1.0 allows you to create deliveries through a unique endpoint. See also different ways you can connect our service to your internal systems.
Endpoint
Request
Property | Type | Description | Required | Constraints |
---|---|---|---|---|
companyId | string | In the case of having daughter companies, you can query each of them with the same auth but changing this field. In case of having only one associated company, this field is not necessary. | NO | |
deliveries | array of Delivery | Arrangement of deliveries which requires create | YES | |
type | string | Quote type | NO | Can be "slot", "flex", "express". |
Response
Property | Type | Description |
---|---|---|
code | string | code description |
message | string | Result details |
payload | array | Arrangement of data deliveries which you created. |
payload.id | string | Id of the task created within the system |
payload.index | number | Position of the delivery in the sent payload. |
payload.price | number | Price for that particular delivery. |
payload.currencyCode | string | Currency in which the price is in. |
payload.distance | number | Distance between the pickup point and the delivery point for this task. |
payload.cityId | number | Id of the pickup city within the system |
payload.destinationCityId | number | Id of the dropoff city within the system |
payload.insurance | number | Insurance for that particular delivery. |
payload.statusDelivery | string | Status of the delivery, it can be "processing" if the task is OK or "pending review" if the task fails to geolocate. |
payload.vehicleCapacity | number | Type of vehicle to carry out this task, from bike to truck (1-5). |
payload.deliveryDate | string | Estimated delivery date |
payload.trackLink | string | Tracking link for the task |
payload.referenceId | string | Reference Id for the task |