AsyncAPI Specification
generated: '2026-11-01'
method: searched
generator: extract-docs-artifacts.py (local)
source: https://ambassly.com/docs/webhook-setup
sources:
- https://ambassly.com/docs/webhook-setup
- https://ambassly.com/blog/stripe-webhook-events-affiliates
- https://ambassly.com/blog/stripe-affiliate-tracking
description: Ambassly uses Stripe webhooks to track affiliate referrals and commissions.
events:
- event: checkout.session.completed
description: Creates the Ambassly referral by resolving the referral code from the Checkout Session's client_reference_id or metadata.ambassly
and links the referral to the Stripe customer.
- event: invoice.paid
description: Creates a pending commission when the Stripe customer maps to a referral and the invoice is within the program's commission window.
- event: charge.refunded
description: Claws back matching pending or approved commissions when the charge is refunded.
- event: customer.subscription.deleted
description: Claws back matching pending or approved commissions when the subscription is deleted.
delivery:
signature: Stripe-Signature header
content_type: raw request body must be used for verification against the per‑company signing secret (whsec_…) saved in Ambassly
note: Ambassly verifies each request with Stripe's webhook signature and treats duplicate deliveries as idempotent; Stripe retries events when
a non‑2xx response is returned.
docs: https://ambassly.com/docs/webhook-setup
Work with this as data
Every AsyncAPI spec here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for asyncapi
4 MCP tools reach this
find_asyncapisBrowse and filter every AsyncAPI spec in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This AsyncAPI spec
curl "https://apis.io/api/v1/asyncapis/ambassly-com-webhooks"
All asyncapi
curl "https://apis.io/api/v1/asyncapis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.