Discount memberships

A partner manages memberships in the existing Life Peaks dashboard or through API v2. Customers join through a Life Peaks hosted link for their group. They do not need a dashboard account and do not check out or pay to join.

ResourceMeaningExample
Membership configuration (membership-programs)A name, benefit type, approval policy and termsSportskort
TypeThe benefit mechanismdiscount
GroupPeople who share the configuration, with their own signup link and expiryA sports club or corporate team
VenueThe place where benefits are usedA restaurant's OnlinePOS venue
MembershipOne person's card, status and validityAn approved member in the sports club

Only discount is supported. Fixed product prices and percentage discounts are benefits of that type. Cashback, points, stamps and paid subscriptions are not available. Additional types can reuse the member, group, approval and Wallet lifecycle while supplying their own benefit service.

Configure and enroll

  1. Create a configuration with POST /v2/membership-programs, then add groups with POST /v2/membership-programs/{program_id}/groups.
  2. Give it a clear name, terms and minimum_age. Set status=active when it is ready for signup. A group can inherit approval or override it with manual or automatic.
  3. Share the group's signup_url, for example https://shop.lifepeaks.dk/rescap/join/hasle-b. The last part is the group's slug; it is made from the group name and can be changed. The page is part of the partner's hosted shop and uses its Shop & Brand settings. It collects name, email, international phone number, date of birth and acceptance of the current terms. There is no SMS marketing subscription.
  4. The applicant verifies their email before a membership is created. Manual approval produces a pending membership; automatic approval produces an active membership. Email links expire after 30 minutes and require confirmation, so an email scanner cannot enroll someone merely by opening the link.
  5. Approve with PATCH /v2/memberships/{membership_id}, using status=active and the current revision. Members receive a status email and can recover access through their group's signup page.

An authenticated integration can enroll using POST /v2/membership-groups/{group_id}/memberships. It must record the applicant's acceptance of the current terms_version; authenticated enrollment does not send the public email-proof challenge. Duplicate enrollment returns a conflict rather than revealing another person's access link.

To build your own join page instead, use a key with memberships:signup: read the page with GET /v2/membership-signup/{group_slug}, send the person's details with POST to the same path, and confirm the emailed link with POST /v2/membership-verifications/{token}. Confirming returns a 24-hour access_token for the person's own card, Wallet pass, data download and erasure under /v2/membership-access/{access_token}. The emailed links point to the Life Peaks hosted shop.

Writes require memberships:write and a credential created by an administrator who still has access to the acting company. Reads require memberships:read. Mutating resource writes require a stable Idempotency-Key; reuse it for retries. Existing resource edits require their returned revision. See the OpenAPI reference for each request and response.

GET /v2/memberships accepts program_id, group_id, status and search together. Search matches a name, email or phone, or an exact card number. Filters apply before pagination and only within the acting company.

Validity, groups and personal data

Membership eligibility combines the person's status, their expiry, the group's active state and expiry, and the configuration's active state. Group validity caps individual validity. Bulk changes use POST /v2/membership-programs/{program_id}/groups/{group_id}/memberships/bulk with the current source-group revision. A move remains within one configuration; erased people are excluded.

GET /v2/membership-programs/{program_id}/members.csv streams the member export. Treat it as personal data. A verified member can download their own profile, consent and receipt data or erase their profile through the hosted card page. Administrators can use DELETE /v2/membership-members/{member_id}. Erasure blocks memberships, removes contact details and invalidates old enrollment retry responses. Financial evidence is retained with opaque membership identifiers.

Wallet

Eligible members can add an Apple generic membership pass or Google loyalty pass from their hosted card page. Integrations can request:

  • GET /v2/memberships/{membership_id}/wallet/apple — signed .pkpass bytes.
  • GET /v2/memberships/{membership_id}/wallet/google — a save_url referencing a provisioned Google object.

The QR code identifies the membership; it is not a login credential. Existing Wallet signing, Google issuer configuration and the Apple device-update protocol are reused. Background delivery retries provider failures and propagates block, expiry, group and brand changes. A generated pass or acknowledged provider update does not prove that a device has installed or refreshed it.

OnlinePOS

