---
title: "Stripe Webhook"
method: POST
path: "/v1/billing/webhooks/stripe"
---

# Stripe Webhook

`POST /v1/billing/webhooks/stripe`

## Request

- Base URL: `https://api.anteproof.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.anteproof.com/v1/billing/webhooks/stripe`
- Auth: API key in header `Stripe-Signature`

Signed with the endpoint's secret (Stripe-Signature, HMAC-SHA256
over "<t>.<body>", 5-minute tolerance). Every event is recorded once
by its id. customer.subscription.* events overwrite the account's
subscription state with the object they carry;
checkout.session.completed attaches the customer to the account and,
if the subscription event has not arrived yet, fetches the
subscription so the account is never left half-linked.

## Response `200`

Successful Response

- unknown

---

[API](https://skmtc.dev/anteproof/apis/anteproof-api.md) · [All operations](https://skmtc.dev/anteproof/apis/anteproof-api/llms.txt) · [OpenAPI document](https://skmtc.dev/anteproof/apis/anteproof-api/revisions/c0d5ac701f1e?raw)
