---
title: "Receive payment processor events"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.nicer.travel/llms.txt
> Use this file to discover all available pages before exploring further.

# Receive payment processor events

Path: Nicer API › stripe-support

`POST /stripe-support/webhook`

URL: `https://api.nicer.travel/stripe-support/webhook`

Receives Stripe's event notifications: verifies the Stripe-Signature header over the raw body with the webhook secret and publishes each event on the event bus. Answers 400 when the payload or the signature is missing or does not verify.

## Authentication

- `webhookSignature`, apiKey, in header, header `x-nicer-webhook-signature`

## Code samples

### cURL

```bash
curl --request POST \
  --url https://api.nicer.travel/stripe-support/webhook \
  --header 'x-nicer-webhook-signature: <x-nicer-webhook-signature>'
```

### TypeScript

```typescript
const url = 'https://api.nicer.travel/stripe-support/webhook';
const options = {
  method: 'POST',
  headers: {'x-nicer-webhook-signature': '<x-nicer-webhook-signature>'}
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.nicer.travel/stripe-support/webhook"

headers = {"x-nicer-webhook-signature": "<x-nicer-webhook-signature>"}

response = requests.post(url, headers=headers)

print(response.text)
```

## Responses

### 200

OK

### 400

Request failed. `errorCode` is stable; `errorMessage` is for humans.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`stripeSupport.webhook.response.400.errorCode`; string, required)
- `errorMessage` (`stripeSupport.webhook.response.400.errorMessage`; string, required)

### 401

Request failed. `errorCode` is stable; `errorMessage` is for humans.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`stripeSupport.webhook.response.401.errorCode`; string, required)
- `errorMessage` (`stripeSupport.webhook.response.401.errorMessage`; string, required)


Source: https://docs.nicer.travel/api/stripe-support/stripeSupport.webhook/index.md
