---
title: "Receive Stripe Webhook"
method: POST
path: "/api/webhooks/stripe/{environment}"
tags: ["Payment Webhooks"]
---

# Receive Stripe Webhook

`POST /api/webhooks/stripe/{environment}`

Receive Stripe events for one environment. The request body must be the raw Stripe JSON body and must include the Stripe signature header.

## Path parameters

- `environment` 'test' | 'live', required

## Request body

- object

## Response `200`

Webhook received

- StripeWebhookResponse
  - `received` boolean, required
  - `handled` boolean, required
  - `event` StripeWebhookEvent
    - `environment` 'test' | 'live', required
    - `eventId` string, required
    - `eventType` string, required
    - `livemode` boolean, required
    - `accountId` string, nullable, required
    - `objectType` string, nullable, required
    - `objectId` string, nullable, required
    - `processingStatus` 'pending' | 'processed' | 'failed' | 'ignored', required
    - `attemptCount` integer, required
    - `lastError` string, nullable, required
    - `receivedAt` string, date-time, required
    - `processedAt` string, date-time, nullable, required
    - `createdAt` string, date-time, required
    - `updatedAt` string, date-time, required

## Other responses

- `400` — Invalid request
- `401` — Unauthorized
- `500` — Internal server error

---

[API](https://skmtc.net/insforge/apis/insforge-authentication-api.md) · [All operations](https://skmtc.net/insforge/apis/insforge-authentication-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/insforge/insforge-authentication-api/revisions/a935bb49f932/schema)
