---
title: "createStripeEvent"
---

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

# createStripeEvent

Path: Forge API › billingEvents

`POST /billing/stripe/events`

Stripe sends the stage's billing events here, signed with the stage's webhook secret. An event already applied is answered without being applied again.

## Request body

_Required._

Type: `string`

- format: `binary`

## Example request

```json
"string"
```

## Code samples

### cURL

```bash
curl --request POST \
  --url '<base-url>/billing/stripe/events' \
  --header 'Content-Type: application/json' \
  --data '"string"'
```

### TypeScript

```typescript
const url = '<base-url>/billing/stripe/events';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json'},
  body: JSON.stringify('string')
};

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

### Python

```python
import requests

url = "<base-url>/billing/stripe/events"

payload = "string"
headers = {"Content-Type": "application/json"}

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

print(response.text)
```

## Responses

### 204

<No Content>

### 400

InvalidStripeSignature | InvalidRequest

#### Example

```json
{
  "_tag": "InvalidStripeSignature"
}
```

Any of the following:

- `InvalidStripeSignatureEncoded`
  - `_tag` (`InvalidStripeSignatureEncoded._tag`; string, required)
    - one of `"InvalidStripeSignature"`
- `InvalidRequestEncoded`
  - `_tag` (`InvalidRequestEncoded._tag`; string, required)
    - one of `"InvalidRequest"`
  - `part` (`InvalidRequestEncoded.part`; string, required)
    - one of `"path"`, `"query"`, `"headers"`, `"body"`
  - `issues` (`InvalidRequestEncoded.issues`; array of object, required)
    - `path` (`InvalidRequestEncoded.issues.path`; array\<any of\>, required)
      - any of the following: `string`, `integer`
    - `message` (`InvalidRequestEncoded.issues.message`; string, required)

### 413

RequestBodyTooLarge

#### Example

```json
{
  "_tag": "RequestBodyTooLarge",
  "max_bytes": -9007199254740991
}
```

- `_tag` (`createStripeEvent.response.413._tag`; string, required)
  - one of `"RequestBodyTooLarge"`
- `max_bytes` (`createStripeEvent.response.413.max_bytes`; integer, required)
  - maximum: `9007199254740991` · minimum: `-9007199254740991`

### 429

RateLimited

#### Example

```json
{
  "_tag": "RateLimited"
}
```

- `_tag` (`createStripeEvent.response.429._tag`; string, required)
  - one of `"RateLimited"`

### 500

ControlPlaneFailure | OrgFailure

#### Example

```json
{
  "_tag": "ControlPlaneFailure",
  "reason": "string"
}
```

Every option has:

- `reason` (`<option>.reason`; string, required)

Any of the following, each adding:

- `ControlPlaneFailureEncoded`
  - `_tag` (`ControlPlaneFailureEncoded._tag`; string, required)
    - one of `"ControlPlaneFailure"`
- `OrgFailureEncoded`
  - `_tag` (`OrgFailureEncoded._tag`; string, required)
    - one of `"OrgFailure"`

### 502

StripeFailure

#### Example

```json
{
  "_tag": "StripeFailure",
  "reason": "string"
}
```

- `_tag` (`createStripeEvent.response.502._tag`; string, required)
  - one of `"StripeFailure"`
- `reason` (`createStripeEvent.response.502.reason`; string, required)

### 503

BillingNotConfigured | RateLimitUnavailable

#### Example

```json
{
  "_tag": "BillingNotConfigured"
}
```

Any of the following:

- `BillingNotConfiguredEncoded`
  - `_tag` (`BillingNotConfiguredEncoded._tag`; string, required)
    - one of `"BillingNotConfigured"`
- `RateLimitUnavailableEncoded`
  - `_tag` (`RateLimitUnavailableEncoded._tag`; string, required)
    - one of `"RateLimitUnavailable"`


Source: https://buildrforge.com/docs/api/create-stripe-event/index.md
