Webhooks let your server react to things as they happen. When a payment is confirmed, a subscription is canceled, or a customer is updated, StellarTools sends an HTTPDocumentation Index
Fetch the complete documentation index at: https://docs.stellartools.dev/llms.txt
Use this file to discover all available pages before exploring further.
POST to your endpoint with a signed JSON payload.
Create and manage webhooks at dashboard.stellartools.dev/webhooks. When you create one, pick which events to subscribe to and copy the signing secret to verify deliveries.
Event envelope
Every webhook POST has the same top-level shape, regardless of event type.Envelope fields
Unique ID for this event. Prefixed with
wh_evt_.The event type, e.g.
payment.confirmed or subscription.canceled. See the full list below.ISO 8601 timestamp of when the event was created.
true if the event came from a mainnet (live) API key. false for testnet.Contains the event payload.
Event types
Customer events
A new customer was created.
A customer’s details were updated. Includes
previous_attributes.A customer was deleted.
Payment method events
A Stellar wallet was linked to a customer.
A wallet was removed from a customer.
Checkout events
A new checkout session was created.
Payment events
A payment transaction was submitted to the network but has not yet been confirmed.
A payment is confirmed on the Stellar ledger. This is the event to act on when fulfilling an order.
A payment could not be confirmed on-chain.
Refund events
A refund was sent to the customer’s wallet successfully.
A refund could not be processed.
Subscription events
A new subscription was created.
A subscription was updated (for example: paused, resumed, or
cancel_at_period_end was toggled). Includes previous_attributes.A subscription was canceled.
Handling events
Usest.webhooks.constructEvent to verify the signature and get the typed event back. Always verify before acting on the payload.
If
constructEvent throws, the signature is invalid or the payload was tampered with. Return a 400 and do not process the event.
