Working Status Changed Webhook
This webhook is called when a courier changes its working status.
Every webhook contain a header named x-qdelivery-signature which contains a HMAC signature of combination of payload_id as data/message and your secret as the key. You can validate the payload by using HMAC with SHA256 algorithm:
Algorithm: sha256
Message: {webhook payload_id}
Key: {your secret key}
{
"event": "courier_working_status_updated",
"payload_id": "9d2c2ea3-c11b-4e1f-b66a-48ae41cd903e",
"courier": {
"id": 608,
"name": "Ahmet Demir",
"avatar_url": "https://qdelivery-api.test/images/avatar.png",
"phone_country": "TR",
"phone": "+905431112233",
"courier_detail": {
"code": null,
"vehicle_license_plate": null,
"vehicle_type": "Motorcycle",
"vehicle_type_slug": "motorcycle",
"vehicle_description": null,
"vehicle_color": null,
"capacity": 10,
"pool_capacity": 1,
"vehicle_icon": "https://qdelivery-api.test/images/vehicle-icons/motorcycle.png"
},
"courier_location": {
"is_online": true,
"is_working": true,
"on_duty": false,
"lat": 40.934218,
"lng": 29.247024,
"last_seen_at": "2022-06-14T08:02:15.000000Z"
}
},
"hubs": [
{
"id": 1,
"integration_id": "A2",
"name": "Anadolu Depo",
"couriers_count": 303,
"teams": [
{
"id": 4,
"integration_id": null,
"name": "Anadolu Takımı",
"couriers_count": 303,
"couriers_count_details": {
"total": 303,
"online": 168,
"offline": 135,
"working": 1,
"resting": 302,
"on_duty": 1,
"idle": 302,
"fully_loaded": 2,
"has_capacity": 287,
"unloaded": 298,
"unlimited_capacity": 12
}
},
{
"id": 9,
"integration_id": null,
"name": "Motokuryeler",
"couriers_count": 0,
"couriers_count_details": {
"total": 0,
"online": 0,
"offline": 0,
"working": 0,
"resting": 0,
"on_duty": 0,
"idle": 0,
"fully_loaded": 0,
"has_capacity": 0,
"unloaded": 0,
"unlimited_capacity": 0
}
},
{
"id": 10,
"integration_id": null,
"name": "Araç Kuryeler",
"couriers_count": 0,
"couriers_count_details": {
"total": 0,
"online": 0,
"offline": 0,
"working": 0,
"resting": 0,
"on_duty": 0,
"idle": 0,
"fully_loaded": 0,
"has_capacity": 0,
"unloaded": 0,
"unlimited_capacity": 0
}
}
]
}
]
}