Stripe webhook for Watching subscriptions — verify payment and fulfill the exact record

Verifies Stripe-Signature with STRIPE_WEBHOOK_SECRET and re-reads current Stripe subscription state. Only an exact supported price, confirmed payment, and explicit unambiguous business identity grant entitlement. Per-subscription Durable Object storage coordinates event and baseline dedupe; CONSUMERS is a discovery index. Disabled sending or failed fulfillment remains retryable. Stable provider keys and a frozen outbox payload protect retries. A pending provider outcome older than 23 hours requires reconciliation. Paying never changes what the public receipt shows.

post/v1/stripe/webhook

Request

  • Base URL: https://api.lodestarstamp.com
  • URL: https://api.lodestarstamp.com/v1/stripe/webhook
  • Auth: one of:
    • none
    • API key in header X-Lodestar-Key
    • OAuth 2 (authorization code, authorization URL https://api.lodestarstamp.com/oauth/authorize, token URL https://api.lodestarstamp.com/oauth/token, scopes: mcp:read)
    • API key in header PAYMENT-SIGNATURE

Response

Accepted (or duplicate/ignored)

Changes

No recorded changes to this operation across all 1 revision of this API.