Events & Reporting

Use the reporting endpoints to retrieve sales, redemptions, event participants, and newsletter subscribers. For item creation and redemption, see Endpoints.

MethodPathScope
GET/v2/eventsitems:read
GET/v2/events/{slug}/participantsreports:read
GET/v2/reports/analyticsreports:read
GET/v2/reports/claimed-itemsreports:read
GET/v2/subscribersreports:read

All five act on the company that owns the API key — or on an assigned company when you pass the optional company parameter — and return the payload unwrapped. Pagination differs by operation:

  • GET /v2/events, event participants and subscribers are lists: they answer the one list envelope (object, data, has_more, next_cursor) and page with limit and starting_after. None accepts offset, and the participants list does not accept an order parameter.
  • Analytics and claimed-items are reports, not lists. They accept offset, limit, and order (asc or desc), and answer their rows under items with an itemsCount.

See Endpoints — Conventions for defaults and the other list-route families.

Events

GET /v2/events — scope items:read

GET /v2/events returns event details and ticket counts for reporting and reconciliation. To retrieve prices, ticket options, and product IDs for checkout, use the product catalog.

Ticket sales use the product catalog. Retrieve event products at GET /v2/products?type=event_ticket, with the id evt_<id>, one evto_<id> option per ticket type, the price and fee of each, the collection points, and what the organiser asks of a buyer. That product id is what POST /v2/quotes and POST /v2/orders take. See Endpoints — An event and its tickets and Headless checkout.

The reporting endpoint can include undated and private events. The catalog includes only active, public events with complete dates and an open sales window. Availability is checked again when an order is created.

Lists your events with their ticket counts. online=true narrows to events currently visible in the order form; private=true returns private events instead of public ones.

bash
curl -H "Authorization: Bearer lp_live_..." \
  "https://api.lifepeaks.dk/v2/events?online=true&limit=2"
json
{
  "object": "list",
  "data": [
    {
      "name": "Hotel Party nr.1",
      "slug": "hotel-party-nr1",
      "private": false,
      "online": true,
      "venue": "London",
      "venue_address": "",
      "venue_postcode": "",
      "date_activate": null,
      "date_deactivate": null,
      "sold": 435,
      "blocked": 0,
      "all": 1773
    }
  ],
  "has_more": false,
  "next_cursor": null
}

sold counts tickets sold, blocked counts tickets held in baskets awaiting payment, and all is the total the event was set up with. Count data for the size of the returned page; it is not the total number of events. Send next_cursor back as starting_after until has_more is false; never infer the end from a short page.

Event participants

GET /v2/events/{slug}/participants — scope reports:read

Uses the slug from the events list. This endpoint needs reports:read rather than items:read because the rows carry participant personal data.

ParameterNotes
searchFree-text search over the participant rows
limit, starting_afterPaging. The response carries has_more and next_cursor
json
{
  "object": "list",
  "data": [
    {
      "sender_name": "Jane Doe",
      "sender_email": "jane@example.com",
      "sender_phone": "",
      "sender_comment": "",
      "sender_code": null,
      "ticket_variation": "3 x Standard",
      "ticket_price": 255,
      "created_at": "2026-01-03 20:15:10",
      "payment_type": "API created - Payment with invoice",
      "payment_OTH": null,
      "claimed_at": null
    }
  ],
  "has_more": false,
  "next_cursor": null
}

An event with no participants returns 200 with an empty data array. A 404 means no such event exists for the acting company.

Analytics

GET /v2/reports/analytics — scope reports:read

The same items as GET /v2/items, reduced to the analytic columns: type, titles, status, amounts, VAT, currency, remaining value, validity, creation time, language, and how each item was paid for and created. No availability flags, no buyer identity, no claim or PDF links.

Every item the company has sold is included, whatever the channel: the order form, the admin, and the API.

Unlike GET /v2/items this endpoint has no mandatory filter — a date range on its own is a valid call.

bash
curl -H "Authorization: Bearer lp_live_..." \
  "https://api.lifepeaks.dk/v2/reports/analytics?date_from=2026-01-01&date_to=2026-01-31&limit=100"
json
{
  "items": [
    {
      "item_type": "Gift Card",
      "item_type_identification": "Gift Card",
      "item_title": "Gift Card",
      "event_title": null,
      "ticket_title": null,
      "is_token": false,
      "item_info": null,
      "status": 6,
      "status_name": "Paid",
      "amount": 500,
      "vat": 25,
      "vat_value": 100,
      "currency": "DKK",
      "remaining_amount": 400,
      "pieces_bought": 1,
      "remaining_pieces": null,
      "company_name": "Acme Hotels",
      "validity": "2029-05-10 00:00:00",
      "created_at": "2026-01-12 15:31:57",
      "language": "en-GB",
      "payment_type": "normal",
      "payment_type_name": "Standard payment",
      "created_by": null,
      "paid_value": 500,
      "promotion_id": 378,
      "promotion_name": "Black Friday public campaign"
    }
  ],
  "itemsCount": 1
}

