Skip to navigation

Payment setup updated

Sent when the state of the restaurant’s online payment setup (SagaPay) changes, for example from WAITING_FOR_OWNER to IN_PROGRESS when the owner has signed, or to ACTIVE when online payment works. payment has the same form as payment in GET /api/v1/partner/restaurants/{slug}. Use WAITING_FOR_OWNER to remind the owner: only the owner can finish the registration with BankID. Never sent for sandboxes, and never for internal SagaPay steps that keep the same state.

Headers

X-LettBestilt-Webhook-IdstringRequired
The ID of the webhook subscription this delivery belongs to.
X-LettBestilt-Delivery-IdstringRequired

Stable per event and subscription. Retries of the same event, and deliveries sent again with Resend in LettBestilt Partner, carry the same ID, so use it to skip events you have already handled.

X-LettBestilt-Webhook-TimestampstringRequired
Unix time in seconds when this attempt was signed. Reject old timestamps to stop replays.
X-LettBestilt-Webhook-SignaturestringRequired

sha256= followed by the hex HMAC-SHA256 of {timestamp}.{raw body}, keyed with the webhook’s signing secret (whsec_…).

Payload

The payload of this webhook request is an object.
eventenumRequired
Allowed values:
createdAtdatetimeRequired

When the event happened (ISO 8601, UTC).

dataobjectRequired

The data of a PAYMENT_SETUP_UPDATED event. No personal data.

Response

200

Respond with any 2xx status within 5 seconds to acknowledge the event.