Skip to content

Public routes: Billing hooks

Where the payment provider posts what happened to a workspace’s payments, signed by the provider. For whoever runs the deployment, not for an app.

What it doesRoute
The payment provider’s webhookPOST /public/v1/billing/webhook/{provider}

POST /public/v1/billing/webhook/{provider}

Where the deployment’s payment provider (stripe) posts that a checkout was paid, a subscription changed or ended, an invoice was paid or its payment failed, signed the way that provider signs its webhooks (Stripe-Signature). An event is acted on once, and only for a customer of this deployment’s region; any other is answered 200 and left alone. 503 in a deployment that takes no payments.

Needs: nothing: no credential.

Parameters

NameInDescription
provider (required)path

Answers

StatusBodyMeaning
200BillingWebhookResultOK
400problemThe request could not be read: the problem names the field.
401problemNo credential, or one that is not right.
404problemNot found, or the part is switched off.
413problemToo large.
503problemNot set up here yet.