Endpoints

The v2 transactional surface has two distinct paths. New partner storefronts use the protected headless flow, where Lifepeaks controls the quote and hosted payment. Compatibility endpoints remain for direct issuance and existing integrations. Do not combine the two order models: headless orders use po_… IDs; compatibility issuance returns legacy order IDs such as devOEVLB1EW33.

Products, orders, and items

Products describe what can be purchased, orders track purchases, and items represent the issued gift cards, tickets, or vouchers.

NounPathWhat it is
Product/v2/productsWhat a company can sell: its variable-value gift card, its experiences, its event tickets and its special offers. Read-only, and the starting point of any purchase.
Order/v2/ordersThe purchase: what was bought, what it costs, whether it is paid. An order is created unpaid and becomes paid through Lifepeaks-hosted checkout, or through negotiated settlement.
Item/v2/itemsAn issued voucher — the gift card, ticket or offer voucher a buyer actually holds, with a code, a balance, and a validity date. An order produces items, and redemption acts on them.

Direct issuance skips the purchase flow and creates items immediately: POST /v2/items issues cards against a negotiated invoice contract, without a customer payment. These are the same items the redemption endpoints operate on, so a code created that way is read at GET /v2/items/{code} and redeemed at POST /v2/items/{code}/claim.

GET /v2/promotions lists gift-card campaigns for direct issuance. Available campaigns also appear on the variable-value product, allowing storefronts to display them with the catalog response.

Product endpoints require products:read. Check each endpoint’s required scope before making a request.

Account and company surface

Start here when building a new integration. These endpoints report which company a key belongs to, what it is permitted to do, and which other companies it may act for.

MethodPathScope
GET/v2/healthnone
GET/v2/menone
GET/v2/companiescompanies:read
GET/v2/companies/{slug}companies:read
GET, PATCH/v2/companies/{slug}/settingscompanies:read / companies:write
GET, POST, DELETE/v2/return-origins*companies:read / companies:write
GET/v2/companies/{slug}/storefront-manifestorderpage:read
GET, PATCH/v2/companies/{company_id}/brandbrand:read / brand:write
GET/v2/companies/{company_id}/brand/assetsbrand:read
PUT, DELETE/v2/companies/{company_id}/brand/assets/{asset}brand:write
POST, GET, DELETE/v2/api-keys*credentials:write / credentials:read

GET /v2/me needs no scope, so any valid key can call it. It returns the acting company, the credential's real scope list and expiry, the settlement modes the company holds, and the company's storefront settings. Check these permissions when configuring your integration. See Authentication.

The storefront block is the exception to "call it once at start-up": enabled, season and events_listed are set by the company itself on its Lifepeaks settings page, so a hosted shop should re-read them periodically rather than compiling them in. A company whose shop is disabled should be served a plain not-found page, never a partly rendered one.

events_listed is false when the company has chosen "Public events shall only be visible through the #events url". A storefront then keeps event_ticket products off its landing page and offers them only on a dedicated events page and at each event's own direct link, which is what the Lifepeaks-hosted order form does. The products themselves stay in GET /v2/products and can still be quoted and ordered.

Preprinted code batches

Code batches are preprinted gift cards waiting for activation, separate from gift-card campaigns at /v2/promotions. campaign_name is buyer-visible: activation copies it into sender_name and receiver_name. It stores one name in the company's intended buyer language, not a translation map.

EndpointScopeResult
GET /v2/code-batchescode_batches:readPaged batches with counts of inactive, activated and deactivated codes
GET /v2/code-batches/{code_batch_id}code_batches:readOne code batch
GET /v2/code-batches/{code_batch_id}/codescode_batches:readPaged JSON codes and states, or full CSV with Accept: text/csv / ?format=csv
POST /v2/code-batchescode_batches:writeCreate one batch; requires Idempotency-Key
DELETE /v2/code-batches/{code_batch_id}code_batches:writeDeactivate unused codes; requires Idempotency-Key

Writes require a key created by an active administrator with the super_admin permission and access to the acting company. Permission and the creator's IP restrictions are checked on every write. The dedicated write scope is not a default grant. Keys without an eligible creator are refused. Foreign IDs answer 404. Use the usual company selector and limit/starting_after pagination (default 25, maximum 100).

json
{
  "campaign_name": "Gavekort",
  "pieces": 100,
  "type": "To Activate (activate)",
  "item_type": "giftcard",
  "gc_value": 250,
  "validity": "2030-12-31"
}

pieces is 1–2000. gc_value is a positive whole amount in company currency, so 250 means DKK 250 for a Danish company. giftcardnull has open value and requires To Activate (activate). giftcardvariation requires an active, company-owned gift_card_variation_option ID. Dormant (claim) activates fixed-value or experience codes on first claim. Optional code_prefix and pdf_template are existing company-owned IDs; the template must match the item type. Unknown fields and foreign links are rejected. An insufficient code pool returns 409 code_pool_exhausted with no partial batch.

Reuse the same idempotency key and body after a lost response. A changed body conflicts; concurrent requests cannot allocate a second batch. Deactivation clears unused codes permanently and leaves activated cards unchanged. It never refunds or cancels an issued card. A deactivated code reads back as null.

Use GET /v2/code-batches/{code_batch_id}/codes for both representations: paged JSON by default, or the full CSV with Accept: text/csv or ?format=csv. CSV ignores pagination, streams as an attachment, and sets Cache-Control: no-store. Its columns are code, state, and qr_url; formula prefixes are escaped, deactivated codes are blank, and activated codes come from issued cards. No export endpoint or download URL is created.

Company commerce settings

Company-specific postal priorities take precedence over company A/B amounts when enabled, then platform defaults. Platform-wide postal prices cannot be changed through this API. Read a new quote after changing a shipping setting. Country restrictions still apply to configured delivery methods.

GET /v2/companies/{slug}/settings reads, and PATCH changes, the settings a company controls about how its gift cards sell. Both answer the same object:

FieldTypeMeaning
card_validity_monthsinteger, 1–120How many months a newly issued card stays valid
card_amount_mindecimal in the company currencyThe lowest value a buyer may put on a card; always below card_amount_max
card_amount_maxdecimal in the company currencyThe highest value a buyer may put on a card
notification_emailstringWhere the sell notification goes; comma-separate several addresses, empty means none
sell_notificationbooleanWhether the company is e-mailed after each successful sale
delivery_by_partnerbooleanWhether the company delivers the card itself
ownpost_shippingbooleanThe shop posts its own cards instead of using the courier
use_company_postmail_amountsbooleanUse company A/B shipping amounts when no company-specific postal priorities exist
postmail_a_amount, postmail_b_amountnon-negative decimal in company currencyOwn-post shipping prices
allowed_delivery_methodsarray of recipient_email, postalReplaces the configured methods; sender email remains available. Changing this field requires an active system-admin key creator and an IP permitted by that creator's restrictions
websitestringThe company website; its domain and every subdomain are approved checkout return URLs. Empty when none is set
ticket_feedecimal or nullLifepeaks' fee per event ticket, including VAT at fee_vat_percent; null when the Lifepeaks default applies
ticket_commission_percentdecimal or nullLifepeaks' commission on ticket sales in percent, including VAT; null when the Lifepeaks default applies
ticket_fee_paid_bybuyer or companyWho pays the ticket fee by default
ticket_commission_paid_by_buyer_percentinteger, 0–100How much of the commission the buyer pays on top of the ticket price by default; an event's commission_paid_by overrides it
fee_vat_percentdecimalThe VAT rate the ticket fee and commission include

ticket_fee, ticket_commission_percent and ticket_commission_paid_by_buyer_percent are Lifepeaks' commercial terms. A partner reads them but never sets them: a PATCH that names either one answers 403 forbidden_field and writes nothing, whatever the key's scopes. Only a Lifepeaks system administrator signed in through MCP with their own account can change them.

A PATCH sends only the fields that change; the rest keep their value. The body is checked as a whole and nothing is written when any field is refused: an unknown field, a wrong type, a validity outside the range, a minimum that is not below the maximum (the stored value counts when only one side is sent), an address that is not an e-mail, or a website that is not an http(s) URL on a real domain answers 422 with the field named under error.fields. The amounts are decimals in the company's currency, as everywhere on this page.

delivery_by_partner is the switch for companies that hand over the card through their own channel. When it is true, Lifepeaks sends nothing to the buyer or the recipient for that company's orders: no payment receipt, no card e-mail, no PDF. Payment, capture, order state, webhooks, and the company's own sell notification are unaffected, and the company is expected to read the card from the order and deliver it. Flip it back to false and Lifepeaks delivers again from the next order on.

website decides which checkout return_url values are approved without further setup. A storefront on another domain registers its origin with POST /v2/return-origins; see Approve your return URL.

The brand endpoints control the identity Lifepeaks applies to a company's generated gift-card PDF and its shop at shop.lifepeaks.dk: display name, tagline, colors, typography, the shop's texts, and the images stored under the roles logo, logo_on_light, and pdf_background. Saving a brand change also attempts to regenerate the company's default PDF. If generation fails, the brand change remains saved and the previous PDF remains available. A published partner template remains selected. See Branded gift-card PDFs.

GET returns a shop object beside the profile fields. shop.colors names the six colors the shop paints by what each one paints: page, card, text, button, button_text and accent. shop.derived holds the three the shop works out from them (highlight, border, muted). These are the values the shop shows right now; the older colors block is the stored profile and holds placeholder values for a company nobody has branded, so read shop.colors to know what a buyer sees. shop.texts holds the company's own shop texts per language (null where the generated sentence in shop.default_texts for that language is shown), and shop.languages the languages it sells in. The shop is served in every one of them: default at the plain address, each other one at its own (shop.lifepeaks.dk/<company>/en), each with its own texts. shop.hero_backdrop says whether the company's uploaded background photo is drawn behind the shop's headline; when it is false, or no background photo is uploaded, the headline sits on the page color with the gift-card picture beside it.

To change them, send the same shape in the PATCH body:

json
{
  "shop": {
    "colors": { "button": "#b32b2b" },
    "hero_backdrop": false,
    "texts": { "da-DK": { "info_title": "Godt at vide", "info_body": "Gavekortet gælder i begge vores caféer." } }
  }
}

Only the colors you send change; every other color stays exactly as the shop showed it, including on the company's first save. This applies to the top-level fields too: saving only a tagline no longer changes the shop's colors. A button_text or text that cannot be read on its background (WCAG AA: 3:1 for button labels, 4.5:1 for body text) is replaced with black or white and listed in the response's adjusted object. A text of null or "" restores the generated sentence. hero_backdrop left out keeps the current choice. A text in a language the company does not sell in, an unknown field, or a color that is not a hex color answers 422 and nothing is written. The shop picks changes up within about a minute.

The storefront manifest

GET /v2/companies/{slug}/storefront-manifest returns everything needed to render a company's shop front that is not a price and not a secret: brand colors, corner radii, font stacks, logo, buyer copy, delivery labels, legal links, and the newsletter offer. It is generated from what the company already holds — its saved shop colors and texts (see above), else the order-form designer's style slots, its uploaded images, its amount range and validity — so it is current the moment a partner changes any of them, and no file is authored per company.

A company that is part of a partner group also gets locations, the other buying locations a buyer can switch between — the same switcher its classic order form shows, governed by the same orderform_associated_companies_show setting. locations.associated is a root company's active children; locations.root is the parent an associated company links back to. Each location is public data only: name, slug (the location's own shop), city, and logo (each of the last two may be null). A company with no other location has no locations key at all.

It answers 404 for a slug your key may not act for, for an inactive company, and for one with no slug. As everywhere in v2, a company you may not reach is not distinguishable from one that does not exist.

Pass locale to get the manifest in another language the company sells in (?locale=en-GB; en, sv-SE and sv name languages too). Left out, it is the company's default language. A language the company does not sell in answers 422, naming the ones it does.

preview is for Lifepeaks' own hosted shop: a token minted by the "Shop & Brand" admin screen (valid for 15 minutes) that returns the manifest drawn from that screen's unsaved values, with "preview": true beside data and Cache-Control: no-store. A token answers only for the company it was made for; any other, expired or unknown token answers 404.

json
{
  "object": "storefront_manifest",
  "data": {
    "slug": "example-partner",
    "companyId": 4711,
    "name": "Example Partner",
    "locale": "da-DK",
    "locales": ["da-DK", "en-GB"],
    "currency": "DKK",
    "brand": { "colors": { "primary": "#617aac", "onPrimary": "#ffffff" } },
    "logo": { "url": "https://…/logo.png", "alt": "Example Partner", "height": 48 }
  },
  "derivation": { "brand_source": "designer", "logo_source": "company" }
}

Three rules govern what it may contain, and they are worth knowing before you build on it:

  • Prices, limits, fees and product names are never in it. They come from GET /v2/products at request time. value.minimumAmount and value.maximumAmount are a fallback used only while that call is failing, and value.quickAmounts are suggestions your interface may filter against the live product.
  • It cannot switch a delivery method on. Whether a method is offered, and what it costs, is the answer from the product. The manifest carries only the partner's own label and description for each.
  • It holds nothing secret. Every value in it is already public on that company's order form.

