---
title: "Stripe Webhook"
method: POST
path: "/billing/webhook/stripe"
tags: ["billing"]
---

# Stripe Webhook

`POST /billing/webhook/stripe`

## Request

- Base URL: `https://api.threadchain.pro` (the document declares no server; this is the origin it was published from)
- URL: `https://api.threadchain.pro/billing/webhook/stripe`
- Auth: none declared

Receive and process Stripe webhook events.

This endpoint:
- Verifies webhook signature (production only)
- Processes checkout.session.completed, payment_intent.succeeded, etc.
- Updates payment status to 'succeeded' when confirmed
- Creates subscription and payment records

Note: In development without ngrok, this endpoint won't receive events.
The manual verification flow handles payment confirmation instead.

## Response `200`

Successful Response

- unknown

---

[API](https://skmtc.dev/threadchain/apis/threadchain-backend.md) - [All operations](https://skmtc.dev/threadchain/apis/threadchain-backend/llms.txt) - [OpenAPI document](https://skmtc.dev/threadchain/apis/threadchain-backend/revisions/8ee288a7e6bd?raw)
