Business Update Delivery
NB: Only deliveries that are not running can be canncelled. That is deliveries with status PENDING,AGENCY_ASSIGNED,REASSIGNED and PICKUP
Authorizations
Query parameters
app_keystringRequired
Responses
200
Delivery Cancelled
application/json
Responseall of
400
Delivery not found
500
Get Delivery Failed
put
PUT /delivery/cancel-delivery HTTP/1.1
Host: test.swooveapi.com
Accept: */*
{
"success": true,
"code": 200,
"message": "Delivery Cancelled",
"responses": {
"pickup": {
"type": "text",
"value": "text",
"contact": {
"name": "text",
"mobile": "text",
"email": "text"
},
"country_code": "GH",
"lat": 1,
"lng": 1,
"location": "text"
},
"dropoff": {
"type": "text",
"value": "text",
"contact": {
"name": "text",
"mobile": "text",
"email": "text"
},
"country_code": "GH",
"lat": 1,
"lng": 1,
"location": "text"
},
"items": [
{
"itemName": "text",
"itemQuantity": 1,
"itemCost": 1,
"description": "text",
"itemWeight": 1,
"is_fragile": false,
"dimensions": {
"x": 1,
"y": 1,
"z": 1
}
}
],
"instructions": "text",
"reference": "text",
"status": "PENDING",
"delivery_code": "text",
"secret_code": "text",
"end_time": 1,
"full_price": {
"discount": 0,
"value": 0,
"currency_code": "GHS",
"currency_symbol": "₵",
"currency_name": "Ghanaian cedi"
},
"time_completed": 1
}
}
Was this helpful?