Stripe webhook handler (internal)
POST
/v1/billing/webhook
const url = 'https://api.hookbridge.io/v1/billing/webhook';const options = {method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.hookbridge.io/v1/billing/webhook \ --header 'Content-Type: application/json' \ --data '{}'Internal endpoint - not for direct API use. Handles Stripe webhook events to sync subscription status. Authentication is via Stripe signature verification.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
Stripe webhook event payload
object
Examplegenerated
{}Responses
Section titled “Responses”Webhook processed successfully
Media typeapplication/json
object
received
boolean
Example
{ "received": true}Invalid webhook signature or payload
Media typeapplication/json
object
error
object
code
Machine-readable error code
string
message
Human-readable error message
string
meta
object
request_id
Unique identifier for this request (useful for support)
string
Example
{ "error": { "code": "INVALID_REQUEST", "message": "endpoint must be a valid HTTPS URL" }, "meta": { "request_id": "req_xyz123" }}Personalize Examples
Enter your credentials to populate code examples throughout the docs.