BillingWebhookController
Provider webhook intake.
| Base path | /api/webhooks |
| Module | Billing & Platform |
| Endpoints | 1 |
| OpenAPI tag | Billing Webhooks |
| Source | backend/src/main/java/com/motorph/payroll/controller/BillingWebhookController.java |
Endpoints
| Method | Path | Requires | Handler |
|---|---|---|---|
POST | /api/webhooks/{provider} | Public — no authentication | receive() |
Notes
POST /api/webhooks/{provider}— rawBody is bound as a String on purpose: signatures cover the exact bytes sent, and the body can only be read once, so letting Jackson parse first would make verification impossible.
Call chain
Dependencies
Constructor-injected by Lombok's @RequiredArgsConstructor: BillingService.
Tables reached
| Entity | Table | Tenant-scoped |
|---|---|---|
| BillingSubscription | billing_subscription | — |
| BillingWebhookEvent | billing_webhook_event | — |
Generated page
This page is rebuilt from the source on every docs build by docs-site/scripts/gen-code-wiki.mjs. Editing it has no effect — change the code, or, if what you want to say is prose, write it in docs/.