webhooks
Stripe Webhook
Handle Stripe webhook events.
Subscription + auto-refill model:
- checkout.session.completed (mode=subscription): save customer/sub IDs + PM
- customer.subscription.updated: handle tier upgrade/downgrade
- customer.subscription.deleted: cancel — clear active plan
- invoice.paid: grant monthly block credits + reset usage counters
- invoice.payment_failed: mark plan inactive, notify user
- payment_intent.succeeded (auto_refill): informational log only (credits are granted synchronously by the auto_refill service)
Expert payouts:
- account.updated, payout.paid, payout.failed (unchanged)
post/api/v1/webhooks/stripe
Request
- Base URLhttps://api.humwork.ai (the document declares no server; this is the origin it was published from)
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Response
Successful Response
unknown required
Changes
No recorded changes to this operation across all 1 revision of this API.