Skip to content

Recent Stripe webhook events

GET
/billing/admin/events
curl --request GET \
--url 'https://api.sloose.com/billing/admin/events?limit=50' \
--header 'Authorization: Bearer <token>'

Backoffice route: a staff session, or ADMIN_TOKEN; never a customer’s session. The webhook log, newest first — what arrived, whether it was processed, and the error if it was not.

limit

Events to return. Capped at 500, defaults to 50.

string
Example
50

Events to return. Capped at 500, defaults to 50.

The webhook log.

Media typeapplication/json
object
events
required
Array<object>
object
id
required
string
type
required
string
status
required
string
orgId
required
string | null
error
required
string | null
createdAt
required
string | null
processedAt
required
string | null
Examplegenerated
{
"events": [
{
"id": "example",
"type": "example",
"status": "example",
"orgId": "example",
"error": "example",
"createdAt": "example",
"processedAt": "example"
}
]
}

A bearer that is neither the token nor a live session (code: AUTH_REQUIRED).

Media typeapplication/json

The error envelope every non-2xx answer uses.

object
error
required

Human-readable explanation.

string
code

Machine-readable reason. Absent on a few legacy 400s.

string
key
additional properties
Examplegenerated
{
"error": "example",
"code": "example"
}

A customer’s session, an API token, or no bearer at all — not staff, and not the ADMIN_TOKEN (code: ADMIN_REQUIRED).

Media typeapplication/json

The error envelope every non-2xx answer uses.

object
error
required

Human-readable explanation.

string
code

Machine-readable reason. Absent on a few legacy 400s.

string
key
additional properties
Examplegenerated
{
"error": "example",
"code": "example"
}