Billing

Receive Stripe billing webhook

Stripe-signed webhook for checkout.session.completed and customer.subscription.* events. The raw body is stream-bounded to 262144 bytes before signature verification. Required Stripe event id/type/created fields are persisted as a payload-hash-bound replay receipt; per-subscription ordering rejects older delivery before state can roll backward. Stripe event ids are opaque, so different events with the same created second are recorded as ambiguous_order and never automatically applied until a newer provider event resolves state. User updates require no account-deletion fence; fenced events remain durable deletion evidence. This endpoint uses Stripe-Signature, not API-key auth.

post/v1/billing/webhook

Request

  • Base URL: https://api.agentry.sh
  • URL: https://api.agentry.sh/v1/billing/webhook
  • Auth: none declared

Request body

object required

Response

OK

receivedboolean required
event_idstring nullable
event_typestring nullable
handledboolean required
appliedboolean required
delivery_status'applied' | 'stale' | 'ambiguous_order' | 'account_deletion_fenced' | 'unmatched' | 'unhandled' required
idempotent_replayboolean required
user_idstring nullable
planstring nullable
billing_statusstring nullable
next_actionstring

Changes

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