The standard-card REST integration is separate from existing gift-card redemption. It synchronizes member identity and discount entitlement. The customer's restaurant payment stays in the venue's existing POS/payment flow.

  1. Create a venue reference with POST /v2/membership-venues. Adding the OnlinePOS venue number connects it; one OnlinePOS venue can belong to only one partner.
  2. Save benefits using PUT /v2/membership-programs/{program_id}/discounts/{venue_id}. Percentage discounts use basis points: 5000 means 50%. Product member prices use integer minor units: 3000 means 30 DKK.
  3. Save the card group and, for fixed prices, a dedicated provider price group from 2–5 through PUT .../discounts/{venue_id}/pos. Member cards are sent to the till while the venue is active; switch a venue off or on with PATCH /v2/membership-venues/{venue_id} and {"active": false}. Off closes its cards and keeps its sales and fees.
  4. Call POST .../discounts/{venue_id}/pos/verify. Verification reads the real card group and all product pages. Inspect policy_verified and last_error; HTTP 200 alone is not activation proof.

Percentage exclusions must match the venue's actual OnlinePOS no_discount / no_percentage_discount product flags. Fixed member prices must match the configured provider price group, including products with no special member price. Life Peaks does not change shared provider product flags or price groups. Combined fixed pricing and percentage discounts at the same venue are not activated without a verified provider stacking contract.

Verification expires after ten minutes. The worker rechecks it and stores desired versus acknowledged card state, with retries and safe recovery from an uncertain card-creation response. Missing access, mismatched prices or an unverified mapping cannot activate cards. Existing cards are closed when their mapping or membership becomes ineligible.

REST acknowledgment is not proof of immediate terminal refresh. Offline POS behavior and revocation latency require acceptance on an actual till. Do not promise instantaneous blocking from these API responses alone.

Receipts, commission and refunds

The background worker imports OnlinePOS receipts every few minutes. Only receipts associated with a known partner membership are retained. Repeated imports deduplicate on venue and transaction ID. Changed source data is quarantined instead of silently replacing financial evidence.

Life Peaks sets the membership commission and the minimum fee per member sale on the partner's company settings. When a member sale is imported, the fee is recorded straight away: the saving is the sum of the receipt lines' discounts, the fee is the commission on that saving or the minimum, whichever is higher, plus VAT on Danish invoices. OnlinePOS's agreed share of the fee excluding VAT is recorded separately; it is not a payment to the provider. Each fee keeps a copy of the rates it was charged at. With no commission set, receipts are kept without a fee. Signup and Wallet installation produce no fee.

For a 2% commission and 1 DKK minimum:

ReceiptMembership savingLife Peaks fee before VAT
1,000 DKK bill reduced to 500 DKK500 DKK10 DKK
40 DKK product reduced to 30 DKK10 DKK1 DKK after the minimum
No membership saving0 DKK0 DKK

A receipt with a negative total is a refund. Its saving and fee are negative, calculated the same way, so the partner is credited.

At the start of each month, the previous month's unbilled fees are added to the partner's existing bookkeeping as one immutable charge or credit. This does not issue or email an invoice, charge a payment method or split the restaurant payment. A month that is already invoiced or settled is left alone; its late fees go into a later open month. Fees on receipts whose source data changed stay out of billing. Partners without other sales still appear in monthly bookkeeping. A negative partner payout is an invoice receivable and is excluded from outgoing bank-transfer files. GET /v2/membership-fee-batches lists what has been billed.

Usage and webhooks

GET /v2/membership-usage reports receipts, receipts without a fee, customer payments, member savings and fees by venue, group or member. Dates are inclusive UTC dates, with at most 366 days per request. Amounts use integer minor units and are grouped by currency. Refunds contribute negative savings and fees. GET /v2/membership-usage.csv exports all matching rows without contact details.

The existing signed webhook outbox also supports membership.changed, membership_program.changed and membership_group.changed. Events contain identifiers, revision and state, not contact details. Fetch the current resource through the authenticated API. A group change can affect many members; refresh that group's memberships. Expiry is calculated from time and does not emit a scheduled lifecycle event. Webhook delivery is retried; deduplicate by event ID.