API Reference

Order Unassigned from Driver

The Order Unassigned From Driver callback occurs when a driver is unassigned from an order. This callback returns detailed information describing the order, including no driver currently assigned.

📘

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:


Response

{
	"parent_task_id": "null",
	"tax_price": "null",
	"discount": "null",
	"group_uuid": "null",
	"uuid": "01d19211-a9fc-42d9-8940-5a2958070009",
	"distance_traveled": "null",
	"delivery_cost": "null",
	"late": false,
	"scans": [],
	"dispatcher_id": "null",
	"tip_driver_enabled": false,
	"post_delivery_tip_credit": "null",
	"tag_id": "5",
	"last_assigned_time": "2021-05-02T15:24:10.892Z",
	"tip": "null",
	"id": "67303124",
	"ready_to_execute": true,
	"failed_delivery_attempts": "0",
	"automatically_assigned": false,
	"price_before_tax": "null",
	"priority": "1",
	"left_to_be_paid": "null",
	"webhook_type": "driver_unassigned",
	"user_id": "null",
	"preparation_status": "0",
	"active_way_point_id": "87712659",
	"task_inventories": [],
	"pre_delivery_tip": "null",
	"delivery_price": "null",
	"status": "TASK_REMOVED",
	"team_ids": ["95556"],
	"created_at": "2021-05-01T16:24:11.662Z",
	"extras": "null",
	"scheduled_at": "2021-05-02T16:24:00.000Z",
	"origin_id": "1998",
	"run_uuid": "null",
	"external_id": "0020210501162410686GT84YKGYxNXmP-1",
	"merchant_id": "6",
	"title": "VDP-744222209",
	"fleet_delivery_external_id": "null",
	"start_lng": "null",
	"automatically_cancelled": "0",
	"updated_at": "2021-05-03T10:25:21.679Z",
	"post_delivery_tip_cash": "null",
	"start_lat": "null",
	"fleet_id": "null",
	"user_external_id": "null",
	"payment_type_name": "null",
	"total_price": "null",
	"automatically_ended": "0",
	"group_leader_id": "null",
	"preparation_external_id": "null",
	"way_points": [{
			"masked_phone_number": "null",
			"parking_spot_id": "null",
			"answers": [],
			"house_number": "null",
			"driver_preparation_time": "null",
			"borough": "null",
			"full_address": "11919 Tramway Dr, Cincinnati, OH, 45241, Cincinnati, OH, 45241",
			"location_id": "null",
			"distance_traveled": "null",
			"estimated_distance": "null",
			"checkout_lat": "null",
			"eta": "2021-05-02T16:24:00.000Z",
			"distance_traveled_client": "null",
			"late": false,
			"delivery_confirmation_note": "null",
			"checkout_lng": "null",
			"delivery_confirmation_scan": "null",
			"state": "OH",
			"id": "87712659",
			"allow_editing_payment": "null",
			"etl": "2021-05-02T16:29:00.000Z",
			"marked_late_at": "null",
			"lat": "39.2740301",
			"automatically_checked_out": "0",
			"late_reason": "null",
			"checkin_time": "null",
			"delivery_confirmation_form": "null",
			"lng": "-84.4123459",
			"has_to_leave_by": "null",
			"must_approve_inventory": false,
			"checkin_origin": "null",
			"predicted_etos": "null",
			"twilio_number_id": "null",
			"done": false,
			"address_second_line": "null",
			"zipcode": "45241",
			"start_time": "null",
			"location_name": "null",
			"first_attempt_promise_no_later_than": "null",
			"allow_scanning_inventory": "null",
			"phone": "+15555555555",
			"district": "null",
			"company_name": "null",
			"name": "ACME LLC",
			"ui_data": "null",
			"position": "2",
			"pickup_dropoff_option": "1",
			"estimated_time": "null",
			"no_later_than": "2021-05-02T16:49:10.777Z",
			"note": "null",
			"hidden": "null",
			"city": "Cincinnati",
			"created_at": "2021-05-01T16:24:11.677Z",
			"scheduled_at": "2021-05-02T16:24:00.000Z",
			"extras": "null",
			"task_id": "67303124",
			"merchant_id": "6",
			"asap": true,
			"automatically_geocoded": true,
			"start_lng": "null",
			"updated_at": "2021-05-02T15:24:10.974Z",
			"automatically_checked_in": "0",
			"street": "11919 Tramway Dr",
			"delivery_method": "null",
			"checkout_origin": "null",
			"original_eta": "2021-05-02T16:24:00.000Z",
			"start_lat": "null",
			"delete_at": "null",
			"delivery_confirmation_photo": "null",
			"allow_editing_inventory": false,
			"original_etl": "2021-05-02T16:29:00.000Z",
			"first_attempt_promise_no_earlier_than": "null",
			"email": "null",
			"silent": false,
			"customer_contact_ids": ["21432523"],
			"address": "11919 Tramway Dr, Cincinnati, OH, 45241",
			"address_type": "null",
			"delivery_confirmation_cash": "null",
			"checkin_lng": "null",
			"delivery_confirmation_signature": "null",
			"checkin_lat": "null",
			"no_earlier_than": "2021-05-02T16:24:10.777Z",
			"delivery_confirmation_ocr": "null",
			"checkout_time": "null",
			"find_me": "null",
			"allow_automatic_set_coordinates": true,
			"etos": "300",
			"pending_geocode": false,
			"customer_id": "21432523",
			"distance_traveled_server": "null",
			"contacts": [{
					"opted_by_customer": false,
					"contact_type": "phone",
					"sharing_allowed": false,
					"customer_id": "21432523",
					"contact_value": "+15555555555"
				}
			],
			"allow_editing_original_quantity": "null",
			"customer": {
				"mobile_type": "0",
				"business_code": "null",
				"language": "null",
				"house_number": "null",
				"allow_sending_email": false,
				"driver_preparation_time": "null",
				"borough": "null",
				"uuid": "21db9e9c-7b79-4dad-abb4-4adb7cb65a6e",
				"reset_password_token": "null",
				"consecutive_checkins_out_of_geofence": "1",
				"approved": false,
				"dev": false,
				"rank": "null",
				"state": "OH",
				"id": "21432523",
				"stripe_id": "null",
				"lat": "39.2740301",
				"encrypted_password": "",
				"uploaded_profile_image": {
					"url": "/images/avatar.png"
				},
				"allow_login": false,
				"image": "null",
				"lng": "-84.4123459",
				"reset_password_sent_at": "null",
				"address_second_line": "null",
				"zipcode": "45241",
				"access_token": "7b1471d9-f3e9-4ef0-b76c-bd6239c800d9",
				"phone": "+15555555555",
				"user_id": "null",
				"mobile_version": "null",
				"district": "null",
				"name": "ACME LLC",
				"last_open_at": "null",
				"original_lng": "-84.4059812",
				"confirmation_code": "9541",
				"original_lat": "39.2918543",
				"city": "Cincinnati",
				"created_at": "2021-02-26T18:51:42.159Z",
				"extras": "null",
				"external_id": "11335365",
				"merchant_id": "6",
				"original_phone_number": "5555555555",
				"updated_at": "2021-04-30T17:20:04.324Z",
				"street": "11919 Tramway Dr",
				"delete_at": "null",
				"tax_payer_name": "null",
				"client_version": "null",
				"last_order_at": "null",
				"client_name": "null",
				"email": "null",
				"push_token": "null",
				"blocked_email": false,
				"salt": "null",
				"address": "11919 Tramway Dr, Cincinnati, OH, 45241",
				"address_type": "null",
				"tax_payer_external_id": "null",
				"original_lat_lng_changed": "2021-03-09T20:36:43.455Z",
				"is_sales_rep": false,
				"has_parking_area": "null",
				"allow_dynamically_updating_location": "null",
				"allow_sending_sms": false,
				"mobile_maker": "null"
			}
		}
	],
	"virtual_task": false,
	"task_notes": [],
	"cancellation_lng": "null",
	"task_type_id": "4",
	"webhooks": "null",
	"cancellation_lat": "null",
	"customer_id": "21432523",
	"planning_done": false,
	"customer": {
		"mobile_type": "0",
		"business_code": "null",
		"language": "null",
		"house_number": "null",
		"allow_sending_email": false,
		"driver_preparation_time": "null",
		"borough": "null",
		"uuid": "21db9e9c-7b79-4dad-abb4-4adb7cb65a6e",
		"reset_password_token": "null",
		"consecutive_checkins_out_of_geofence": "1",
		"approved": false,
		"dev": false,
		"rank": "null",
		"state": "OH",
		"id": "21432523",
		"stripe_id": "null",
		"lat": "39.2740301",
		"encrypted_password": "",
		"uploaded_profile_image": {
			"url": "/images/avatar.png"
		},
		"allow_login": false,
		"image": "null",
		"lng": "-84.4123459",
		"reset_password_sent_at": "null",
		"address_second_line": "null",
		"zipcode": "45241",
		"access_token": "7b1471d9-f3e9-4ef0-b76c-bd6239c800d9",
		"phone": "+15555555555",
		"user_id": "null",
		"mobile_version": "null",
		"district": "null",
		"name": "ACME LLC",
		"last_open_at": "null",
		"original_lng": "-84.4059812",
		"confirmation_code": "9541",
		"original_lat": "39.2918543",
		"city": "Cincinnati",
		"created_at": "2021-02-26T18:51:42.159Z",
		"extras": "null",
		"external_id": "11335365",
		"merchant_id": "6",
		"original_phone_number": "5555555555",
		"updated_at": "2021-04-30T17:20:04.324Z",
		"street": "11919 Tramway Dr",
		"delete_at": "null",
		"tax_payer_name": "null",
		"client_version": "null",
		"last_order_at": "null",
		"client_name": "null",
		"email": "null",
		"push_token": "null",
		"blocked_email": false,
		"salt": "null",
		"address": "11919 Tramway Dr, Cincinnati, OH, 45241",
		"address_type": "null",
		"tax_payer_external_id": "null",
		"original_lat_lng_changed": "2021-03-09T20:36:43.455Z",
		"is_sales_rep": false,
		"has_parking_area": "null",
		"allow_dynamically_updating_location": "null",
		"allow_sending_sms": false,
		"mobile_maker": "null"
	}
}

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:

  • false or 0 - this order was not automatically assigned
  • true or 1 - this order was automatically assigned.

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:

  • id
  • name
  • address
  • address_second_line
  • zipcode
  • lat
  • lng
  • phone
  • address_type
  • merchant_id
  • image
  • email
  • facebook_id
  • extras
  • external_id
  • mobile_type
  • client_version
  • client_name
  • See Customer Object.

    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:

    • false or 0 - the user (driver) is not late
    • true or 1 - the user (driver) is late

    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:

    • false or 0 - is not in planning and is visible to users (drivers)
    • true or 1 - is in planning and is not visible to users (drivers

    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_REMOVED. NOTE: Other webhook's return status an Int32, but Order Was Rejected By Driver returns status as a string with a specific value (TASK_REMOVED).

    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:

    • false or 0 - the user (driver) cannot be tipped
    • true or 1 - the user (driver can be tipped

    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:

    • false or 0 - webhooks cannot be set for this task
    • true or 1 - webhooks can be set for this task.