locale is the language this manifest is written in (a BCP 47 locale such as da-DK, en-GB, nb-NO): every generated sentence is in it, and so are the company's own shop texts for it. locales is every language the company sells in — its classic order form's offer — with the default first; ask for any of them with locale. Two texts are the company's own rich text and read as written in every language: experiences.practicalInfo and marketing.consentLabel. currency and timeZone are the company's, whatever the language.

brand.colors ships backgrounds and their foregrounds in PAIRS, and a foreground is guaranteed only against the background it is named for. onPrimary reads on primary, onAccent on accent, onHighlight on highlight, footerText on footerBackground, and text on both surface and card — each checked to WCAG AA before the manifest is built, whatever the partner stored. Borrowing one of them for a different background is not safe: the label a partner picked for their button is frequently unreadable on their accent colour, and reusing it that way is what left a third of our own hosted shops with an unreadable tag until 2026-09-17. A manifest from an older release may omit onAccent and onHighlight; fall back to onPrimary and check the pair yourself.

logo.url is null for a company that has uploaded no mark. Render logo.alt — the company name — as a wordmark in the company's own heading font and brand.colors.primary rather than substituting an image of your own; that is what the generated gift-card PDF does, so the two agree.

derivation sits beside data, never inside it, and says where each uncertain piece came from: brand_source is designer, profile or default, and logo_source is company or wordmark. It is an operator's diagnostic — use it to find the companies that still need a logo or a brand color, not to render anything.

Protected headless surface

MethodPathScope
GET/v2/productsproducts:read
GET/v2/products/{product_id}products:read
POST, PATCH, DELETE/v2/products*products:write
POST, GET/v2/upload-links*the write scope of the target
GET/v2/products/{product_id}/preview.pdfproducts:read
GET/v2/personalization/greeting-preview.pdfproducts:read
GET/v2/pickup-pointspickup_points:read
POST, PUT/v2/greeting-images/upload-intents*greeting_images:write
POST/v2/quotesquotes:create
POST/v2/ordersorders:create
GET/v2/ordersorders:read
GET/v2/orders/{po_order_id}orders:read
GET/v2/orders/{order_id}/gift-card.pdforders:read
GET/v2/orders/{po_order_id}/lines/{line_id}/gift-card.pdforders:read
POST/v2/orders/{po_order_id}/checkout-sessionscheckout:create
POST/v2/orders/{po_order_id}/settleorders:settle plus negotiated entitlement
POST/v2/orders/{po_order_id}/refundorders:refund
GET/v2/orders/{order_id}/receiptorders:read
GET/v2/orders/{order_id}/cancellable-itemsorders:cancel
POST/v2/orders/{order_id}/cancelorders:cancel
GET, POST, DELETE/v2/webhook-endpoints*, /v2/webhook-deliveries*webhooks:read / webhooks:write
GET, POST, PUT/v2/pdf-templates*pdf_templates:read / pdf_templates:write

Follow Headless checkout for the safe catalog, quote, unpaid order, Lifepeaks-hosted QuickPay, canonical polling, and fulfillment sequence. Follow Signed webhooks for event verification and recovery. The interactive API Reference contains exact request and response schemas.

GET /v2/orders/{order_id}/gift-card.pdf streams a single-line fulfilled API order's document, or one combined document containing every card of a paid classic order, as application/pdf. An API order can be addressed by its po_ id or human reference; both use its recorded v2 template and the same fulfillment rules. Before API fulfillment the route answers 404, and an API order with several product lines answers 409 multiple_gift_cards, so use GET /v2/orders/{order_id}/lines/{line_id}/gift-card.pdf for each line instead. See One document per line.

A classic order is addressed by its order number. Its combined PDF is available once it is paid and has items with codes, including cancelled or refunded historical orders. An unpaid order, one with no eligible items, another company's order, and an unknown id answer 404 with the usual JSON error envelope, so branch on the response Content-Type rather than the status alone. Read the order and follow pdf.url when present instead of polling the download or assembling a different identifier.

Compatibility and item-operation surface

Use these operations for direct gift-card issuance, redemption, and back-office workflows. POST /v2/items with capture and /v2/orders/{legacy_order_id}/capture are not the protected public checkout flow.

MethodPathScope
POST/v2/itemsorders:create + orders:settle + contract
GET/v2/promotionsitems:read
POST/v2/orders/{order_id}/captureorders:settle + contract
POST/v2/orders/{order_id}/claimitems:write
GET/v2/itemsitems:read
GET/v2/items/{code}items:read
GET/v2/items/{code}/document.pdfitems:read
POST/v2/items/{code}/claimitems:write
POST/v2/items/{code}/refunditems:write
POST/v2/items/{code}/cancelitems:write
POST/v2/items/{code}/activateitems:write
POST/v2/items/{code}/resenditems:write

Scanning the QR code at the till

Every gift card, ticket and voucher carries a QR code. It encodes the item's staff redeem link, https://app.lifepeaks.dk/l/{code} — the same value GET /v2/items/{code} returns as claim_url — not the bare code.

Send whatever the scanner read, unchanged, in the {code} slot of any item route. All of these redeem the same card:

text
POST /v2/items/77xrB3e44T/claim
POST /v2/items/https://app.lifepeaks.dk/l/77xrB3e44T/claim
POST /v2/items/https%3A%2F%2Fapp.lifepeaks.dk%2Fl%2F77xrB3e44T/claim

A scanner set to a US keyboard layout on a Nordic till mistypes the link as httpsÆ--app.lifepeaks.dk-l-77xrB3e44T; that form is accepted too. Read the item first (GET /v2/items/{code}) and check available_claim when the till should show the balance before redeeming; otherwise a single POST …/claim with {"type": "all"} is enough.

Conventions

Your own company is the default. Requests act on the company that owns the API key unless another permitted company is selected. Resources belonging to an unrelated company return 404 not_found.

company acts on an assigned company. If Lifepeaks has assigned other companies to yours — the arrangement used by agencies — pass that company's slug in the optional company query parameter.

Company selection. Pass the company slug in the company query parameter. Supported POST and PATCH operations also accept it in the JSON body; the query string wins when both are supplied. POST /v2/quotes accepts no company field in its body; use its query parameter.

bash
curl -H "Authorization: Bearer lp_live_..." \
  "https://api.lifepeaks.dk/v2/items?company=acme-hotels&search=77xrB3e44T"

A slug that is neither your own company nor one assigned to you answers 404 not_found, as does an unknown or inactive company. One key can therefore serve every company an agency works for, and a key per company is equally supported. Call GET /v2/companies to see exactly which slugs a key may use.

Three route families express tenancy differently. The API-key endpoints and GET /v2/health always act on the key's own company and take no company parameter. GET /v2/companies and GET /v2/companies/{slug} enumerate the permitted set, so they too start from the key's own company. The brand endpoints name their company in the path as {company_id}, which accepts the same slugs.

Success responses are unwrapped. A successful response body is the payload. Errors always use the {"error": {…}} envelope.

Pagination is endpoint-specific. Send only query parameters listed for that operation. Unknown pagination parameters are not a portable way to page a route and may be rejected or ignored.

Cursor-paginated lists use { "object": "list", "data": [...], "has_more": <bool>, "next_cursor": <string or null> }. Use limit and starting_after to request pages. Reports, PDF-template listings, order-page revisions, and brand assets have separate response shapes.

  • limit is a whole number from 1 to 100. A value outside that range is clamped into it, and a value that is not a number is ignored, so a list never fails because of its limit.
  • starting_after continues from where the previous page stopped. Read it off the response and send it back unchanged. An id or cursor this API did not issue answers 422 with starting_after named in error.fields, rather than an empty page, so a bad cursor cannot look like the end of the list.
  • has_more is true while rows remain. Stop when it is false; do not infer the end from a short page.
  • One list envelope, everywhere. Every list — products, companies, pickup points, orders, items, events, participants, promotions, subscribers, api-keys, webhook endpoints and webhook deliveries — answers { "object": "list", "data": [...], "has_more": <bool>, "next_cursor": <string or null> }. The rows are always under data, and a list never publishes a count: count data yourself. Brand assets, PDF templates, and order-page revisions are unpaginated and have separate response schemas. The two reporting routes are reports, not lists, and keep their own items / itemsCount rows with offset paging.
  • next_cursor is the cursor for the next page, or null on the last one. Treat it as opaque — do not build one, parse one, or do arithmetic on one; its contents differ between routes and may change. Send it back as starting_after unchanged.
bash
curl -H "Authorization: Bearer lp_live_..." \
  "https://api.lifepeaks.dk/v2/subscribers?limit=50&starting_after=8842"
List routeAccepted pagination and list controls
GET /v2/reports/analytics, /v2/reports/claimed-itemsoffset (default 0), limit (default 10, maximum 100), and order (asc or desc, default desc) plus the route's documented filters
GET /v2/itemslimit and starting_after, answering has_more and next_cursor, plus the route's documented filters. It does not accept offset or order
GET /v2/eventslimit and starting_after, answering has_more and next_cursor. It does not accept offset
GET /v2/events/{slug}/participantslimit and starting_after, answering has_more and next_cursor. It does not accept offset or order
GET /v2/subscriberslimit (default 50) and starting_after; optional company, date_from, and date_to. The list spans both the subscribers collected on Lifepeaks order pages and the marketing consents recorded on v2 orders, so a row's id is opaque: send it back unchanged rather than parsing it
GET /v2/promotionslimit and starting_after; optional company. Returns every campaign when limit is omitted. Ordered by name, then id
GET /v2/webhook-endpointslimit and starting_after; optional company. Returns every endpoint when limit is omitted
GET /v2/companieslimit and starting_after. Returns every permitted company when limit is omitted
GET /v2/api-keyslimit and starting_after. Returns every key when limit is omitted
GET /v2/productsOptional company, type, category and slug (exact; the only way a private event is listed) filters, plus limit and starting_after. Returns the whole catalog when limit is omitted
GET /v2/ordersOptional company, status, payment_status, created_after, created_before, email and client_reference, plus limit (default 25) and starting_after, answering has_more and next_cursor
GET /v2/webhook-deliveriesOptional company, limit (1–100, default 50) and starting_after, answering has_more and next_cursor; no offset and no order
GET /v2/order-page/revisionsOptional company and locale only; no pagination
GET /v2/companies/{company_id}/brand/assetsNo query parameters and no pagination

Default page sizes vary by endpoint. Use the table above to determine whether omitting limit returns a page or the full list.

An event with no participants returns 200 with an empty data array. A 404 means the event does not exist for the acting company.

See Events & Reporting for the different event and reporting list controls, and the API Reference for the exact parameter set of every operation.

Date formats depend on the endpoint. Item and report filters use YYYY-MM-DD; malformed values may be ignored. Order-list filters accept dates or RFC 3339 timestamps and reject malformed values with 422. Validate inputs and follow each operation’s parameter schema.

Two different money units live under /v2. The headless commerce routes take whole numbers of the smallest unit of the currency, while direct issuance and item operations use decimal currency amounts. The field is named amount on both sides, so confirm the expected unit before your first live call:

Routeamount for a DKK 500.00 card
POST /v2/quotes, POST /v2/orders50000 — whole øre
POST /v2/items500 — decimal kroner

subtotal, fees, shipping, tax, total, minimum_amount, maximum_amount, and order_fee are all whole numbers of the smallest unit; whole numbers of the smallest unit avoid rounding errors.

