TBBN.Merchant Platform docs
WORKING

Webhooks

post/v1/webhooks/subscriptions

Subscribe to events. events is an array of event-type strings (e.g. offer.accepted) or ["*"] for every event. See docs/architecture/event-webhook-catalog.md for the full event/webhook catalog. The signing secret is returned once, at creation time.

Parameters

optional

Request body

FieldTypeRequired
merchantIdstring (uuid)yes
urlstring (uri)yes
eventsstring[]yes

Response (201)

FieldTypeRequired
idstring (uuid)
merchantIdstring (uuid)
urlstring
eventsstring[]
secretstring
statusACTIVE | DISABLED
createdAtstring (date-time)
get/v1/webhooks/subscriptions

List a merchant's webhook subscriptions

Parameters

merchantIdqueryrequired

Response (200)

post/v1/webhooks/subscriptions/{id}/disable

Disable a webhook subscription (must be owned by the calling merchant)

Parameters

idpathrequired
optional

Request body

FieldTypeRequired
merchantIdstring (uuid)yes

Response (201)

FieldTypeRequired
idstring (uuid)
merchantIdstring (uuid)
urlstring
eventsstring[]
secretstring
statusACTIVE | DISABLED
createdAtstring (date-time)
get/v1/webhooks/deliveries

List delivery attempts, optionally scoped to one subscription

Parameters

subscriptionIdqueryoptional

Response (200)

post/v1/webhooks/deliveries/{id}/replay

Replay a delivery — must be idempotent on the merchant's receiving end, since the original attempt(s) may also have succeeded after all retries appeared exhausted.

Parameters

idpathrequired
optional

Response (201)

FieldTypeRequired
idstring (uuid)
subscriptionIdstring (uuid)
eventTypestring
payloadobject
statusPENDING | DELIVERED | FAILED | DEAD_LETTER
attemptsinteger
lastAttemptedAtstring,null (date-time)
createdAtstring (date-time)
post/v1/webhooks/business-subscriptions

Register a Business-rooted webhook subscription (Phase 34) — fires on Space booking lifecycle events (space_booking.created/consent_required/consented/paid/cancelled/completed).

Request body

FieldTypeRequired
businessIdstring (uuid)yes
urlstringyes
eventsstring[]yes

Response (201)

FieldTypeRequired
idstring (uuid)
businessIdstring (uuid)
urlstring
eventsstring[]
secretstring
statusACTIVE | DISABLED
createdAtstring (date-time)
get/v1/webhooks/business-subscriptions

List a Business's webhook subscriptions

Parameters

businessIdqueryrequired

Response (200)

post/v1/webhooks/business-subscriptions/{id}/disable

Disable a Business webhook subscription

Parameters

idpathrequired

Request body

FieldTypeRequired
businessIdstring (uuid)yes

Response (201)

FieldTypeRequired
idstring (uuid)
businessIdstring (uuid)
urlstring
eventsstring[]
secretstring
statusACTIVE | DISABLED
createdAtstring (date-time)
get/v1/webhooks/business-deliveries

List Business webhook deliveries, optionally scoped to a subscription

Parameters

subscriptionIdqueryoptional

Response (200)

post/v1/webhooks/business-deliveries/{id}/replay

Replay a Business webhook delivery

Parameters

idpathrequired
optional

Response (201)

FieldTypeRequired
idstring (uuid)
subscriptionIdstring (uuid)
eventTypestring
payloadobject
statusPENDING | DELIVERED | FAILED | DEAD_LETTER
attemptsinteger
lastAttemptedAtstring,null (date-time)
createdAtstring (date-time)