Recent Stripe webhook events
GET
/billing/admin/events
const url = 'https://api.sloose.com/billing/admin/events?limit=50';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”limit
Events to return. Capped at 500, defaults to 50.
string
Example
50Events to return. Capped at 500, defaults to 50.
Responses
Section titled “Responses”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"}