tax is included in total. On the headless checkout path, it reports VAT calculated on order fees and shipping using the company’s configured rates. It does not add tax to the gift-card face value. Display the returned total; do not add tax again. A subsequent order is priced again, so compare its totals with the quote. Amounts on /v2/items/* and /v2/reports/* use decimal currency units.

Error codes:

HTTP statuserror.codeMeaning
401unauthorizedMissing, malformed, expired or revoked key
403insufficient_scopeValid key, missing the scope the operation needs
404not_foundNo such resource for the company you are acting as — or no such company. One envelope covers every miss: an unknown code, order, event, line, PDF template, upload intent or company all answer not_found, so a 404 never tells you which of them was missing, and never confirms that a foreign one exists
422validation_failedThe request broke a business or input rule
422amount_precision_unsupportedPOST /v2/orders only. The order total needs more precision than a payment amount can hold — see Totals a payment can hold
422greeting_image_not_foundPOST /v2/orders only. The design_id or upload_id on greeting.image names no picture this company can use
422delivery_method_unavailablePOST /v2/orders and POST /v2/quotes. The method named is not one the company offers
422delivery_destination_unavailableThe courier does not deliver that way to that country
422send_at_unsupportedThe method chosen cannot be scheduled
422shipping_priority_unsupporteddelivery.shipping_priority was sent to a company whose cards travel with a courier. A courier offers one priority, so there is nothing to choose
422shipping_priority_unavailableThe priority named is not one the postal method publishes for this company
422sender_company_requiredThe product may only be bought by a company and the order carried no sender.company, or carried one without its address
422discount_code_not_foundThe discount_code is unknown, switched off, not yet open, expired, or fully used. A single answer covers all five cases
422discount_code_not_applicableThe code is live, but nothing in this order answers to it
409insufficient_stockSpecial offers only. The last voucher went to another buyer between the quote and the order. Nothing in the body is wrong, so re-read the catalog rather than correcting a field
422below_minimum, above_maximumSpecial offers only. The line's quantity is outside the option's own bounds, and is named on items.<n>.quantity
503image_store_unavailableFinalizing a greeting picture only. The upload was accepted; storing it failed. Retry after Retry-After with the same key
503pickup_lookup_unavailableGET /v2/pickup-points only. The courier could not be reached. Not an empty result
503checkout_unavailableThe payment gateway could not open a session. Retry with the same key
401test_key_not_accepted_in_productionA test key was sent to production. Test keys work only on demo (api-demo.lifepeaks.dk)
422invalid_sha256, invalid_byte_size, invalid_content_typeReserving a greeting-image slot. The declaration is malformed or outside the published limits
422partial_refund_not_allowedRefund only the whole remaining balance; omit amount or cancel one card by code
409order_not_refundablePOST /v2/orders/{id}/refund only. The order was never paid, its payment cannot be read, or a full refund fails the existing item-cancellation rules
409order_fully_refundedPOST /v2/orders/{id}/refund only. Nothing is left to return
422refund_amount_too_largePOST /v2/orders/{id}/refund only. The amount is above what remains
502refund_declinedPOST /v2/orders/{id}/refund only. The gateway refused its part of the refund
503refunds_unavailableRefund processing is temporarily unavailable; no refund was started
409refund_in_progressPOST /v2/orders/{id}/refund only. Another refund of that order is still being processed
409amount_precision_unsupportedPOST /v2/orders/{id}/refund. The order's stored total cannot be represented exactly, so it cannot be refunded through the API
403credential_not_attributedEvery write route. The key cannot be associated with a credential record. Issue a new key through the admin UI or API
403checkout_not_enabledPOST /v2/orders/{id}/checkout-sessions only. Lifepeaks Checkout is not on this company's contract
409checkout_in_progressPOST /v2/orders/{id}/checkout-sessions only. Another session for the same order is still being opened. Retry after Retry-After with the same key
409order_not_payablePOST /v2/orders/{id}/checkout-sessions only. The order is not a pending unpaid gateway order any more — it was paid, settled, cancelled, or its payment does not match it
403settlement_not_enabledThe settlement routes only. The mode asked for is not on this company's contract
409order_not_settleablePOST /v2/orders/{id}/settle only. The order is not an intact pending headless order
409settlement_reference_conflictPOST /v2/orders/{id}/settle only. That order, or that external_reference, has already been settled
409delivery_not_replayablePOST /v2/webhook-deliveries/{id}/replay only. That delivery cannot be replayed — it is already queued, or its endpoint is disabled
503template_unavailableGET /v2/pdf-templates/{template_id}/preview only. The template exists and its bytes could not be read. Retry

The product catalog

GET /v2/products — scope products:read

One list holds everything the acting company sells. Four product families share it, and the type field identifies each entry:

typeidOption idWhat it is
gift_cardgift_card_value—The company's variable-value gift card. The buyer picks any amount between pricing.minimum_amount and pricing.maximum_amount. One per company.
gift_card_variantgcv_<id>gcvo_<id>One experience the company sells — a spa day, a dinner, a course. It is priced by the option the buyer picks, so pricing.type is fixed and the money sits on options[].
event_ticketevt_<id>evto_<id>One event the company sells tickets to. It carries an event block with the dates, the venue and the rules, and one option per ticket type.
special_offerso_<id>sov_<id>One discounted offer the company sells as a voucher. Each option publishes what it costs now, what it cost before, and what the issued voucher is worth.

The value product is the first entry whenever the company has one, but clients should identify products by type and id. Fetch the value product at GET /v2/products/gift_card_value when it is the one you want.

fee_basis determines how fees apply. Gift cards, experiences, and special offers use per_line, charging once per line regardless of quantity. Events use per_ticket, charging once per seat. Use the quote response for the payable total.

Operator-issued products. Ticket coupons, Saved Special Vouchers, and New Special Vouchers are issued through the admin interface. They are excluded from catalog, quote, and order operations, but their codes support lookup and redemption through /v2/items.

Benefit deals are read-and-redeem only. A benefit deal is issued to a company, not bought by a buyer, so it has no catalog, quote or order surface. The company it was issued to reads it at GET /v2/items/{code}, prints it at GET /v2/items/{code}/document.pdf and redeems it at POST /v2/items/{code}/claim, exactly as it does a gift card. Searching for type=BENEFITDEAL at GET /v2/items lists them.

Experiences are available independently of variable-value gift cards. If a company has no configured gift-card amount limits, gift_card_value is absent and its individual lookup returns 404 not_found. Identify products by type and id.

bash
curl -sS -H "Authorization: Bearer lp_live_..." \
  "https://api.lifepeaks.dk/v2/products?type=gift_card_variant"
json
{
  "object": "list",
  "has_more": false,
  "data": [
    {
      "id": "gcv_4821",
      "object": "product",
      "type": "gift_card_variant",
      "name": "Spa day for two",
      "description": "<p>Two hours in the spa, robes included.</p>",
      "formalities": "<p>Booking required. Valid Monday to Thursday.</p>",
      "currency": "DKK",
      "categories": ["cat_18", "cat_22"],
      "images": [{ "url": "https://assets.lifepeaks.dk/spa.webp", "role": "product" }],
      "validity": { "type": "months", "months": 24, "valid_from": null, "valid_until": null },
      "company_required": true,
      "pricing": { "type": "fixed" },
      "options": [
        {
          "id": "gcvo_9107",
          "object": "product_option",
          "name": "Weekday",
          "description": "<p>Monday to Thursday.</p>",
          "amount": 100050,
          "fees": { "order_fee": 2500 },
          "quantity": { "minimum": 1, "maximum": 20 },
          "availability": { "limited": true, "remaining": 7, "in_stock": true },
          "images": [{ "url": "https://assets.lifepeaks.dk/weekday.webp", "role": "option" }],
          "active": true
        }
      ],
      "active": true
    }
  ]
}

description and formalities are the company's own HTML, in the response language. validity is either {"type": "months"} with a months count, or {"type": "fixed_date"} with valid_from and valid_until as timestamps.

company_required identifies products restricted to business buyers. It is on experiences, on special offers and — as event.requires.company — on events. An order for such a product must carry sender.company with its name, its VAT number and its full address, or it is refused with sender_company_required. The value gift card always publishes false. See Buying as a company.

Every option carries its own price and its own order fee. amount and order_fee are whole numbers of the smallest currency unit, like the rest of the headless path. The fee is charged once per line, so each option repeats the same value rather than sharing one.

Option availability. Sold-out options remain visible with in_stock: false while another option of the experience is available. Use this state to disable unavailable selections. remaining contains a number only when the company publishes stock levels; otherwise it is null. limited indicates whether stock is finite.

quantity.maximum is enforced. It is the same number POST /v2/quotes and POST /v2/orders apply to that line, so a storefront can bound its quantity control by it and trust the answer. An option that configures no maximum of its own is published and sold at 100. An experience that limits its stock and publishes the remaining count lowers the maximum to what is left; one that hides its count keeps its configured maximum and is refused above its real stock when the order is written. Every option is capped at 1000, the ceiling the Lifepeaks order page applies to one line.

Experience availability. An experience must be active, public, orderable, within its publication window, and have at least one active option in stock. If all options sell out, the product is removed from the catalog and individual lookup returns 404. Availability is checked again at quote and order creation.

Experiences with active gift-card campaigns use the hosted order page. These products are temporarily excluded from API checkout because their campaign pricing is unsupported. They return 404 not_found on lookup and cannot be quoted or ordered. They return to the catalog when the campaign ends. Inactive campaigns and campaigns that apply only to variable-value gift cards do not exclude the experience.

An event and its tickets

An event_ticket product represents an event. Its event object describes the occasion; its options describe the available ticket types.

json
{
  "id": "evt_412",
  "object": "product",
  "type": "event_ticket",
  "slug": "new-years-dinner",
  "name": "New Year's dinner",
  "currency": "DKK",
  "categories": ["cat_18"],
  "images": [{ "url": "https://assets.lifepeaks.dk/dinner.webp", "role": "product" }],
  "event": {
    "starts_at": "2026-12-31T18:00:00+01:00",
    "ends_at": "2027-01-01T02:00:00+01:00",
    "date_precision": "date_time_range",
    "tagline": "Six courses and a view",
    "venue": { "name": "Acme Venue", "address": "Example Street 4", "postcode": "1058" },
    "grouped_tickets": false,
    "comment": { "available": true, "label": "Allergies?", "max_length": 500 },
    "requires": { "phone": false, "company": false },
    "capacity_mode": "per_ticket",
    "tickets_per_event": null,
    "add_ons_sold_alone": false,
    "collection_points": [
      { "id": "epp_31", "object": "collection_point", "name": "Main entrance", "address": "Example Street 4", "city": "1058 København K" }
    ]
  },
  "validity": {
    "type": "fixed_date",
    "months": null,
    "valid_from": "2026-12-31T18:00:00+01:00",
    "valid_until": "2027-01-01T02:00:00+01:00"
  },
  "fee_basis": "per_ticket",
  "pricing": { "type": "fixed" },
  "options": [
    {
      "id": "evto_9310",
      "object": "product_option",
      "name": "Dinner seat",
      "description": "<p>Six courses.</p>",
      "amount": 145000,
      "fees": { "ticket_fee": 2500 },
      "quantity": { "minimum": 1, "maximum": 6 },
      "availability": { "limited": true, "remaining": 42, "in_stock": true },
      "requires": { "code": false, "address": false, "collection_point": true },
      "add_on": false,
      "images": [],
      "active": true
    }
  ],
  "active": true
}

amount and ticket_fee use whole numbers of the smallest currency unit. ticket_fee is charged per seat, as specified by fee_basis: per_ticket. It is 0 for add-on options and events where the seller absorbs the fee. Use the quote response to display current charges.

  • date_precision says how much of the date the organiser actually set: date for a single day, date_time for a day and a start time, date_time_range for a day with a start and an end time, date_range for a span of days. ends_at is null on the first two, so render a date event as a day rather than as midnight. An event's validity is always fixed_date and repeats those two moments, so a ticket is valid for the occasion and nothing else.
  • grouped_tickets of true means the whole line is issued as one item carrying every seat, rather than one item per seat. It is what issued_count on the order line reports back.
  • capacity_mode is per_ticket when the event counts seats, or per_order when it counts orders. A per_order event caps the tickets of a whole order at tickets_per_event, across every line of that event, not line by line.
  • requires.phone and requires.company are the event's own demands on the buyer. requires.company is the company_required rule above.
  • collection_points are where a ticket is handed over at the event. They are epp_<id> and are not the courier collection points at GET /v2/pickup-points, which are for posting a gift card. An option whose requires.collection_point is true must name one.
  • add_on of true marks an option that cannot be bought on its own — a drinks package beside a seat. It is orderable only alongside a non-add-on line of the same event, unless the event sets add_ons_sold_alone.
  • comment.available says the organiser accepts a note from the buyer, and comment.label is the question to show. Send the answer as items[].ticket.comment.
  • slug is the last segment of the event's direct link on the Lifepeaks-hosted order form (/giftcard/{company}/{slug}), or null when the event was never given one. Partners put these links in mails and on posters, so a storefront that replaces the hosted form should answer the same slug under its own domain.
  • availability reads exactly as it does on an experience: limited is always true for a seat, in_stock says whether any are left, and remaining is a number only when the event is configured to publish its seat count and null otherwise. A sold-out ticket type stays in the list with in_stock: false rather than disappearing, so a storefront can grey it out.

Event availability. Events are published when active, public, fully dated, and within their sales window. Unavailable events cannot be quoted or ordered. Recheck availability when the buyer submits an order.

A special offer and its vouchers

A special_offer product is one offer. Each option is one voucher a buyer can hold.

json
{
  "id": "so_884",
  "object": "product",
  "type": "special_offer",
  "name": "Two nights, half price",
  "description": "<p>Friday and Saturday.</p>",
  "formalities": "<p>Subject to availability.</p>",
  "currency": "DKK",
  "images": [{ "url": "https://assets.lifepeaks.dk/twonights.webp", "role": "product" }],
  "validity": { "type": "months", "months": 12, "valid_from": null, "valid_until": null },
  "company_required": false,
  "available_until": "2026-11-30T23:59:59+01:00",
  "fee_basis": "per_line",
  "pricing": { "type": "fixed" },
  "options": [
    {
      "id": "sov_5501",
      "object": "product_option",
      "name": "Double room",
      "description": "<p>Two nights for two.</p>",
      "amount": 120000,
      "regular_amount": 240000,
      "discount_percent": 50,
      "redemption_value": 240000,
      "fees": { "order_fee": 2500 },
      "quantity": { "minimum": 1, "maximum": 4 },
      "availability": { "limited": true, "remaining": 12, "in_stock": true },
      "active": true
    }
  ],
  "active": true
}

Every one of those amounts is a whole number of the smallest currency unit.

  • amount is what the buyer pays now.
  • regular_amount is what the option cost before the offer, for a storefront to strike through, or null when the operator recorded none.
  • discount_percent is the saving the operator advertised, or null.
  • redemption_value is what the issued voucher is worth when it is spent. On most offers it equals amount. On an offer configured to redeem at the regular price it equals regular_amount instead: the buyer pays 1200,00 kr. and holds a voucher worth 2400,00 kr. Show this figure wherever you state what the buyer receives, so the receipt agrees with the operator's redeem screen.
  • available_until is the moment the offer stops being orderable, as an RFC 3339 timestamp, or null when it never does. The Lifepeaks order form prints it as "Offer is online until"; a storefront needs the same date to say the same thing.
  • validity is how long the issued voucher lasts, and is read the same way as on any other product: {"type": "months"} with a count, or {"type": "fixed_date"} with valid_from and valid_until. An offer that fixes only a start date reports valid_until of null rather than inventing an end.

An offer's order_fee is charged once per line, whatever the quantity, which is what fee_basis of per_line says.

availability reads as it does everywhere else: limited is always true for a voucher, in_stock says whether any are left, and remaining is a number only when the variation is configured to publish its count. A sold-out option stays in the list with in_stock: false rather than being hidden. quantity.maximum is the number the order enforces, and stock is checked again when the order is created.

Filtering and paging the catalog

ParameterNotes
typegift_card, gift_card_variant, event_ticket or special_offer. Narrows the list to one family
categoryA cat_<id> from a product's categories. Categories belong to experiences, so naming one drops the value product AND every special offer
slugAn event's exact slug, the last segment of its direct link. Answers 0 or 1 product of the acting company, and is the only way a private event is listed
limit, starting_afterThe shared cursor paging described under Conventions. Omitting limit returns the whole catalog

Filters that match no products return an empty list.

One product by id

GET /v2/products/{product_id} — scope products:read

Takes any id the list publishes: gift_card_value, or a gcv_<id>, evt_<id> or so_<id>. The response is the product object itself, not wrapped in a list.

A private event, experience or special offer is reached only through its direct-link slug. GET /v2/products?slug=<slug> returns the usual list envelope with zero or one item. Only an exact, case-sensitive slug unlocks a private product; an unknown, empty or malformed slug returns data: []. Type and category filters still narrow the result. Experience links from older versions resolve to the current sellable version, as in the order form. Private products appear in no unfiltered catalogue or storefront listing. Buyer reads by numeric product id return 404; authorized owner reads of events and special offers retain their management behavior. Quote and order lines must carry the matching slug beside the product and option ids. Returned links.shop opens the product directly, including private products.

When the slug belongs to one of the acting company's products that is not on sale right now, the empty list also carries unavailable: reason is not_started (with opens_at), ended, sold_out or not_on_sale, beside the product name (null for not_on_sale, because such a product may be an unpublished draft). For not_started and sold_out it also carries private (true or false), so a shop can let search engines index a public product that will be sold again; it is null for the other reasons. A slug that no product of the acting company carries answers without it, so another company's product is never confirmed. An event's event.sales_end_at states when its tickets stop being sold.

Every miss is the same 404 not_found, never a 403. Another company's product, a private experience, one outside its publication window, an undated event, a benefit deal, and a plain typo all answer identically, so the response can never confirm that a foreign product exists.

Managing experiences and events

POST /v2/products, PATCH /v2/products/{product_id}, DELETE /v2/products/{product_id} — scope products:write

A partner can manage its own experiences (gift_card_variant) and events (event_ticket) without the admin interface. A create picks the family with type — experiences when it is left out — and a change or deactivation picks it by the id's prefix. The routes save through the same rules the admin's forms apply, so what the API accepts is exactly what an operator could have entered. The value gift card is company configuration rather than a product row, and special offers are not writable yet; they answer 404 not_found on the write routes. Events are described in Events below; the rest of this section is about experiences.

bash
curl -sS -X POST -H "Authorization: Bearer lp_live_..." -H "Content-Type: application/json" \
  "https://api.lifepeaks.dk/v2/products" -d '{
    "name": { "da-DK": "Spa-dag for to", "en-GB": "Spa day for two" },
    "description": { "da-DK": "<p>To timer i spa.</p>", "en-GB": "<p>Two hours in the spa.</p>" },
    "formalities": { "da-DK": "<p>Booking påkrævet.</p>", "en-GB": "<p>Booking required.</p>" },
    "validity": { "type": "months", "months": 24 },
    "options": [
      { "name": { "da-DK": "Hverdag", "en-GB": "Weekday" }, "amount": "1000.50", "quantity": { "minimum": 1, "maximum": 20 } },
      { "name": { "da-DK": "Weekend", "en-GB": "Weekend" }, "amount": "1495.95" }
    ]
  }'

The answer is the managed product: the same object GET /v2/products/{product_id} returns, plus a publication block.

json
{
  "id": "gcv_4822",
  "object": "product",
  "type": "gift_card_variant",
  "name": "Spa day for two",
  "validity": { "type": "months", "months": 24, "valid_from": null, "valid_until": null },
  "options": [
    { "id": "gcvo_9110", "object": "product_option", "name": "Weekday", "amount": 100050, "quantity": { "minimum": 1, "maximum": 20 }, "active": true },
    { "id": "gcvo_9111", "object": "product_option", "name": "Weekend", "amount": 149595, "quantity": { "minimum": 1, "maximum": 100 }, "active": true }
  ],
  "active": true,
  "publication": { "published": true, "reasons": [] }
}

Texts are keyed by language tag — da-DK, en-GB, sv, de, no, nl. The da-DK text is the base every other language falls back to, so a create requires it for name, description and every option name; the other languages are optional. The catalogue reads publish each text resolved for the response language as one string, which is why the example above reads back "Spa day for two".

An option's amount is a decimal in the company's currency, as an operator would type it — "1000.50" for DKK 1.000,50, at most two decimals, above zero. It is the one money field on the headless surface that is not in the smallest unit; the response reports it back as 100050, a whole number of øre, like every other read.

publication says whether the catalogue lists the product, and why not. An experience is saved whether or not it can be sold: one created with every option active: false answers 201 with "published": false and "reasons": ["no_active_option"], and is absent from GET /v2/products until an option is active. The reasons are inactive, private, before_publish_from, after_publish_until, no_active_option, out_of_stock and active_campaign — every one that applies, not just the first. The write responses also list inactive options with active: false, which the catalogue reads omit.

An update is a new version, and the id changes. Lifepeaks keeps every version of an experience so a card sold last year still prints last year's text; the admin form has always worked this way. PATCH and DELETE therefore answer with a new id and new option ids. The previous ids leave the catalogue at once and stay valid only for the cards already issued against them. Re-read the catalogue after a write rather than caching product ids across one.

options on a PATCH is replaced whole. When the field is present it is the complete new set, and any current option not in it is gone from the new version. When it is absent, the current options are carried forward unchanged, translations and pictures included. There is no per-option route. Every other field is optional on a PATCH, and a text object needs only the languages being changed.

bash
curl -sS -X PATCH -H "Authorization: Bearer lp_live_..." -H "Content-Type: application/json" \
  "https://api.lifepeaks.dk/v2/products/gcv_4822" \
  -d '{ "name": { "en-GB": "Spa day for two (renamed)" }, "validity": { "type": "months", "months": 36 } }'

DELETE deactivates; nothing is ever deleted. It sets active to false, carries the options forward, and answers the new version with "reasons": ["inactive"]. A PATCH with { "active": true } on that id puts the experience back on sale.

Validation names every field. A body the models refuse answers 422 validation_failed with error.fields keyed by path — name.da-DK, options[1].amount, options[0].quantity.minimum, validity.valid_until — and an unsupported field is refused under body by name. Nothing is written when any field is refused.

Same tenancy rule as the reads. Another company's experience, a superseded version and a typo all answer 404 not_found, never 403; for a superseded version of your own experience the error also carries current_id, the id of the version that replaced it. The acting-company parameter works as everywhere else. Experiences accept company-owned categories, an HTTPS image_url, and option stock (remaining units, or null for unlimited). visible_remaining_number controls whether buyers see the count. Omitted fields retain their defaults on creation and their current values on update. A new version receives only the remaining allocation; sales from older versions do not replenish its stock.

Events

POST /v2/products with "type": "event_ticket" creates an event (evt_<id>) with its ticket types (evto_<id>):

bash
curl -sS -X POST -H "Authorization: Bearer lp_live_..." -H "Content-Type: application/json" \
  "https://api.lifepeaks.dk/v2/products" -d '{
    "type": "event_ticket",
    "name": { "da-DK": "Winter Tasting Menu", "en-GB": "Winter Tasting Menu" },
    "description": { "da-DK": "En aften på Nordlys Bistro.\n\nMENU\nØsters\nLam", "en-GB": "An evening at Nordlys Bistro.\n\nMENU\nOysters\nLamb" },
    "venue": { "name": "Nordlys Bistro", "address": "Nordlysvej 12", "postcode": "1058 København K" },
    "starts_at": "2026-12-10T19:30",
    "ends_at": "2026-12-10T21:30",
    "publish_from": "2026-11-01",
    "publish_until": "2026-12-10T12:00",
    "private": true,
    "options": [{ "name": { "da-DK": "Billet", "en-GB": "Ticket" }, "amount": "450", "stock": 40 }]
  }'
  • Times are Copenhagen wall-clock time unless they carry an offset. starts_at alone with a time is a start time; with ends_at on the same day it is a time range; ends_at on a later day makes a range of days (at most seven); a date without a time is an all-day event.
  • publish_from and publish_until are the sale window. Left out, sales open now and close when the event starts. The catalogue lists, and the quote and order routes sell, an event only inside its window.
  • stock is the seats for sale on each ticket type; quotes and orders enforce it. On a PATCH it replaces the seats still for sale, and the change is logged as the admin form logs it.
  • A plain-text description keeps its paragraphs and line breaks; HTML is kept as sent. It holds at most 2500 bytes of text once markup is stripped (æ, ø and å count as two); a longer one is refused with its size.
  • The base text is da-DK, except for a company whose default language is another one: it may send only that language, which becomes the base and the source of the slug. url_slug requests the direct-link slug. A rename preserves it when it remains unique across the company's product families.
  • Who pays the commission is commission_paid_by (buyer or partner), set only by a Lifepeaks system administrator; an API key is refused with 403 forbidden_field. Each ticket type in the answer carries buyer_price_per_ticket, the total one ticket costs the buyer (price, ticket fee and commission when the buyer bears it), in the smallest unit.
  • The date cannot change once tickets were paid out to the company: such a PATCH answers 422 on starts_at and changes nothing.
  • private: true keeps the event out of every list — GET /v2/products, the shop and the order form — while its direct links sell it. The answer carries them in links.order_form and links.shop.
  • Anything left out gets the admin's default: the company's own name and address as the venue, one ticket page per seat, and the company's ticket-fee settings.
  • The picture: image_url takes an https image already online (PNG, JPEG or GIF, at most 10 MB; an address on a private or reserved network, or a redirect to one, is refused). For a file you hold, create an upload link with target: event_image.
  • An event is updated in place: it keeps its id, and ticket types keep theirs. options on a PATCH is the whole new set, matched by id: an entry with an id changes that ticket type, one without adds one, and one left out is removed — or only taken off sale when tickets were sold on it.

POST /v2/upload-links, GET /v2/upload-links/{id} — the write scope of the target

A single-use upload URL valid for 30 minutes. Choose event_image with product_id (scope products:write), brand_asset with role (logo, logo_on_light, pdf_background; scope brand:write) or pdf_template with locale (scope pdf_templates:write). A PDF becomes a validated version that is published separately. The creation response includes upload_url, upload_method: "PUT", max_bytes, accepted_types, expires_at, and the fallback human page url. Both URLs contain the same token and are returned only at creation.

If a picture is already online, pass its https URL as image_url on a write that accepts it. If you have the file, call upload_link_create (or POST /v2/upload-links). Upload the file yourself: PUT it to upload_url. Do not open a browser and do not ask the user to upload.

bash
curl -X PUT --data-binary @file -H 'Content-Type: <type>' '<upload_url>'

Use a MIME type from accepted_types, keep the body within max_bytes, and upload before expires_at. The PUT answer contains status: "used" and the stored result; no poll is needed. Only if you cannot make HTTP requests, give the user the link url and poll upload_link_status.

PUT /upload-link?token=... runs on the admin host returned in upload_url, not the API host. Send the raw bytes with their Content-Type; optional X-Filename preserves the original name. No login, API key, cookie or CSRF token is needed. Success is JSON 200 with status: "used" and result, identical to the status resource. Errors are JSON { "error": { "message": "..." } }: 410 expired or already used, 411 missing Content-Length (curl sets it automatically), 413 too large, 415 unsupported media type, 422 refused file. Refused files leave the link usable. GET and CSRF-protected HTML POST remain available as a fallback.

GET /v2/upload-links/{id} reports pending, used (with result) or expired. At most 20 links per company per hour; more answers 429 rate_limited.

An example of the card a product issues

GET /v2/products/{product_id}/preview.pdf — scope products:read

Streams a watermarked example of the gift card, ticket, or special-offer voucher this product would issue, as application/pdf. It is drawn from the company's own design and carries the product's own name and text, with placeholders in place of the redeemable code and QR image (___Preview___ and a sample QR that opens lifepeaks.dk) and a preview watermark across it. It is meant to be shown to a buyer before they pay — the Lifepeaks-hosted order page has offered the same document as "Se eksempel" for years, and partners attribute a measurable part of their conversion to it.

Takes gift_card_value, gcv_<id>, evt_<id>, or so_<id>. An experience with several options takes ?option=gcvo_<id> to choose which variant is drawn; without one the first option of that experience is used, which is a correct example of the same design. An option belonging to a different experience is refused rather than drawn.

http
GET /v2/products/gcv_39065/preview.pdf?option=gcvo_36460
Authorization: Bearer lp_live_...

Events take option=evto_<id> and special offers take option=sov_<id>. Without an option, the first visible option is used. Event extra content and the selected special-offer option’s extra description are included as a second watermarked page when configured. Private products require their exact slug; foreign products/options and mismatched options answer 404. Benefit deals are outside the public catalog and remain unavailable. A ticket or offer preview also answers 404 when its saved design has no enabled native fields, including a gift-card-only uploaded template; no substitute gift-card layout is generated.

It is a document, so branch on the Content-Type. A hit answers application/pdf; every miss answers the JSON error envelope with 404 not_found, on the same rule as the product read — a foreign product and a typo are indistinguishable.

Do not put this URL in a page. It is authenticated, so the request has to be made by your server. Proxy it under a path of your own, the same way you proxy the fulfilled document.

An example of the greeting page

GET /v2/personalization/greeting-preview.pdf — scope products:read

Streams a watermarked example of the greeting page that accompanies a gift card, as application/pdf, drawn from the company's own greeting template. It is the "Se eksempel" beside the greeting field on the Lifepeaks-hosted order form: the buyer sees their own words and picture on the real layout before they pay.

All three query parameters are optional. text is the greeting message (cut at 2000 characters, the same limit POST /v2/orders applies). design names one of the company's own pictures, a gid_<id> from the product's personalization.designs. upload names the buyer's own finished upload, a gimg_<id> from POST /v2/greeting-images/upload-intents/{id}/finalize. Send one of the two ids, not both; with neither the page is drawn without a picture.

http
GET /v2/personalization/greeting-preview.pdf?text=K%C3%A6re+Karen&design=gid_4711
Authorization: Bearer lp_live_...

Same conventions as the card example. A hit answers application/pdf; an id this company does not own answers the JSON error envelope with 404 not_found, indistinguishable from a typo. Proxy it from your server; never put the URL in a page.

Campaigns embedded on the value product

The value product carries a promotions array — the gift-card campaigns a buyer may pick right now — so a storefront renders the product and its offers in one request:

json
{
  "id": "gift_card_value",
  "type": "gift_card",
  "promotions": [
    { "id": 499, "name": "Autumn discount", "kind": "discount", "percent": 20, "minimum_amount": 20000, "maximum_amount": 100000 },
    { "id": 512, "name": "Black Friday bonus", "kind": "added_value", "percent": 15, "minimum_amount": null, "maximum_amount": null }
  ]
}
  • id is the same bare integer GET /v2/promotions publishes and POST /v2/items takes as promotion_id, so a campaign read off the product can be ordered with unchanged.
  • kind is discount (the buyer pays less) or added_value (the card is worth more). percent is that campaign's percentage.
  • minimum_amount and maximum_amount bound the card value the campaign accepts, and are null when it is unbounded. Here they are whole numbers of the smallest unit; on GET /v2/promotions, amount_from and amount_to are decimals in major currency units.
  • Only public, currently open campaigns appear. A campaign left switched on after its end date is not published, and a secret campaign never is. No read surface hands out a campaign code.

Experience products carry no promotions array. A campaign applies to gift-card value, and is never applied to an experience line — the option's configured price is what a buyer pays. An experience with a running campaign is not published here, so the two pricing rules never conflict: while the campaign runs, that experience is sold through the Lifepeaks order page. See Quote and order lines.


How the card is delivered

Published on every product as delivery_methods, by GET /v2/products. There is no separate route for it: how a card travels is a property of the company, not of the product, so every product of a company carries the same list — and the list your page renders is the list an order is checked against.

Three ways a buyer can receive a gift card, and what each costs this company's buyers. All three are always present; available says which ones the company offers.

idWhat it does
sender_emailE-mails the card to the buyer, who passes it on. It travels on the payment receipt, so it costs nothing and cannot be scheduled.
recipient_emailEmails the card to the recipient. Supports scheduled delivery.
postalPosts a printed card, through a courier or the company's own post.
json
{
"delivery_methods": [
  { "id": "sender_email", "label": "Your E-mail", "available": true, "price": 0, "price_varies": false, "supports_send_at": false },
  { "id": "recipient_email", "label": "Receivers E-mail", "available": true, "price": 0, "price_varies": false, "supports_send_at": true },
  {
    "id": "postal",
    "label": "with GLS",
    "available": true,
    "price": 6000,
    "price_varies": true,
    "supports_send_at": false,
    "carrier": "gls",
    "pickup_point_required": true,
    "extra_item_price": 1000,
    "phone_required": false,
    "destinations": [
      { "country": "DK", "name": "Denmark", "pickup_price": 6000, "private_address_price": null, "company_address_price": 7000 }
    ],
    "priorities": [
      { "id": "spri_1", "label": "Almindelig post", "description": "3-5 hverdage", "hint": null, "price": 4500, "default": true },
      { "id": "spri_2", "label": "Quickbrev", "description": "1-2 hverdage", "hint": null, "price": 7500, "default": false }
    ]
  }
]
}

Check available before offering a method. Unavailable methods remain in the response with available: false. Requests selecting them are rejected.

Delivery prices use the smallest currency unit. When price_varies is true, display price as a starting price. Postal charges depend on destination, address type, and additional-item fees. Send the delivery selection to POST /v2/quotes for the exact amount.

Scheduling requires supports_send_at: true. Recipient-email delivery supports scheduling. Postal delivery supports it when the company posts its own cards; courier delivery and sender-email delivery do not. Providing send_at without a method selects recipient-email delivery.

label is what the Lifepeaks-hosted order page calls the method, in the response language. Show it or write your own copy — the id is what an order names.

A postal entry carries where it ships and what each shape of address costs there. A null price means that shape is not offered in that country: with the current courier, private home delivery is offered nowhere, and business delivery only in Denmark.

priorities is how fast the card travels, and it appears only when the company posts its own cards. A company that hands its cards to a courier gets no priorities key at all, because a courier offers one speed; sending delivery.shipping_priority to such a company is refused with shipping_priority_unsupported rather than ignored. price is the postage for one card in the smallest currency unit, excluding the surcharge for each card after the first, which is the same convention destinations[].*_price uses. The entry whose default is true is what an order with no shipping_priority is charged, and it is always the cheapest. An id this list does not contain is refused with shipping_priority_unavailable.

The key is absent, rather than a one-entry list, whenever there is no real choice to publish: fewer than two priorities, two priorities that price the same, or a default that is not the cheapest. Read the key's presence as "offer the buyer a choice", and leave the control out when it is missing.

Collection points

GET /v2/pickup-points?country=DK&postcode=2200 — scope pickup_points:read

The shops and parcel lockers the courier can deliver to near one postcode. Ask once the buyer has given a postcode, and let them choose.

json
{
  "object": "list",
  "data": [
    {
      "object": "pickup_point",
      "id": "gls-DK-1234",
      "name": "Kiosk Nørrebro",
      "address": "Example Street 1, 2200, København N, DK",
      "latitude": 55.6889,
      "longitude": 12.5501
    }
  ],
  "has_more": false
}

Courier pickup-point lookups are rate-limited to 60 per company per minute. Excess requests return 429 rate_limited with Retry-After. Request points after the buyer enters a postcode and avoid a request on every keystroke.

country must be a two-letter ISO 3166-1 code supported by the postal method. Country names return 422. A valid lookup with no nearby points returns an empty list.

Handle lookup failures separately from empty results. Courier connectivity failures return 503 pickup_lookup_unavailable with Retry-After. Retry after that interval rather than showing an empty-result message.

The address arrives as one line, exactly as the courier composes it. Show it as given.

What a buyer can add to the card

Published on every product as personalization, by GET /v2/products. Like the delivery methods it is a property of the company, so every product carries the same block.

json
{
"personalization": {
  "greeting": {
    "available": true,
    "max_length": 2000,
    "image": {
      "accepted_content_types": ["image/jpeg", "image/png", "image/webp"],
      "max_bytes": 10485760
    }
  },
  "designs": [
    {
      "id": "gid_4711",
      "label": "Image1",
      "url": "https://cdn.lifepeaks.dk/dev/images/birthday.jpg",
      "thumbnail_url": "https://cdn.lifepeaks.dk/dev/images/thumb/330x200/birthday.jpg"
    }
  ],
  "amount_images": ["https://cdn.lifepeaks.dk/dev/order_form_amount_images/thumb/330x200/strip-a.jpg"]
}
}

Set the greeting limit from max_length. The order endpoint validates messages against this limit.

designs lists the company’s greeting images. Send the selected ID as greeting.image.design_id. If the list is empty, omit the image selector; the buyer can still provide a message.

Greeting designs print on the greeting page. Configure the gift-card artwork separately through Branded gift-card PDFs.

amount_images contains optional display images. These URLs have no selectable IDs and are not submitted with an order.

A buyer's own photograph takes a different route: reserve a slot at POST /v2/greeting-images/upload-intents, send the bytes, and finalize. See A buyer's own picture for the whole sequence. Those three operations require greeting_images:write. Creating an order that uses the finished picture separately requires orders:create. accepted_content_types and max_bytes are the limits that route enforces, so your copy and its rejection cannot disagree.

What a buyer accepts before paying

Published on every product as terms, by GET /v2/products. Your storefront collects the consent on its own page, so it has to be able to show the same terms the Lifepeaks-hosted order page shows.

json
{ "terms": { "url": "https://acme-hotels.example/terms", "html": null } }

When url is present, link to it. Otherwise, render html if provided. Both values are null when no terms are available.

html contains the platform and company terms shown on the Lifepeaks-hosted order page. The API sanitizes this content. Render it within your application’s existing HTML content controls.

Quote and order lines

POST /v2/quotes — scope quotes:create

POST /v2/orders — scope orders:create

Both routes take the same items array, and every product family is ordered through it. A line names what is being bought; Lifepeaks prices it.

LineShape
Value{"product_id": "gift_card_value", "amount": 50000, "quantity": 1}
Experience{"product_id": "gcv_4821", "product_option_id": "gcvo_9107", "quantity": 2}
Event ticket{"product_id": "evt_412", "product_option_id": "evto_9310", "quantity": 2, "ticket": { … }}
Special offer{"product_id": "so_884", "product_option_id": "sov_5501", "quantity": 1}

An experience, event or special-offer line never carries amount. Only a value line does. Everything else is priced by the option it names, so sending money on one fails with 422 on items.<n>.amount rather than being honored.

Gift cards and special offers share a basket; event tickets do not. Value lines, experience lines and special-offer lines may be combined in one request and are paid in one checkout, as on the order form's basket. An event ticket shares a request with nothing else: mixing it in answers 422 on items, so a buyer whose basket holds a gift card and an event ticket places one order for each. Each gift-card or special-offer line of an order may carry its own recipient and greeting, replacing the order's for that line's cards, so one card can go to one person and another card to someone else; recipient on the order may then be left out when every line names its own. A gift-card line may also carry its own delivery (the same object as the order's), so one card is posted and another e-mailed; the order's delivery stays the default. Carrier deliveries to the same postal address and pickup point share one envelope, priced by the physical cards inside, including when a line explicitly supplies its delivery. Different addresses have separate postage. Own-post lines retain their chosen postage and schedule. A Shipping code is applied per shipment. Special offers are always e-mailed and may only choose between the e-mail methods; event ticket lines take the order's delivery. A request carries 1 to 20 lines. Several value lines may name different amounts, and several lines of one kind may name different events or different offers. An add-on ticket needs an ordinary ticket of the same event in the same request unless the event sells add-ons on their own; otherwise the add-on line answers 422.

Experience and special-offer options may repeat for different recipients or greetings. Their combined quantity must fit the option's stock and maximum; each line still obeys its minimum. Event ticket options may appear only once. Each line pays its own order fee.

Quantity bounds come off the option. quantity must satisfy the option's own quantity.minimum and quantity.maximum from the catalog, and a stock-limited option is never sold beyond what remains. The published quantity.maximum is the number that is enforced, and stock is checked again when the order is created.

A quote does not reserve stock. Lifepeaks rechecks quantity limits, stock, and capacity when creating the order. A special-offer line that sells out after quoting returns 409 insufficient_stock; a quantity outside the option’s bounds returns 422 with below_minimum or above_maximum on items.<n>.quantity. Event and gift-card lines return 422 with the message on the same field.

A per_order event caps the whole order. An event whose capacity_mode is per_order limits the tickets of that event across every line of the order to its tickets_per_event, and takes one order slot however many seats were bought.

One order issues at most 1000 items. Two ceilings apply together: at most 20 lines, and at most 1000 cards, seats or vouchers once every line's quantity is added up. Too many lines answers 422 on items; too many items answers 422 on the items.<n>.quantity that crossed the total.

Postal delivery is refused for events and offers. A ticket and an offer voucher are delivered electronically, so delivery.method of postal answers 422 on delivery.method and amounts.shipping is always 0 for them. Every other delivery method works as it does for a gift card.

Only gift-card and experience lines answer to a discount code. A discount_code also reduces postage, and never reduces fees. It never applies to an event ticket or a special offer, so an order made only of those answers 422 with discount_code_not_applicable. See A discount code.

An experience under a running campaign cannot be ordered. It is not in the catalog while the campaign runs, so its option answers the same 422 Product does not exist. that a foreign or invented id gets. Sell it through the Lifepeaks order page until the campaign ends.

What an event line carries

An event line may carry an optional ticket object with what the organiser asked the buyer for. Every key in it is optional until the event or the option demands it, and a key the object does not list is refused with 422.

json
{
  "product_id": "evt_412",
  "product_option_id": "evto_9310",
  "quantity": 2,
  "ticket": {
    "comment": "Two vegetarians",
    "code": "STAFF-2026",
    "collection_point_id": "epp_31"
  }
}
FieldWhen it is requiredNotes
commentneverThe buyer's note to the organiser, at most 500 characters. Allowed only while the event's event.comment.available is true; sending one otherwise is refused
codewhen the option's requires.code is trueThe code the organiser demanded, at most 100 characters. It is stored on the issued ticket
collection_point_idwhen the option's requires.collection_point is trueAn epp_<id> from the event's own event.collection_points
addresswhen the option's requires.address is true and no collection point is givenAn object of name, street and city, all three together. Where the ticket is delivered by hand

address and collection_point_id are alternatives: giving both is refused. One comment per event, not per line — two lines of the same event carrying different comments are refused rather than one of them silently dropped, because an order supports one comment per event.

The greeting and the delivery

An order body may also carry greeting and delivery. Neither belongs on a quote line: both are choices about the whole order, and both are optional.

greeting prints a message on its own page of the card and shows it in the e-mail. It takes a message of at most 2000 characters, a picture, or both. The picture is either one of the company's own — {"source": "design", "design_id": "gid_4711"} — or a buyer's own photograph already put through the upload flow — {"source": "upload", "upload_id": "gimg_…"}. A picture id that does not resolve answers 422 with an error.code of greeting_image_not_found on the field that carried it, the same way a foreign product_id is refused. Every miss reads alike — another company's id, a deleted one, a typo, and an upload_id a previous order already spent, because an uploaded picture works exactly once.

delivery takes method and send_at, and on a postal order an address and an optional pickup_point_id. method must be one the product's delivery_methods reports as available, so what your page offers and what an order accepts can never disagree. send_at is an RFC 3339 timestamp with an offset; one without is refused rather than read as a local time. It must be in the future, at most 24 months ahead, and on a method whose supports_send_at is true.

Omit delivery and the card goes out as soon as payment is confirmed, to the recipient's own address when it differs from the buyer's. A scheduled order stays paid with fulfillment.status of processing until its moment arrives.

A postal address takes name, street, postcode, city, country and email, with company_name when kind is company and phone when the method's phone_required is true. country is a two-letter ISO 3166-1 code, checked against the destinations the postal method publishes for the shape of delivery asked for — an unshippable order is refused before any money moves, rather than failing at the courier days later with the payment already taken. An address on a method other than postal answers 422.

Postage is its own amount. amounts.shipping carries the postage plus the surcharge for each card after the first, and is 0 on every e-mail order. Send the same delivery object to POST /v2/quotes to see it before the buyer commits; a quote without it shows a total that is not what will be charged.

Unavailable options return 422. Foreign, private, inactive, unpublished, and unknown options use the message Product does not exist. on items.<n>.product_option_id. An option that does not belong to the specified product reports the error on items.<n>.product_id.

What comes back

bash
curl -sS -X POST https://api.lifepeaks.dk/v2/quotes \
  -H "Authorization: Bearer lp_live_..." \
  -H "Content-Type: application/json" \
  -d '{"items":[
        {"product_id":"gcv_4821","product_option_id":"gcvo_9107","quantity":2},
        {"product_id":"gcv_4821","product_option_id":"gcvo_9108","quantity":1}
      ]}'
json
{
  "id": "quo_5b29e740a1c34df8062be95c71d84f30",
  "object": "quote",
  "line_items": [
    { "product_id": "gcv_4821", "product_option_id": "gcvo_9107", "amount": 100050, "quantity": 2, "fees": 2500, "subtotal": 200100, "discount": 0 },
    { "product_id": "gcv_4821", "product_option_id": "gcvo_9108", "amount": 149595, "quantity": 1, "fees": 2500, "subtotal": 149595, "discount": 0 }
  ],
  "discount": null,
  "amounts": { "currency": "DKK", "subtotal": 349695, "discount": 0, "fees": 5000, "shipping": 0, "tax": 1000, "total": 354695 },
  "expires_at": "2026-08-27T10:45:00+00:00"
}

line_items echoes the request in the order it listed the lines, priced. amount is the price of one card, seat or voucher, subtotal is amount multiplied by quantity, and amounts sums the whole basket. The quoted price is the price the catalog published: read an option's amount and its fee from GET /v2/products and the quote charges exactly those.

amounts.discount and the top-level discount are always present. They are 0 and null on every quote and order that carried no code, so a storefront reads one shape rather than branching on a missing key. See A discount code for what they mean and how they change the total.

How often the fee is charged depends on the family, and fee_basis says which. For gift cards, experiences and special offers it is once per line: not once per card and not once per order, so a two-line order pays it twice whatever the quantities. For an event it is once per seat, so a line of two seats pays it twice on its own. Either way each line states its own fees and amounts.fees is their sum.

A value quote line has no product_option_id key at all. An order line always carries the key and reports null for a value line, so every family reads alike on GET /v2/orders/{po_order_id}. Order lines additionally carry their own id (poli_ and 32 hexadecimal characters), "object": "line_item" and issued_count.

Campaigns are not applied to experience lines. promotion_id belongs to direct issuance of gift-card value, and the embedded promotions array appears only on the value product. An experience is charged the price its option is configured with.

Listing orders

GET /v2/orders — scope orders:read

Returns every order of the acting company, newest first, using the full order response schema: orders placed through the Orders API (POST /v2/orders), on the Lifepeaks order form and in the Lifepeaks admin. Use the list for reconciliation, customer-support lookup, and recovery from missed webhook notifications.

An order placed through the Orders API has a po_ id. Any other order has its order number as its id, carries no client_reference and no line_items, and reads its states and amounts off its payment; the items it issued are listed by GET /v2/items?order_id=<reference>. A paid classic order with issued items also carries pdf for its combined card document, including cancelled or refunded historical orders. GET /v2/orders/{order_id} accepts either the id or the order number. Checkout sessions and settle apply to orders placed through the Orders API; the order-level card download supports both API and classic orders under the rules described above.

For the latest state of a specific order, use GET /v2/orders/{po_order_id}. Filtered lists may change as orders are updated.

FilterWhat it narrows to
statusLifecycle state: pending_payment, paid, fulfilled, cancelled, expired
payment_statusPayment state: pending, authorized, captured, failed, cancelled, refunded, partially_refunded
created_after, created_beforeAn RFC 3339 timestamp, or a plain YYYY-MM-DD date
emailThe buyer's address
client_referenceThe reference you sent when the order was created

Different filters combine with AND. To match several values within status or payment_status, use an array such as status[]=paid&status[]=fulfilled or a comma-separated value such as status=paid,fulfilled. Repeating a plain parameter without brackets keeps only its last value. An unknown value in status or payment_status answers 422 naming the values that exist, rather than matching nothing. A date neither format can read answers 422 too.

email matches the buyer, which is the card's sender — the person who paid — not the recipient it was addressed to. Capitalisation is ignored, so an address matches however it was typed at checkout.

Pages with limit and starting_after, answering has_more and next_cursor. Without a limit you get the first 25.

The orders arrive under data, in the same envelope GET /v2/products and GET /v2/companies answer with:

json
{
  "object": "list",
  "data": [
    {
      "id": "po_3f81a04d7c2e496b8a05f1c73de29b64",
      "object": "order",
      "reference": "A7K2M9XQ4B",
      "status": "paid"
    }
  ],
  "has_more": true,
  "next_cursor": "po_3f81a04d7c2e496b8a05f1c73de29b64"
}

Each entry is the whole order object, cut short here. Read the next page by sending next_cursor back as starting_after, unchanged.

What an order reads back

The same order object comes back on four calls: POST /v2/orders, GET /v2/orders/{po_order_id}, GET /v2/orders, and the order embedded in a checkout session. All four use the same response schema. Re-read the order when you need its current payment or fulfillment state.

Alongside the states and the money it carries the buyer's own choices, read off the card itself:

  • reference — the short order number, for people. Print it on a thank-you page and quote it to support; it is what Lifepeaks operators search orders by. id stays the only thing an API call addresses the order by.
  • sender and recipient — the names and e-mail addresses the order was created with, so a thank-you page can say who the card went to without carrying it through the payment redirect. They appear on all four of those calls, and never in a webhook payload. sender.company is the buyer's own company when the order was placed by one, and null when a private person bought it; its country comes back as the alpha-2 code the order was placed with.
  • greeting — message is the text the buyer wrote, or null when there is none. It appears wherever the order object reaches an authenticated caller, including the list, and never in a webhook payload. image reports the source it was ordered with, and design_id for a company picture.
  • delivery — method, and send_at, which is null on an order that was not scheduled rather than the moment it happened to go out. A postal order also reads back its address, its pickup_point_id and its shipping_priority, on the same four calls as sender. shipping_priority is null when no shipping priority is recorded, including courier shipments.
  • discount — {code, percent} when a discount code was applied, null otherwise. The code is kept as it was sent, on the order itself rather than looked up, so renaming or deleting the campaign later cannot rewrite what a finished order says.
  • seller — the selling company's name and vat_number, its VAT registration number, which is the CVR number for a Danish company. Use these fields with tax and total when preparing a receipt or invoice.

Webhook order payloads omit sender, recipient, greeting, and the postal address. They include reference, delivery.method, and delivery.send_at. Retrieve buyer details through an authenticated order read.

Payment receipt

GET /v2/orders/{order_id}/receipt — scope orders:read

Streams the payment receipt of a paid order as application/pdf: the same receipt the buyer receives by email. Address the order by its id or its order number. An order carries a receipt link once it is paid; an unpaid, unknown, or foreign order answers 404 with the JSON error envelope.

Buyer cancellation

GET /v2/orders/{order_id}/cancellable-items and POST /v2/orders/{order_id}/cancel — scope orders:cancel

These two routes let a buyer-facing page offer the buyer's own cancellation, with the same withdrawal rules and the same refund as the hosted order form. Only event tickets whose event allows buyer cancellation can be cancelled, and only within the withdrawal period and before the event's cancellation date.

The order number is what the buyer holds (it is in the receipt email), so a buyer page addresses the order by it. cancellable-items lists each item's code, text and amount in the smallest currency unit; when nothing can be cancelled, items is empty and blocked_reason is one of payment_day, paid_to_company, withdrawal_period_expired or nothing_cancellable.

json
{
  "items": ["T8K2M4Q9"],
  "reason": "Plans changed"
}

POST .../cancel requires an Idempotency-Key. It answers 200 with the codes in cancelled and any selected code it skipped in not_cancelled. A selection where nothing could be cancelled answers 422 with nothing_to_cancel, and nothing moved. Repeating the request with the same key returns the first answer and never refunds twice.

Guest gift-card and voucher withdrawal

GET /v2/guest/orders/{order_id}/withdrawal?token=... and POST /v2/guest/orders/{order_id}/withdrawal?token=...

These are the statutory EU 14-day withdrawal routes for a buyer who has the signed token from the receipt email. No API key or portal session is needed, and a session does not replace the token. Gift cards and vouchers are selected by the numeric ref from the options response; redeemable item codes never appear in the API response. A partial withdrawal refunds selected paid values only, while the last eligible item follows the legacy fee sweep rules. withdrawn, skipped, ineligible and failed are separate outcome lists. A successful withdrawal sends the buyer a confirmation email.

The write requires confirm: true and an Idempotency-Key:

json
{
  "items": [12345],
  "reason": "Changed my mind",
  "confirm": true
}

Missing, invalid, or foreign tokens answer 404; the token itself does not expire. The time limit is the 14-day withdrawal window. An order outside that window or otherwise blocked answers 200 on the read with an empty items list and a blocked_reason; a write with no eligible selection answers 422. Repeating a completed request with the same key returns the first outcome without another refund or confirmation email.

The guest/IP throttle answers 429 with a Retry-After header containing the number of seconds to wait. An unresolved refund or an outcome-recording failure answers 503: do not retry until reconciliation has completed. A fresh idempotency key does not bypass an unresolved payment hold.

Refunding an order

POST /v2/orders/{po_order_id}/refund — scope orders:refund

Closes every issued item and returns the whole unspent purchase value. Omit amount; an explicit amount must equal that entire value. To close only one gift card, use POST /v2/items/{code}/cancel. Arbitrary partial refunds of a balance are not supported.

bash
curl -sS -X POST https://api.lifepeaks.dk/v2/orders/po_2f8c.../refund \
  -H "Authorization: Bearer lp_live_..." \
  -H "Idempotency-Key: refund_018f4f37b949" \
  -H "Content-Type: application/json" \
  -d '{}'
json
{
  "object": "refund",
  "id": "rf_0123456789abcdef0123456789abcdef",
  "status": "succeeded",
  "requested_amount": 37500,
  "order_id": "po_2f8c1d4e6a7b8c9d0e1f2a3b4c5d6e7f",
  "amount": 37500,
  "refunded": 37500,
  "refundable": 37500,
  "currency": "DKK",
  "payment": { "status": "refunded" }
}

Read refunded and refundable from the response. If a gift card paid part of the order, that part is returned to the paying card first; only the remainder goes to the payment gateway.

Cancellation returns the whole remaining value and closes the cards. An unused 50.00 card with a 1.00 fee returns 51.00 and is cancelled. If 20.00 of its value has been redeemed, the whole remaining value is returned and the card is cancelled; the spent 20.00 is never returned. All cards with remaining value in an order are closed together; fully spent cards remain used and contribute no refundable value. The amount cannot exceed what was actually paid minus earlier refunds. Full cancellation includes the fee; keeping it is not an option.

The customer cancellation period is 14 days, provided the purchase's month has not been closed. Handle cancellation requests under this policy. Eligible cancellations return the payment through the original payment method. After month closure/settlement, only discard is available and the partner must repay the buyer directly. Imported purchases also require manual repayment.

Customer self-service withdrawal is for eligible, unused gift cards and vouchers. Its 14-day window runs from payment confirmation. Partly redeemed cards must be handled by the partner through administration or the refund API, returning the whole remaining unspent purchase value and closing the card.

Discard returns no money. The partner must pay the buyer directly to their bank account. For a discard-only order, the same request closes its remaining issued items and answers 200 with action: "discarded", amount: 0, manual_refund_required: true, manual_refund_amount in the smallest currency unit, and an explanatory message. refunded and the payment status do not change, and no refund-success webhook is sent. Do not treat HTTP 200 alone as proof that money was returned. The same idempotency key replays this result; a new key cannot refund a discarded order.

refundable is the original refundable payment ceiling, including fees and any paying-card contribution; refunded is the amount actually returned. Their difference can include already spent value, so it is not the current card balance. partially_refunded means some of the original payment was returned; it can accompany cancellation of every remaining card.

Cards are cancelled before the payment refund is submitted. A pending or declined gateway refund leaves them cancelled. After a confirmed decline, a new key can retry the remaining money without repeating cancellation. The order's fulfillment history is retained.

Test keys do not work on production at all. Every production request with an lp_test_ key is answered 401 test_key_not_accepted_in_production; refunds included. Use demo.

Refund amounts use whole numbers of the smallest currency unit. Decimal values such as 12.5 are rejected; DKK 12.50 must be sent as 1250.

AnswerWhen
409 order_not_refundableThe order was never paid, its payment cannot be read, or a full refund fails the existing item-cancellation rules
409 order_fully_refundedNothing is left to return
422 partial_refund_not_allowedThe amount is below the whole remaining value. Omit it or cancel one card by code
422 refund_amount_too_largeThe amount is above what remains. The message names the figure
502 refund_declinedThe gateway refused its part. Any paying gift-card credit has already been returned and counted. A new key can refund the remaining amount
502 refund_not_submittedThis operation failed before a gateway refund was submitted. A new key can retry the remaining amount
202The refund is pending confirmation. Save its id and read GET /v2/refunds/{id} or wait for a refund webhook
503 refunds_unavailableRefund processing is temporarily unavailable; no refund was started
409 refund_in_progressAnother refund is running or awaiting confirmation. Track the original refund; do not submit another request with a new key
409 amount_precision_unsupportedThe order's stored total cannot be represented exactly. It cannot be refunded through the API

orders:refund is independent of orders:settle. A key needs explicit refund permission to return money. Idempotency-Key is required and covers the amount, so the same key with a different amount answers 409 rather than refunding twice.

Tracking a refund

Every payment refund has a durable rf_ ID and a status: pending, succeeded, or failed. A discard-only response has action: "discarded" instead and does not create a payment refund.

  • 200 with status: "succeeded" means the refund has been confirmed.
  • 202 with status: "pending" means the outcome is still being checked. Show a pending state, save the refund ID, and follow the Location header. Do not show it as completed or submit another refund with a new key.
  • 502 with error.code: "refund_declined" or "refund_not_submitted" includes the failed refund under refund. Its failure describes the outcome: a gateway refusal or a failure before submission. Any paying-card contribution already returned remains included in amount.

Lifepeaks checks the existing gateway operation through callbacks and scheduled reconciliation. These checks do not submit another refund. A response lost after submission can be recovered by repeating the original request with the same Idempotency-Key and body; it returns the same refund ID and its latest status.

GET /v2/refunds/{refund_id} — scope orders:refund

Returns 200 with the current refund resource, including when it is still pending or has failed. A pending response includes Retry-After: 5; wait at least five seconds before polling again. Unknown refund IDs and refunds belonging to another company return 404. This read does not submit or retry a refund and needs no idempotency key.

A pending response looks like this:

json
{
  "object": "refund",
  "id": "rf_0123456789abcdef0123456789abcdef",
  "status": "pending",
  "order_id": "po_2f8c1d4e6a7b8c9d0e1f2a3b4c5d6e7f",
  "requested_amount": 37500,
  "amount": 0,
  "refunded": 0,
  "refundable": 37500,
  "currency": "DKK",
  "payment": { "status": "captured" }
}

requested_amount is the value the operation is trying to return; amount is the value confirmed as returned by that operation. Both are whole numbers in the smallest currency unit. A mixed payment can have a nonzero amount while its gateway part is still pending. refunded is the confirmed cumulative total recorded by that operation.

Subscribe to order.refunded, order.partially_refunded, and order.refund_failed. Events for tracked refunds include data.refund with the refund ID, status and amounts alongside data.order. Read the refund resource to reconcile delayed or repeated notifications. An unchanged order payment status alone does not establish the outcome of a pending refund.

One payment per order

All lines share one order total and payment workflow. Checkout sessions, payment confirmation, webhooks, and settlement operate on the order.

An order is all-or-nothing across its lines. If any line cannot be written, nothing at all is created and the idempotency key is released, so retrying the identical request is safe once the cause is gone.

Totals a payment can hold

Payment amounts support up to six significant digits. For example, DKK 9,000.70 and DKK 100,050.00 are supported; DKK 10,024.95 requires seven significant digits and is unsupported.

POST /v2/orders checks subtotal, fees, and total precision before creating the order. Unsupported values return 422 amount_precision_unsupported on items, without creating an order or reserving stock. The idempotency key is released. If necessary, split the basket into separate orders and obtain buyer approval for the revised checkout.

POST /v2/quotes is not subject to the rule, because a quote is not stored. A basket that quotes cleanly can still be refused when it is ordered, so handle this code on the order call.

One document per line

GET /v2/orders/{po_order_id}/lines/{line_id}/gift-card.pdf — scope orders:read

Each line of a fulfilled order has its own gift-card document, and once fulfillment.status is fulfilled every entry in line_items carries the download for its own:

json
{
  "id": "po_3f81a04d7c2e496b8a05f1c73de29b64",
  "status": "fulfilled",
  "line_items": [
    {
      "id": "poli_9d41b0c7a5e34f2b8c6d0e1f2a3b4c5d",
      "object": "line_item",
      "product_id": "gcv_4821",
      "product_option_id": "gcvo_9107",
      "amount": 100050,
      "quantity": 2,
      "fees": 2500,
      "subtotal": 200100,
      "discount": 0,
      "issued_count": 2,
      "pdf": {
        "url": "/v2/orders/po_3f81a04d7c2e496b8a05f1c73de29b64/lines/poli_9d41b0c7a5e34f2b8c6d0e1f2a3b4c5d/gift-card.pdf",
        "content_type": "application/pdf"
      }
    }
  ]
}

pdf is on every fulfilled line, whatever family it sold — gift card, experience, event or special offer. It does not appear before the order is fulfilled.

issued_count says how many items the line actually produced, which is not always its quantity. A gift-card line issues one card per unit. An event line for an event with grouped_tickets issues one ticket carrying every seat, so a line of four seats reports issued_count of 1. Use it to know how many codes to expect; the codes themselves come from GET /v2/items?order_id=<reference>, and each item's own document from GET /v2/items/{code}/document.pdf.

One line is one document. A line with multiple issued items combines them in one PDF. To download an individual issued item by code, use GET /v2/items/{code}/document.pdf.

Follow the url rather than assembling it. It answers 200 with application/pdf, or 404 with the JSON error envelope, so branch on the response Content-Type exactly as on the order-level route. An unfulfilled order, a line of a different order, another company's order and an invented id all answer the same 404. So does a line whose cards no longer exist, because they were deleted after the order was fulfilled — Lifepeaks answers 404 rather than hand back a gift card with no code on it.

The optional company query parameter works here as everywhere else.

API multi-line orders require line-level downloads. The order-level endpoint returns 409 multiple_gift_cards and these orders have no order-level pdf field. Single-line API gift-card orders include both order-level and line-level links. Classic orders instead use their combined order-level document.

Artwork follows the experience. When an experience carries its own PDF template, its cards are branded with it and the rest of the order uses the company's published v2 template — so one order's cards need not look alike. See Branded gift-card PDFs.


Issue gift cards directly

POST /v2/items — scopes orders:create and orders:settle, plus an active invoice-settlement contract

Creates one or more gift cards and returns them together with the legacy-compatible order_id of the new order. A new customer-facing storefront should use Headless checkout, where Lifepeaks creates an unpaid po_… order and controls QuickPay payment before fulfillment.

FieldRequiredNotes
amountyesValue of each card as a decimal in your currency, greater than 0, and inside the campaign range when promotion_id is set or your company's configured range otherwise
piecenoHow many cards to create. Default 1, must be greater than 0
receiver_namenoDefaults to your company's default sender name
receiver_emailnoDefaults to no-email@lifepeaks.dk — see the delivery note below
sender_namenoDefaults to your company's default sender name
sender_emailnoDefaults to no-email@lifepeaks.dk
promotion_idnoId of an active campaign from GET /v2/promotions
validitynoExpiry as YYYY-MM-DD. Anything else falls back to the company default
sdh_product_idnoStays product id; only relevant for Stays partners
capturenoDefault true — activate immediately. false creates the order uncaptured

The body is closed: a field that is not in this table is rejected with 422 rather than ignored, so a misspelling cannot quietly issue a card at the wrong price. company is accepted alongside them as the acting-company selector.

bash
curl -X POST https://api.lifepeaks.dk/v2/items \
  -H "Authorization: Bearer lp_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "amount": 500,
    "piece": 1,
    "receiver_name": "Jane Doe",
    "receiver_email": "jane@example.com",
    "sender_name": "Acme Hotels",
    "capture": false
  }'

Response 201:

json
{
  "items": [
    {
      "code": "77xrB3e44T",
      "order_id": "devOEVLB1EW33",
      "item_type_identification": "Gift Card",
      "amount": 500,
      "currency": "DKK",
      "remaining_amount": 500,
      "status": 6,
      "status_name": "Paid",
      "validity": "2029-05-10 00:00:00",
      "reciever_name": "Jane Doe",
      "reciever_email": "jane@example.com",
      "claim_url": "https://app.lifepeaks.dk/l/77xrB3e44T",
      "pdf_short_url": "https://app.lpeaks.dk/p/W3377xrB3e44T"
    }
  ],
  "itemsCount": 1,
  "order_id": "devOEVLB1EW33"
}

Receiver fields are spelled reciever_name / reciever_email in responses. Use these exact response field names. Requests use the receiver_ spelling.

Retry compatibility mutations with X-Request-Guid. Successful responses include this header. If you received it, send it with an identical retry: when the original completed, the recorded response is replayed — same body, same status — and nothing is created twice. When the original is still running, the retry answers 409 request_in_progress with a Retry-After header; wait that long and send the same request again rather than treating it as a failure. If a connection fails before you receive the header, reconcile the result before retrying; a request without the GUID executes again. Replays are scoped to the company the request acted on. Headless operations use Idempotency-Key, which you generate before the first request; see Idempotency rules.

Applying a campaign

GET /v2/promotions (scope items:read) lists the company's active gift-card campaigns — discounted or added-value offers that can be applied when creating a card:

json
{
  "object": "list",
  "data": [
    {
      "id": 499,
      "name": "API Campaign Added 10%",
      "modification": "added-value",
      "amount_from": 10,
      "amount_to": 100,
      "reduced_price": null,
      "added_value": 10
    }
  ],
  "has_more": false,
  "next_cursor": null
}

Pass the id as promotion_id when creating the card. If amount falls outside the campaign's amount_from / amount_to bounds the create fails with 422. Without a campaign the company's own configured gift-card range applies instead, so a plain variable-value card is bounded too.

Manage campaigns and discount codes

Everything that changes what a buyer pays can be managed here as well as in the admin. Both resources are saved through the same rules the admin forms use, so a campaign or code made through the API is the same row an admin would have made. Nothing is ever deleted: DELETE (no body) switches it off and changes nothing else, and PATCH with active: true switches it back on. A date without a time in ends_at means the end of that day, 23:59:59 Danish time.

MethodPathScope
GET/v2/promotions?all=truepromotions:read (without it, all is ignored)
POST/v2/promotionspromotions:write
GET/v2/promotions/{promotion_id}promotions:read
PATCH/v2/promotions/{promotion_id}promotions:write
DELETE/v2/promotions/{promotion_id}promotions:write
GET/v2/discount-codesdiscount_codes:read
POST/v2/discount-codesdiscount_codes:write
GET/v2/discount-codes/{discount_code_id}discount_codes:read
PATCH/v2/discount-codes/{discount_code_id}discount_codes:write
DELETE/v2/discount-codes/{discount_code_id}discount_codes:write

Another company's campaign or code answers 404, exactly like one that does not exist. Both POST routes honour X-Request-Guid: a retry with the same guid and body replays the first answer instead of creating a second row.

Campaigns

A campaign is a discount (the buyer pays percent less for a card of unchanged value) or an added_value (the buyer pays the card's price and the card is worth percent more). Its type decides where it applies:

typeWhere it applies
apiNamed in promotion_id on POST /v2/items; the only type GET /v2/promotions without all lists
secretOnly through its link: the resource carries code and link. Anyone holding them buys at the promoted price
manualOnly when staff issue a card by hand in the admin
publicEvery value card on the order form while it is live. It exists once per company and kind, so it is changed, never created, and keeps its name
experience, experience_secretA discount on the experiences in product_ids. An experience belongs to at most one experience campaign, and an experience under a live campaign is withheld from the API catalogue

A POST /v2/promotions body:

json
{ "name": "Spring 20", "type": "api", "kind": "added_value", "percent": 20,
  "minimum_amount": 10000, "maximum_amount": 100000, "ends_at": "2027-05-31T23:59:00+02:00" }

minimum_amount and maximum_amount are whole numbers in the smallest currency unit, and must be whole kroner. validity_months is 3 to 60, as in the admin, or null for the company default. type and kind cannot be changed later. Fee and commission are set by Lifepeaks and are not part of the body. live on the answer says whether the campaign applies right now: switched on, a percentage above zero and inside its dates.

Secret campaigns stay secret. Their code and link appear only on the management reads above. GET /v2/promotions without all, the promotions array on the value product, and every buyer-facing response list api campaigns only and never a code.

Discount codes

A discount code is what a buyer types into discount_code on POST /v2/quotes and POST /v2/orders (and into the order form). It takes percent off the price of the product families in applies_to, never off fees; shipping takes the percentage off the postage. There is no fixed-amount code.

A POST /v2/discount-codes body:

json
{ "code": "SUMMER25", "percent": 25, "applies_to": ["gift_card", "shipping"],
  "remaining": 100, "ends_at": "2027-08-31T23:59:00+02:00" }
  • code is 5 to 25 characters, matched regardless of letter case, and unique in the company.
  • Quotes and orders on this API honour gift_card, experience and shipping; the other applies_to families apply on the order form.
  • paid_by_company is true by default: the waived amount is billed to the company on its Lifepeaks invoice. Only a Lifepeaks system administrator can set false (Lifepeaks absorbs it); an API key sending false gets 422.
  • remaining is the number of orders the code may still be used on — one per order, whatever its size — or null for unlimited.
  • live says whether a quote would accept the code right now.

A change applies to the next quote. An order already quoted at the old percentage is refused rather than charged a different total, so the buyer can quote again.

Codes are confidential. Anyone holding one pays less, so a code is readable only with discount_codes:read and only for its own company. A quote never tells a buyer why a code was refused.


Capture an order

POST /v2/orders/{order_id}/capture — scope orders:settle, plus an active invoice-settlement contract

Activates a contract-settled compatibility order created with capture: false. Only uncaptured legacy-compatible orders of the company you are acting as can be activated; anything else answers 404. There is no request body.

bash
curl -X POST https://api.lifepeaks.dk/v2/orders/devOEVLB1EW33/capture \
  -H "Authorization: Bearer lp_live_..."
json
{
  "order_id": "devOEVLB1EW33",
  "message": "Order devOEVLB1EW33 has been captured!"
}

An already captured order returns 404, as do orders that are unavailable to the acting company. Do not treat a 404 alone as proof of capture or payment. Confirm the order’s state before taking further action.


Search items

GET /v2/items — scope items:read

At least one of order_id, group_code or search is required, and search must be 5 characters or longer. Without one of them the call fails with 422.

ParameterNotes
order_idEvery item of one order. Also sorts by the order's own item sequence
group_codeEvery item sharing a group code
searchCode, sender/receiver name or email, and a few further columns. Minimum 5 characters
statusStatus id: 3 Used, 4 Cancelled, 5 Expired, 6 Paid, 10 Awaiting Payment
typeGIFTCARD, GIFTCARD VARIATION, DISCOUNTED GC, GIFT CARD WITH ADDED VALUE, TICKET, SPECIALOFFER, BENEFITDEAL
only_claimabletrue returns only items that can be redeemed right now
date_from, date_toCreation-date range, YYYY-MM-DD
limit, starting_afterCursor pagination; read has_more and next_cursor from the response
bash
curl -H "Authorization: Bearer lp_live_..." \
  "https://api.lifepeaks.dk/v2/items?search=77xrB3e44T&only_claimable=true"
json
{
  "object": "list",
  "data": [
    {
      "code": "77xrB3e44T",
      "order_id": "devOEVLB1EW33",
      "item_type_identification": "Gift Card",
      "status": 6,
      "status_name": "Paid",
      "amount": 500,
      "remaining_amount": 400,
      "pieces_bought": 1,
      "remaining_pieces": null,
      "currency": "DKK",
      "available_claim": true,
      "available_amount_claim": true,
      "available_piece_claim": false,
      "available_refund": true,
      "claim_error": null,
      "refund_error": null,
      "validity": "2029-05-10 00:00:00"
    }
  ],
  "has_more": false,
  "next_cursor": null
}

A search that matches nothing is a success, not an error: you get { "object": "list", "data": [], "has_more": false, "next_cursor": null }.

Before offering a redeem action, check available_claim. When it is false, claim_error explains why in the response language — expired, already used, cancelled, wrong company — and is safe to show to staff.

GET /v2/items/{code} returns the item object itself, not wrapped in a list. Use it when you already have a code and do not need the search rules.

One item, one document

GET /v2/items/{code}/document.pdf — scope items:read

The printable document of one issued item, whatever family it belongs to: a gift card, an event ticket, a special-offer voucher or a benefit deal. It answers 200 with application/pdf, or 404 with the usual JSON error envelope, so branch on the response Content-Type rather than the status alone.

bash
curl -sS -H "Authorization: Bearer lp_live_..." \
  -o voucher.pdf \
  "https://api.lifepeaks.dk/v2/items/77xrB3e44T/document.pdf"

This is the per-item counterpart of the per-line download on a headless order. Reach for the line route when you hold a po_… order and want everything one line bought in a single file; reach for this one when you hold a code — from GET /v2/items, from a redemption screen, or from a benefit deal that was never bought through an order at all.

It answers to exactly the same tenancy rule as reading the item. A code that belongs to another company, one that does not exist, and one whose document cannot be produced all answer the same 404, so nothing here confirms that a foreign code exists. A benefit deal is readable — and therefore printable — by the company it was issued to as well as by the company that issued it.

The optional company query parameter works here as everywhere else.


Redeem an item

POST /v2/items/{code}/claim — scope items:write

FieldRequiredNotes
typeyesall, amount or piece. Any other value fails with 422
amountwith type: amountValue to redeem, greater than 0 and at most the remaining value
numberwith type: piecePieces to redeem, greater than 0 and at most the remaining pieces
claim_notenoStored with the transaction — a booking or reservation number, typically
bash
curl -X POST https://api.lifepeaks.dk/v2/items/77xrB3e44T/claim \
  -H "Authorization: Bearer lp_live_..." \
  -H "Content-Type: application/json" \
  -d '{"type": "amount", "amount": 100, "claim_note": "Booking 55123"}'
json
{
  "info": "Gift Card partly claimed",
  "message": "Successfully claimed 100 DKK.",
  "remaining_value": 400,
  "remaining_number": null,
  "partly_claimed": true,
  "claimed_amount": 100
}

partly_claimed is false once nothing is left. claimed_amount is included when the operation returns a monetary amount, including full gift-card redemption.

A type: amount (or type: piece) request for the entire remaining value is treated as a claim of the whole item. That is what lets an indivisible product — a single voucher, or a variation with amount claims disabled — be redeemed through the same endpoint. Partial claims are never promoted this way, so partial redemption of a fixed-product voucher stays blocked.

The claim endpoint also accepts two kinds of code that are not yet items of their own:

  • a dormant batch code, which is activated and then redeemed in the same call;
  • for companies configured for it, a Wonderbox/GoDream vendor code, which is claimed at the vendor and imported.

Reversing, cancelling, resending

POST /v2/items/{code}/refund takes the same type / amount / number fields and returns partly_refunded instead of partly_claimed. The item's available_refund must be true; when it is not, refund_error comes back as the 422 message.

POST /v2/items/{code}/cancel takes no body. It closes only the specified item, or discards it when discarding is the applicable action — the message says which happened. For gift cards, cancellation returns the whole remaining unspent purchase value. Follow the same 14-day cancellation policy and manual repayment process. Discard returns no money; the partner must repay the buyer directly.

POST /v2/items/{code}/activate turns a dormant batch code into a live item. Code batches created without a fixed value require a numeric amount; batches that carry their own value ignore it.

json
{
  "message": "Item zF92Emxn_c has been activated! Value: 500. Validity: 06.05.2029.",
  "amount": 500,
  "validity": "06.05.2029"
}

POST /v2/items/{code}/resend emails the item to {"email": "buyer@example.com"} and records the resend in the item's action log.


Redeem a whole order

POST /v2/orders/{order_id}/claim — scope items:write

Fully redeems every item of an order in one call. Pass {"group_code": "…"} to limit it to one group. When the order cannot be redeemed as a group the response is 422 and the items have to be claimed one at a time.

json
{
  "info": "Whole Order claimed",
  "message": "Whole Order devOEVLB1EW33 has been fully claimed!"
}

The scopes differ: activating a contract-settled compatibility order needs orders:settle, while redeeming one needs items:write. They are different operations on the same legacy-compatible order.


Choosing the correct order flow

RequirementUse
New partner-owned customer storefrontCatalog, quote, unpaid POST /v2/orders, Lifepeaks-hosted checkout, canonical read, signed webhooks
Existing direct-issuance integrationPOST /v2/items and, where already contracted, compatibility capture
Redemption or back-office item action/v2/items* or compatibility order claim
Partner-controlled or external settlementCommercial review, orders:settle scope, and active entitlement before implementation

Never infer that a gift card was paid because a create or redirect request returned successfully. For the protected path, only Lifepeaks' canonical order state and signed events establish payment and fulfillment.

Managing special offers

Create type: special_offer through POST /v2/products or commerce_create_product. Update and deactivate its so_ id through the same product routes and tools. MCP writes require confirm: true and a unique idempotency_key; all writes require products:write. Benefit deals are excluded.

Send per-language name and description, validity, and options. A new option needs name, decimal currency amount, and integer stock (remaining vouchers). Optional regular_amount records the regular price; use_regular_price_as_balance: true makes that the redemption value. visible_remaining_number controls whether buyers see the count. Fees follow the existing option, offer, company and application cascade.

Updates keep ids. Match options by sov_ id; omitted unsold options are removed and omitted issued options are permanently retired from buyer choices. Responses include publication and links.order_form / links.shop.

Experience stock and artwork

Experience options accept stock (remaining units, or null for unlimited) and visible_remaining_number. On update, send the existing gcvo_ option id alongside its full name/amount to carry remaining stock, translations and artwork into the new version. Omit options to preserve the whole set. An update returns new product and option ids. Product artwork accepts image_url or an upload link with target: experience_image and the current product_id. Superseded ids cannot receive uploads.

Categories

GET /v2/categories, POST /v2/categories, PATCH /v2/categories/{category_id}, and DELETE /v2/categories/{category_id} list, create, update and deactivate company-owned categories. The MCP equivalents are categories_list, categories_create, categories_update, and categories_deactivate. Use per-language name, boolean active, and create-only type: experience (default) or type: greeting. Assign an experience with categories: ["cat_123"] on its product write. Only active categories of the same company and family are accepted. Category labels are published as category_details beside the product's category ids.

Greeting designs

GET /v2/greeting-designs, POST /v2/greeting-designs, PATCH /v2/greeting-designs/{design_id}, and DELETE /v2/greeting-designs/{design_id} manage company-owned greeting presets. MCP exposes greeting_designs_list, greeting_designs_create, greeting_designs_update, and greeting_designs_deactivate. Send per-language name and text, optional greeting category_id, and boolean active. The management id is gd_123. Attach a picture with upload_link_create, target: greeting_design, and that design_id. After upload, design_id in the resulting resource is the gid_ picture buyers select.

Active pictures appear in personalization.designs; greeting text presets appear in personalization.texts and the classic order form. Deactivation removes the text and picture from buyer choices while retaining the artwork for issued cards. Existing platform-wide greeting presets remain shared and cannot be modified with a company credential.

Category and greeting reads use products:read; writes use products:write. Each new MCP write requires confirm: true and an idempotency_key; replaying the same key and payload returns the original result.

Product writers keep direct-link slugs unique across events, experiences and special offers within a company. A conflicting slug receives a numeric suffix; use the returned slug and links.

Collective experience cards

Order and quote lines accept cards: "separate" (default) or cards: "collective". Collective is available only for experience lines with quantity > 1, excluding SDH companies; other uses return a 422 error on items.N.cards. It issues one code with quantity vouchers. Stock and total discount remain based on quantity; the order fee is unchanged, while postal surcharges and per-card recipients count one card. Provide exactly one recipient for a collective line. Order reads report issued_count: 1; read the issued card and its vouchers through /v2/items?order_id=<reference>.