Docs

market.booking.updated

Preview· P9

A delivery or inspection partner booking changed state. Carries only the address and phone for that booking (AM-256).

Agoo Market sends this as a signed POST to the webhook endpoints of the partner the booking is for, and to nobody else: an organisation's endpoints never receive it. Verify the signature, return any 2xx within 15 seconds, and de-duplicate on webhook-id, which is the same on every retry.

Header Parameters

webhook-id*string

The event's ID. It is the same on every attempt and redelivery, so use it to de-duplicate.

Match^evt_[0-7][0-9a-hjkmnp-tv-z]{25}$
Example"evt_01m4ww0ezgf2bryg9gxb2gbewx"
webhook-timestamp*string

When this attempt was signed, in Unix seconds. Reject the request if it is more than 5 minutes from your clock.

Match^[0-9]+$
webhook-signature*string

One or more space-separated signatures, each v1,<base64>: the base64 HMAC-SHA256 of {webhook-id}.{webhook-timestamp}.{raw body}, keyed with the base64-decoded part of your whsec_ secret. During a secret rotation there are two. Accept the request if any one matches.

Request Body

application/json
  1. body

A delivery or inspection partner booking was created or updated; carries only the booking's address and phone.

id*EventId

The event's ID, also sent as webhook-id. The same on every retry.

Match^evt_[0-7][0-9a-hjkmnp-tv-z]{25}$
Example"evt_01m4ww0ezgf2bryg9gxb2gbewx"
created_at*string

When the event happened.

Formatdate-time
livemode*boolean

true for real work. false for a partner set up for testing, and for a test sent from the partner's page.

type*string
Value in"market.booking.created""market.booking.updated"
data*

Response Body

Any 2xx acknowledges it.

Example Requests

POST/market.booking.updated