The Order Rejected By Driver callback occurs when an order is rejected by a driver. This returns detailed information describing the order, including the driver and status.
Register Your URL for this Webhook
To start receiving webhooks from Bringg, you must first register a URL. Detailed guidance on setting up and managing Bringg webhooks is available in the following resources:
- Send Bringg Webhooks: Subscribe to webhooks and customize the fields in your callbacks.
- Webhook Authentication Methods: Ensure that your other systems recognize and accept webhooks from Bringg.
Response
{
"id": 8915424,
"title": "65 cases of milk and 10 boxes of bread",
"created_at": "2017-12-24T16:50:30.107Z",
"updated_at": "2017-12-24T17:05:08.773Z",
"customer_id": 4652688,
"user_id": null,
"status": "TASK_REJECTED",
"scheduled_at": "2017-12-24T19:10:00.000Z",
"merchant_id": 11271,
"active_way_point_id": 11108526,
"extras": null,
"webhooks": null,
"way_points": [
{
"id": 11108526,
"lat": 40.442228,
"lng": -80.003107,
"task_id": 8915424,
"done": false,
"created_at": "2017-12-24T16:50:30.021Z",
"updated_at": "2017-12-24T16:58:42.342Z",
"customer_id": 4652688,
"address": "120 Fifth Ave, Pittsburgh, PA 15222, USA",
"position": 1,
"scheduled_at": "2017-12-24T19:10:00.000Z",
"checkin_time": null,
"checkout_time": null,
"note": null,
"find_me": null,
"asap": null,
"late": false,
"eta": null,
"etl": "2017-12-24T17:23:44.628Z",
"silent": false,
"phone": "+9724121234567",
"email": "[email protected]",
"delete_at": null,
"checkin_lat": null,
"checkin_lng": null,
"checkout_lat": null,
"checkout_lng": null,
"etos": 300,
"distance_traveled_client": null,
"distance_traveled_server": null,
"automatically_checked_in": 0,
"automatically_checked_out": 0,
"merchant_id": 11271,
"start_lat": 32.0939782,
"start_lng": 34.8283123,
"start_time": "2017-12-24T16:56:03.000Z",
"estimated_distance": null,
"estimated_time": null,
"allow_editing_inventory": true,
"must_approve_inventory": false,
"address_second_line": "Annex B",
"zipcode": null,
"allow_scanning_inventory": null,
"allow_editing_payment": null,
"late_reason": null,
"no_later_than": null,
"no_earlier_than": null,
"masked_phone_number": null,
"twilio_number_id": null,
"marked_late_at": null,
"borough": null,
"city": null,
"distance_traveled": null,
"state": null,
"delivery_confirmation_scan": null,
"delivery_confirmation_note": null,
"delivery_confirmation_photo": null,
"delivery_confirmation_signature": null,
"delivery_confirmation_form": null,
"delivery_confirmation_ocr": null,
"company_name": null,
"customer_contact_ids": [
4652688
],
"contacts": [
{
"customer_id": 4652688,
"contact_type": "phone",
"contact_value": "+9724121234567",
"sharing_allowed": true
},
{
"customer_id": 4652688,
"contact_type": "email",
"contact_value": "[email protected]",
"sharing_allowed": false
}
],
"allow_editing_original_quantity": null,
"pickup_dropoff_option": null,
"delivery_confirmation_cash": null,
"district": null,
"house_number": null,
"street": null,
"pending_geocode": false,
"original_eta": null,
"allow_automatic_set_coordinates": true,
"has_to_leave_by": null,
"customer": {
"id": 4652688,
"name": "Beverage Brothers",
"address": "120 Fifth Ave, Pittsburgh, PA 15222, USA",
"lat": 40.442228,
"lng": -80.003107,
"created_at": "2017-12-11T17:19:06.856Z",
"updated_at": "2017-12-24T16:50:30.125Z",
"phone": "+9724121234567",
"merchant_id": 11271,
"image": "/images/avatar.png",
"access_token": "84b2bd59-71f6-4c97-8a8a-1b6698d6e34a",
"confirmation_code": "7454",
"salt": null,
"approved": false,
"push_token": null,
"uuid": "0885ddb9-c943-4ef5-98f2-9db7f02e6d13",
"email": "[email protected]",
"external_id": "4652688",
"delete_at": null,
"facebook_id": null,
"extras": null,
"original_lat_lng_changed": "2017-12-12T11:47:49.499Z",
"encrypted_password": "",
"blocked_email": true,
"address_second_line": "Annex B",
"zipcode": null,
"allow_login": false,
"stripe_id": null,
"original_phone_number": "412-123-4567",
"last_open_at": null,
"last_order_at": null,
"uploaded_profile_image": {
"url": "/images/avatar.png"
},
"original_lat": 40.442228,
"original_lng": -80.003107,
"consecutive_checkins_out_of_geofence": 1,
"allow_sending_email": true,
"allow_sending_sms": true,
"reset_password_token": null,
"reset_password_sent_at": null,
"mobile_version": null,
"mobile_type": 0,
"mobile_maker": null,
"client_version": null,
"client_name": null,
"city": null,
"borough": null,
"state": null,
"dev": false,
"business_code": null,
"language": null,
"district": null,
"house_number": null,
"street": null,
"allow_dynamically_updating_location": null
},
"full_address": "120 Fifth Ave, Pittsburgh, PA 15222, USA"
},
{
"id": 11108527,
"lat": 40.4417274,
"lng": -80.0027365,
"task_id": 8915424,
"done": false,
"created_at": "2017-12-24T16:50:30.072Z",
"updated_at": "2017-12-24T16:50:30.133Z",
"customer_id": 4647476,
"address": "95 Fifth Ave, Pittsburgh, PA , USA",
"position": 2,
"scheduled_at": "2017-12-24T17:48:44.628Z",
"checkin_time": null,
"checkout_time": null,
"note": null,
"find_me": null,
"asap": null,
"late": false,
"eta": null,
"etl": "2017-12-24T17:53:44.628Z",
"silent": false,
"phone": null,
"email": "[email protected]",
"delete_at": null,
"checkin_lat": null,
"checkin_lng": null,
"checkout_lat": null,
"checkout_lng": null,
"etos": 300,
"distance_traveled_client": null,
"distance_traveled_server": null,
"automatically_checked_in": 0,
"automatically_checked_out": 0,
"merchant_id": 11271,
"start_lat": null,
"start_lng": null,
"start_time": null,
"estimated_distance": null,
"estimated_time": null,
"allow_editing_inventory": true,
"must_approve_inventory": false,
"address_second_line": null,
"zipcode": "15222",
"allow_scanning_inventory": null,
"allow_editing_payment": null,
"late_reason": null,
"no_later_than": null,
"no_earlier_than": null,
"masked_phone_number": null,
"twilio_number_id": null,
"marked_late_at": null,
"borough": null,
"city": null,
"distance_traveled": null,
"state": null,
"delivery_confirmation_scan": null,
"delivery_confirmation_note": null,
"delivery_confirmation_photo": null,
"delivery_confirmation_signature": null,
"delivery_confirmation_form": null,
"delivery_confirmation_ocr": null,
"company_name": null,
"customer_contact_ids": [
4647476
],
"contacts": [
{
"customer_id": 4647476,
"contact_type": "email",
"contact_value": "[email protected]",
"sharing_allowed": true
}
],
"allow_editing_original_quantity": null,
"pickup_dropoff_option": null,
"delivery_confirmation_cash": null,
"district": null,
"house_number": null,
"street": null,
"pending_geocode": false,
"original_eta": null,
"allow_automatic_set_coordinates": true,
"has_to_leave_by": null,
"customer": {
"id": 4647476,
"name": "Mike's Quickstop",
"address": "95 Fifth Ave, Pittsburgh, PA 15222, USA",
"lat": 32.0939713,
"lng": 34.8282911,
"created_at": "2017-12-11T13:53:19.963Z",
"updated_at": "2017-12-24T16:50:30.055Z",
"phone": null,
"merchant_id": 11271,
"image": "/images/avatar.png",
"access_token": "8e142ac3-9a07-46ba-8f88-9877681f1ebd",
"confirmation_code": "3504",
"salt": null,
"approved": false,
"push_token": null,
"uuid": "4301c99c-904c-4c36-a2f2-6a7e96de68e8",
"email": "[email protected]",
"external_id": "4647476",
"delete_at": null,
"facebook_id": null,
"extras": null,
"original_lat_lng_changed": "2017-12-12T16:30:04.182Z",
"encrypted_password": "",
"blocked_email": false,
"address_second_line": null,
"zipcode": "15222",
"allow_login": false,
"stripe_id": null,
"original_phone_number": null,
"last_open_at": null,
"last_order_at": null,
"uploaded_profile_image": {
"url": "/images/avatar.png"
},
"original_lat": 40.4417274,
"original_lng": -80.0027365,
"consecutive_checkins_out_of_geofence": 0,
"allow_sending_email": true,
"allow_sending_sms": true,
"reset_password_token": null,
"reset_password_sent_at": null,
"mobile_version": null,
"mobile_type": 0,
"mobile_maker": null,
"client_version": null,
"client_name": null,
"city": null,
"borough": null,
"state": null,
"dev": false,
"business_code": null,
"language": null,
"district": null,
"house_number": null,
"street": null,
"allow_dynamically_updating_location": null
},
"full_address": "95 Fifth Ave, Pittsburgh, PA , USA, 15222"
}
],
"customer": {
"id": 4652688,
"name": "Beverage Brothers",
"address": "120 Fifth Ave, Pittsburgh, PA 15222, USA",
"lat": 40.442228,
"lng": -80.003107,
"created_at": "2017-12-11T17:19:06.856Z",
"updated_at": "2017-12-24T16:50:30.125Z",
"phone": "+9724121234567",
"merchant_id": 11271,
"image": "/images/avatar.png",
"access_token": "84b2bd59-71f6-4c97-8a8a-1b6698d6e34a",
"confirmation_code": "7454",
"salt": null,
"approved": false,
"push_token": null,
"uuid": "0885ddb9-c943-4ef5-98f2-9db7f02e6d13",
"email": "[email protected]",
"external_id": "4652688",
"delete_at": null,
"facebook_id": null,
"extras": null,
"original_lat_lng_changed": "2017-12-12T11:47:49.499Z",
"encrypted_password": "",
"blocked_email": true,
"address_second_line": "Annex B",
"zipcode": null,
"allow_login": false,
"stripe_id": null,
"original_phone_number": "412-123-4567",
"last_open_at": null,
"last_order_at": null,
"uploaded_profile_image": {
"url": "/images/avatar.png"
},
"original_lat": 40.442228,
"original_lng": -80.003107,
"consecutive_checkins_out_of_geofence": 1,
"allow_sending_email": true,
"allow_sending_sms": true,
"reset_password_token": null,
"reset_password_sent_at": null,
"mobile_version": null,
"mobile_type": 0,
"mobile_maker": null,
"client_version": null,
"client_name": null,
"city": null,
"borough": null,
"state": null,
"dev": false,
"business_code": null,
"language": null,
"district": null,
"house_number": null,
"street": null,
"allow_dynamically_updating_location": null
},
"late": false,
"external_id": "8915424",
"uuid": "658015e3-2174-4a19-a63f-50412bcb8fe5",
"priority": 8915424,
"total_price": null,
"price_before_tax": null,
"delivery_price": null,
"tip": null,
"left_to_be_paid": null,
"dispatcher_id": null,
"ready_to_execute": true,
"start_lat": null,
"start_lng": null,
"distance_traveled": null,
"tax_price": null,
"discount": null,
"tip_driver_enabled": false,
"tag_id": 8613,
"pre_delivery_tip": null,
"post_delivery_tip_cash": null,
"post_delivery_tip_credit": null,
"group_leader_id": null,
"automatically_assigned": false,
"run_uuid": null,
"run_start_time": "2017-12-12T16:14:33.000Z",
"last_assigned_time": "2017-12-24T17:04:55.374Z",
"task_inventories": [],
"group_uuid": null,
"parent_task_id": null,
"payment_type_name": null,
"task_notes": [
{
"id": 9936018,
"note": "All 65 cases of milk at second drop.",
"user_id": 59172,
"task_id": 8915424,
"created_at": "2017-12-24T16:50:30.086Z",
"updated_at": "2017-12-24T16:50:30.138Z",
"url": null,
"way_point_id": 11108527,
"customer_id": null,
"pending_upload": false,
"lat": 32.1068165,
"lng": 34.8348318,
"type": "TaskNote"
},
{
"id": 9936017,
"note": "All 10 boxes of bread at first drop.",
"user_id": 59172,
"task_id": 8915424,
"created_at": "2017-12-24T16:50:30.034Z",
"updated_at": "2017-12-24T16:50:30.135Z",
"url": null,
"way_point_id": 11108526,
"customer_id": null,
"pending_upload": false,
"lat": 32.1068165,
"lng": 34.8348318,
"type": "TaskNote"
}
],
"fleet_id": null,
"fleet_delivery_external_id": null,
"rejecting_user_id": 77484
}
Output Params
id Int32 |
The unique Id of this order. |
active_way_point_id Int32 |
The Id of the way point in this order that is the user's (driver's) next destination. |
automatically_assigned boolean |
Indicates whether this order was automatically assigned. The values are:
|
created_at datetime |
The date and time this order was created. This is in UTC and is in the format is " %Y-%m-%dT%H:%M:%S%z". |
customer JSON |
A JSON containing the following fields from the customer object associated with this order: |
customer_id Int32 |
The Id of the customer associated with this order. |
delivery_price double |
The price of this delivery. |
discount double |
The discount amount of this order. |
dispatcher_id Int32 |
If the dispatcher locked this order, the Id of the dispatcher. |
distance_traveled double |
The actual distance traveled (in km). |
external_id string |
The order's external Id. |
extras JSON |
Internal Use. |
fleet_delivery_external_id string |
If this order is assigned to an external fleet, this is the Id used by that external fleet. |
fleet_id Int32 |
If this order is assigned to an external fleet, this is the Id of that external fleet. |
group_uuid UUID |
If this order is a group of orders, this is the UUID of the group (see group_leader_id above). |
last_assigned_time datetime |
The last date and time an order was assigned to the user (driver). This is in UTC and is in the format is " %Y-%m-%dT%H:%M:%S%z". |
late Int32 |
Indicates whether the user (driver) has not arrived at way points in this order on or before the scheduled times. The values are:
The default value is false. |
left_to_be_paid double |
The unpaid balance of this total order. |
group_leader_id Int32 |
If this order is a group of orders, this is the Id of the order representing the entire collection of orders in the group (the parent order containing all child orders in the group). This is the Id that Bringg operators (for example, dispatchers and users/drivers) view. NOTE: Bringg internally maintains each order and each order contains the same group leader Id. |
merchant_id Int32 |
The Id of the company. The merchant_id may be null, if the developer works with only one company. |
parent_task_id Int32 |
If this order was created from another order (for example, a failed order), this is the Id of that original order. |
payment_type_name string |
The name of the payment type. For example, Visa, Mastercard, or Amex. |
pre_delivery_tip double |
The tip (gratuity) paid to the user (driver) before this order delivery. |
price_before_tax double |
The net price of this order not including taxes. |
post_delivery_tip_cash double |
The tip (gratuity) paid to the user (driver) in cash after this order delivery. |
post_delivery_tip_credit double |
The tip (gratuity) paid to the user (driver) by credit after this order delivery. |
priority Int32 |
The priority of this order. |
ready_to_execute boolean |
Indicates whether this order is in planning and not visible to users (drivers). The values are:
|
run_start_time datetime |
If the order is part of a "run", this is the start date and time of the "run". A "run" is a group of user (driver) tasks beginning at the time a user (driver) leaves a "base" and ending when the user (driver) returns to that "base". This is in UTC and is in the format is " %Y-%m-%dT%H:%M:%S%z". |
run_uuid uuid |
If the order is part of a "run", this is the UUID of the "run". A "run" is a group of user (driver) tasks beginning at the time a user (driver) leaves a "base" and ending when the user (driver) returns to that "base". |
scheduled_at datetime |
The date and time this order was scheduled. This is in UTC and is in the format is " %Y-%m-%dT%H:%M:%S%z". |
start_lat double |
The geoposition latitude of the user (driver) when this order started. |
start_lng double |
The geoposition longitude of the user (driver) when this order started. |
status string |
This order's status. The value is TASK_REJECTED. NOTE: Other webhook's return status an Int32, but Order Was Rejected By Driver returns status as a string with a specific value (TASK_REJECTED). |
task_inventories Array of JSONs |
An array of JSONs containing this order's inventory, see Task Inventories. |
task_notes Array of JSONs |
An array of JSONs containing notes added to this order, see Task Notes. |
tax_price double |
The gross price of this order including taxes. |
tag_id Int32 |
If a tag exists, this is the Bringg tab Id. |
tip double |
The tip (gratuity) paid to the user (driver) by the customer for this order. |
tip_driver_enabled boolean |
Indicates whether the user (driver) is allowed to be tipped. The values are:
|
title string |
This order's title. The maximum length is 255 characters. |
total_price double |
The total price of this order. |
updated_at datetime |
The date and time of the last update for this order. This is in UTC and is in the format is " %Y-%m-%dT%H:%M:%S%z". |
user_id Int32 |
The Id of the user (driver). |
uuid uuid |
The universal unique Id of this order. |
way_points Array of JSONs |
An array of JSONs containing way_point information, see Way Point. |
webhooks boolean |
Indicates whether webhooks can be set for this order. The values are:
|