market.deal.recorded
An Agoo Market deal closed with the handover code. Carries ids and states only (AM-256).
This is an Agoo Market event in Agoo Market's own envelope. An organisation's endpoints never receive it.
webhook-id*stringThe event's ID. It is the same on every attempt and redelivery, so use it to de-duplicate.
^evt_[0-7][0-9a-hjkmnp-tv-z]{25}$"evt_01m4ww0ezgf2bryg9gxb2gbewx"webhook-timestamp*stringWhen this attempt was signed, in Unix seconds. Reject the request if it is more than 5 minutes from your clock.
^[0-9]+$webhook-signature*stringOne 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.
application/json- body
An Agoo Market deal was recorded.
id*EventIdThe event's ID, also sent as webhook-id. The same on every retry.
^evt_[0-7][0-9a-hjkmnp-tv-z]{25}$"evt_01m4ww0ezgf2bryg9gxb2gbewx"created_at*stringWhen the event happened.
date-timelivemode*booleantrue for real work. false for a partner set up for testing, and for a test sent from the partner's page.
type*"market.deal.recorded""market.deal.recorded"data*Any 2xx acknowledges it.
Example Requests
/market.deal.recordedmarket.listing.removed Webhook
An Agoo Market listing was removed. Carries ids and states only (AM-256). This is an Agoo Market event in Agoo Market's own envelope. An organisation's endpoints never receive it.
market.booking.created Webhook
A delivery or inspection partner booking was created. 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.