Reporting purchased pieces

pieces_bought is the original recorded number of pieces issued on each card or item. It stays unchanged after redemption; remaining_pieces tells you how many are left to use.

For example, a card issued with three stays reports pieces_bought: 3. After one stay is redeemed, it still reports pieces_bought: 3, while remaining_pieces becomes 2. Once fully redeemed, the values are 3 and 0 respectively. Three separate single-stay cards each report pieces_bought: 1.

The field is available on /v2/reports/analytics, /v2/items, and /v2/items/{code}, including older items with a stored original count. It is null when no positive original piece count is recorded. It also describes manually issued and free items, so use the payment fields to determine whether payment was received. Do not calculate the count by dividing the card value by a product's current price.

Reporting revenue

paid_value is what the buyer paid for the item through Lifepeaks. It is 0 for an item created manually and settled outside Lifepeaks, for example a gift card sold and paid for at the partner's own front desk.

payment_type says how the item was paid for, as a stable code. Branch on it rather than on payment_type_name, which is translated for display:

payment_typeMeaning
normal, onpagePaid online through Lifepeaks.
no paymentCreated manually by staff; not paid through Lifepeaks.
payment by invoiceCreated manually and paid by invoice.
API created - Payment with invoiceCreated over the API and paid by invoice.
API - Paid on locationCreated over the API and paid at the partner's location.
OTHCreated manually and marked OTH.
by CREDITPaid with credit.

created_by is the username of the Lifepeaks user that created the item, for example a staff account at the partner or a v1 API user. It is null when no user account created the item: the buyer ordered it on the order form, or it was created with a v2 API key.

To total online revenue, sum paid_value over items whose payment_type is normal or onpage. Do not derive it from vat_value: that is the VAT included in the item's sale price, which is recorded even when the item was paid at the partner's location or by invoice.

Reporting by campaign

promotion_id and promotion_name name the campaign (a discount or added-value promotion) the gift card was sold through. Both are null for an item not sold through a campaign.

Use promotion_id as the reporting key. It is permanent and does not change when the campaign or its guest-facing title is renamed. promotion_name is the internal campaign name from the admin; guests do not see it. The campaign is stored on the card when it is created, so the fields are available for older cards as well.

To report each campaign separately, give each campaign its own promotion rather than reusing an earlier one.

search, status, date_from and date_to filter the same way they do on GET /v2/items, except that search has no minimum length here — a short term is searched rather than refused. date_from and date_to are whole days and both are included: date_to=2026-01-31 includes items created up to 23:59:59 on 31 January.

Claimed items

GET /v2/reports/claimed-items — scope reports:read

The redemption ledger: one row per claim, refund or status transaction, across gift cards, special offers and tickets, newest first by default.

Send both date_from and date_to. Omitting both returns 422. Supplying only one is accepted but returns an empty report. Validate both dates before interpreting an empty result.

bash
curl -H "Authorization: Bearer lp_live_..." \
  "https://api.lifepeaks.dk/v2/reports/claimed-items?date_from=2026-01-01&date_to=2026-01-31"
json
{
  "items": [
    {
      "transaction_id": 123465,
      "status": 3,
      "status_name": "Used",
      "date": "2026-01-12",
      "time": "01:36:48",
      "item_type": "Gift Card Variation",
      "item_type_identification": "Gift Card Variation",
      "code": "77xrB3e44T",
      "amount": 100,
      "claim_note": "Booking 55123",
      "claimed_by_username": null,
      "claimed_by_company_name": null,
      "currency": "DKK",
      "company_name": "Acme Hotels"
    }
  ],
  "itemsCount": 1
}

claim_note is whatever you passed when redeeming the item, which makes this the endpoint to reconcile Lifepeaks redemptions against your own bookings. claimed_by_username is null for anything redeemed with an API key — a key is not a user. Redemptions made by staff in the admin UI still carry their username.

Subscribers

GET /v2/subscribers — scope reports:read

The confirmed newsletter subscribers collected through your order pages, together with the marketing consents recorded on v2 orders through marketing_consent. When your company is a root company, the subscribers of its child companies are included.

A subscriber appears here only once the order that produced them is paid, whichever of the two sources it came from.

json
{
  "object": "list",
  "data": [
    { "id": "3183", "company": "acme-hotels", "email": "jane@example.com", "name": "Jane Doe" }
  ],
  "has_more": false,
  "next_cursor": null
}

date_from and date_to filter by signup date, but only when both are present and both parse as YYYY-MM-DD. If either is missing or malformed the interval is ignored entirely and every subscriber is returned. Validate both dates before requesting a filtered report.

The subscriber list is paginated: without a limit, the response contains up to 50 rows, with has_more: true when more rows remain. To walk the whole list, raise limit to at most 100 and pass the response’s next_cursor as starting_after until has_more is false. The event and participant lists page the same way; the two reporting routes use offset.

Treat subscriber IDs and pagination cursors as opaque strings. IDs may contain prefixes. Pass next_cursor unchanged as starting_after when requesting the next page.