Create a webhook subscription.
The created subscription, including its signatureKey — which
Square returns only here. Persist it immediately.
Delete a webhook subscription.
Get a webhook subscription by ID. The result never includes signatureKey.
List webhook subscriptions with cursor-based pagination.
Optionaloptions: ListWebhookSubscriptionsOptionsRotate a subscription's signature key, returning a new key.
Useful when the original key (returned only from create) wasn't persisted — rotate to obtain a usable key without deleting/recreating the subscription. Rotating invalidates the previous key, so deploy the new key before Square signs the next delivery with it.
Optionaloptions: { idempotencyKey?: string }Send a test event to a subscription to verify the endpoint.
Subscription to test
Optionaloptions: { eventType?: string }
Optional specific event type to send
Update a webhook subscription (name, URL, event set, or enabled state).
Manage Square webhook subscriptions (create / list / get / update / delete / test / rotate signature key). Exposed as
square.webhooks.subscriptions.Example