Skip to main content
POST
/
api
/
v2
/
billing-events
Create billing event
curl --request POST \
  --url https://api.example.com/api/v2/billing-events/ \
  --header 'Content-Type: application/json' \
  --data '
{
  "eventSlug": "<string>",
  "quantity": 1,
  "occurredAt": "2023-11-07T05:31:56Z",
  "workflowRunId": "<string>",
  "metadata": {}
}
'
{
  "idempotentReplay": true,
  "billingEvent": "<unknown>"
}

Headers

idempotency-key
string

A unique identifier for the billing event. Reusing the same key for the same organization returns the existing billing event.

Body

application/json
eventSlug
string
required
Minimum string length: 1
quantity
integer
required
Required range: x >= 0
occurredAt
string<date-time>
workflowRunId
string
metadata
object

Response

Default Response

idempotentReplay
boolean
required
billingEvent
any