Delivery
getDelivery
GET https://api.beefast.eu/v2/delivery/:id
Get a delivery by id
Path Parameters
id*
string
The DeliveryRequest id
Headers
Authorization*
string
The authorization header. Format: Bearer TOKEN
{
"getDelivery": {
"cashOnDeliveryAmount": 0,
"createdAt": 1662927738,
"distance": 6079,
"weightKg": 0,
"dropoffPlace": {
"addressDetails": "",
"contactPhoneNumber": "+40712345678",
"name": "Dropoff Name",
"streetAddress": "Bulevardul Unirii 1, Bucharest, Romania",
"geolocation": {
"latitude": 44.42564470000001,
"longitude": 26.1036792
}
},
"id": "VM1TAklWcvuLCX2KkLV5__deliv__12xnD5VF7vySV5Lqq3RR",
"pickupPlace": {
"addressDetails": "casa",
"contactPhoneNumber": "+40712345679",
"name": "Pickup Place",
"streetAddress": "Bulevardul Unirii 5, Bucharest, Romania",
"geolocation": {
"latitude": 44.42574470000001,
"longitude": 26.1136792
}
},
"status": "UNASSIGNED",
"isReturn": false,
"returnFor": null,
"returnDeliveryID": null,
"client": {
"id": "VM1TAklWcvuLCX2KkLV5__client__AwYx5uUjDPtJGrf44dYc",
"name": "Client Name"
},
"agent": {
"id": "VM1TAklWcvuLCX2KkLV5__agent__AdsasjDPtJseraYc",
"name": "Agent Name"
}
}
}getAllDeliveries
GET https://api.beefast.eu/v2/delivery
Get all the deliveries for the authenticated client.
Headers
Authorization
string
The authorization header. Format: Bearer TOKEN
createDelivery
POST https://api.beefast.eu/v2/delivery
Request a delivery between two Places
Headers
Authorization
string
The authorization header. Format: Bearer TOKEN
Request Body
delivery*
object
A CreateDeliveryInput object
cancelDelivery
POST https://api.beefast.eu/v2/delivery/:id/cancel
Cancel a delivery by id
Path Parameters
id*
string
The delivery id
Headers
Authorization
string
The authorization header. Format: Bearer TOKEN
Request Body
reason*
string
A brief description provided by the client or system explaining the reason for the cancellation
reasonCode*
A code that identifies the standardized reason for cancellation.
Cancel Reason Codes
NOTDELIV_UNABLE
NOTDELIV_ADDRESS
NOTDELIV_REJECT
NOTDELIV_NOTPAY
NOTDELIV_LATE
NOTDELIV_CANCEL
NOTDELIV_OTHER
DELIV_INTERNAL
Last updated