Skip to main content
GET
/
events
List events
curl --request GET \
  --url https://api.billing.io/v1/events \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "event_id": "<string>",
      "checkout_id": "<string>",
      "data": {
        "checkout_id": "co_1a2b3c4d5e",
        "deposit_address": "<string>",
        "amount_usd": 123,
        "amount_atomic": "49990000",
        "tx_hash": "<string>",
        "confirmations": 123,
        "required_confirmations": 19,
        "expires_at": "2023-11-07T05:31:56Z",
        "detected_at": "2023-11-07T05:31:56Z",
        "confirmed_at": "2023-11-07T05:31:56Z",
        "created_at": "2023-11-07T05:31:56Z",
        "metadata": {}
      },
      "created_at": "2023-11-07T05:31:56Z"
    }
  ],
  "has_more": true,
  "next_cursor": "<string>"
}
List webhook events. Useful for replaying missed webhooks or debugging. Filter by event type or checkout ID.
curl "https://api.billing.io/v1/events?type=checkout.completed&limit=10" \
  -H "Authorization: Bearer $BILLING_API_KEY"
Response
{
  "data": [
    {
      "event_id": "evt_f1e2d3c4b5a6f7e8d9c0b1a2",
      "type": "checkout.completed",
      "checkout_id": "co_a1b2c3d4e5f6a7b8c9d0e1f2",
      "data": {
        "checkout_id": "co_a1b2c3d4e5f6a7b8c9d0e1f2",
        "status": "confirmed",
        "amount_usd": 49.99
      },
      "created_at": "2025-01-15T12:05:31Z"
    }
  ],
  "has_more": true,
  "next_cursor": "evt_a1b2c3d4e5f6"
}

Authorizations

Authorization
string
header
required

Use your secret API key as a Bearer token. Keys are prefixed: sk_live_ (production) or sk_test_ (sandbox).

Query Parameters

cursor
string

Opaque cursor for pagination. Omit for the first page.

limit
integer
default:25

Number of items per page.

Required range: 1 <= x <= 100
type
enum<string>
Available options:
checkout.created,
checkout.payment_detected,
checkout.confirming,
checkout.completed,
checkout.expired,
checkout.failed
checkout_id
string

Response

Event list

data
object[]
has_more
boolean
next_cursor
string | null