Courier Update

Sends courier details and delivery progress whenever they change.

Purpose

Where delivery platforms provide courier statuses or a 3rd party 'Dispatch' service is enabled, the details of the delivery progress will be sent whenever they change

Delivery job statuses

Status nameMeaningInteger value
EN_ROUTE_TO_PICKUPCourier approaching the pickup location83
ARRIVED_AT_PICKUPCourier has arrived at the pickup location85
EN_ROUTE_TO_DROPOFFCourier approaching the drop-off location87
ARRIVED_AT_DROPOFFCourier has arrived at the drop-off location89
DELIVEREDCourier has delivered the order90

Parameters

ParameterMeaningType
receivedTimestamp of when the update was generatedstr
orderIdUnique Deliverect order IDstr
rawDriverUpdateAn empty array not currently in usearray of str
updatedOrigin2 = Channel
6 = Courier (via Dispatch)
int
courier—array of str
courier.firstName—str
courier.lastName—str
courier.phoneNumber—str
courier.deliveryByThe delivery party responsiblestr
courier.statusSee Delivery job statusesint
pickupTimeThe correct pickupTime for the order when the status was generatedstr
deliveryTimeThe anticipated order delivery timestr
locationThe unique ID of the Deliverect locationstr

Sent to the reporting webhook URL configured during onboarding. Where delivery platforms provide courier statuses or a 3rd party 'Dispatch' service is enabled, the details of the delivery progress will be sent whenever they change.

Each event is sent as a single HTTP POST request with a timeout of 20 seconds. Every event is delivered in one attempt, whatever response status is returned, so we recommend acknowledging with a 2xx response straight away and processing the payload asynchronously.

Payload

Sent by Deliverect as a JSON payload.

date-time

Time the courier update was received, in the format yyyy-MM-ddTHH:mm:ss.SSSSSSZ.

string

Deliverect's unique identifier of the order.

date-time

Estimated time the courier picks up the order, in the format yyyy-MM-ddTHH:mm:ss.SSSSSSZ.

date-time

Estimated time the order is delivered to the customer, in the format yyyy-MM-ddTHH:mm:ss.SSSSSSZ.

string

locationId is the unique ID for the POS to identify the store location.

courier
object

Courier assigned to the delivery and their current progress.

string

Instructions for handing the order to the courier.

string

Passcode the courier presents at pickup, where applicable.

integer

The source from where the update is coming: 1 = POS, 2 = Channel, 3 = DMA, 4 = Driver, 5 = Internal, 6 = Delivery System, 7 = Manual, 8 = KDS, 9 = Bill to Order Status.

string

Raw courier update as received from the delivery service, as a JSON string.

Headers
string
required

Identifies Deliverect as the sender, in the format Deliverect/{version}.

string
required

Signature of the raw request body using your shared secret; recompute it on receipt to verify the request came from Deliverect (see HMAC authentication guide).

Response
200

Return a 2xx status to acknowledge receipt.

LoadingLoading…