Docs

market.deal.recorded

Preview· P9

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.

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

An Agoo Market deal was recorded.

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*"market.deal.recorded"
Value in"market.deal.recorded"
data*

Response Body

Any 2xx acknowledges it.

Example Requests

POST/market.deal.recorded