Built-in order page

The order-page endpoints let you read and update your company's order-page configuration. Only fields in the safe field catalog are writable through the API — sensitive settings (raw HTML/CSS/JS, payment amounts, commissions) are intentionally excluded.

Hosted order page as your storefront

The hosted order page provides a storefront with checkout, payment, and delivery managed by Lifepeaks. Use the configuration endpoints to customize supported branding, colors, text, links, and display settings.

Build your own storefront when you need a fully custom experience. That path uses the catalog, quote, order, checkout-session, and webhook resources described in Headless checkout. Order-page configuration endpoints apply only to the Lifepeaks-hosted storefront.

Endpoints

MethodPathScopeDescription
GET/v2/order-pageorderpage:readGet current config
PATCH/v2/order-pageorderpage:writePartially update config
GET/v2/order-page/schemaorderpage:readList safe configurable fields
GET/v2/order-page/revisionsorderpage:readList published, archived, and draft revisions
POST/v2/order-page/draftsorderpage:writeCreate an isolated draft
GET, PATCH/v2/order-page/drafts/{revision_id}orderpage:read / orderpage:writeRead or edit a draft
GET/v2/order-page/drafts/{revision_id}/previeworderpage:readRead the exact no-cache preview payload
POST/v2/order-page/drafts/{revision_id}/publishorderpage:writePublish a reviewed draft
POST/v2/order-page/revisions/{revision_id}/restoreorderpage:writeCopy an older revision into a new draft

For customer-facing changes, use a draft instead of patching the live page directly:

  1. Read GET /v2/order-page/schema and accept only its safe fields.
  2. Create a draft with a stable Idempotency-Key at POST /v2/order-page/drafts.
  3. Store the returned opr_… revision ID and ETag.
  4. Update fields with PATCH /v2/order-page/drafts/{revision_id} and the current If-Match value.
  5. Read the private, no-store preview payload.
  6. Publish the reviewed draft with the newest If-Match and an independent Idempotency-Key.
bash
curl -sS -X POST https://api.lifepeaks.dk/v2/order-page/drafts \
  -H "Authorization: Bearer $LIFEPEAKS_API_KEY" \
  -H "Idempotency-Key: order_page_draft_018f4f37" \
  -H "Content-Type: application/json" \
  -d '{"locale":"da-DK","name":"Autumn campaign"}'

If-Match prevents one editor from silently overwriting another. A stale tag returns 412; read the current draft, reconcile the changes, and retry with its new tag. Publishing archives the previous published revision rather than mutating it.

Restoring is also non-destructive. POST /v2/order-page/revisions/{revision_id}/restore copies the selected revision into a new draft for review and publication; it never rewrites history.

GET /v2/order-page

Returns the current order-page configuration, including all safe field values and image URLs.

Query parameters:

ParameterTypeDescription
localestringBCP 47 locale for i18n fields (e.g. da-DK, en-GB). Defaults to en-GB. A short or regional form is stored under the tag the order form reads: da and dk become da-DK, en and en-US become en-GB, se becomes sv.
companystringSlug of an assigned company to read instead of your own. See Endpoints — Conventions.

Example request:

bash
curl -H "Authorization: Bearer lp_live_..." \
  "https://api.lifepeaks.dk/v2/order-page?locale=da-DK"

Response 200:

json
{
  "fields": {
    "company_box_background": "#1a2b3c",
    "signup_text": "Tilmeld dig eksklusive fordele",
    "unsplash_enabled": 1,
    "gtm": "GTM-ABC1234"
  },
  "images": {
    "logo": ["https://cdn.lifepeaks.dk/company/42/logo.png"]
  }
}

PATCH /v2/order-page

Partially updates the order-page configuration. Include only the fields you want to change.

Query parameters:

ParameterTypeDescription
localestringBCP 47 locale for i18n fields (overridden by locale in the request body if both are supplied).
companystringSlug of an assigned company to update instead of your own. It may also be sent as a company field in the request body, where the query string wins if both carry it. See Endpoints — Conventions.

Example request — show the logo full width, and update the Danish signup text:

bash
# A setting shared by every language (not i18n, no locale needed)
curl -X PATCH \
  -H "Authorization: Bearer lp_live_..." \
  -H "Content-Type: application/json" \
  -d '{"logo_full_width": true}' \
  https://api.lifepeaks.dk/v2/order-page

# Update Danish copy (i18n field, pass locale)
curl -X PATCH \
  -H "Authorization: Bearer lp_live_..." \
  -H "Content-Type: application/json" \
  -d '{"signup_text": "Tilmeld dig eksklusive fordele", "locale": "da-DK"}' \
  https://api.lifepeaks.dk/v2/order-page

Returns the full updated config (200) on success. Returns 422 if a field is unknown, the wrong type, or exceeds its max length.

GET /v2/order-page/schema

Returns the allow-list of configurable fields with their types, constraints, and grouping.

Example response (abbreviated):

json
{
  "fields": [
    {
      "field": "signup_text",
      "type": "string",
      "max": 2000,
      "i18n": true,
      "group": "copy"
    },
    {
      "field": "company_box_background",
      "type": "color",
      "max": 7,
      "i18n": false,
      "group": "theme"
    }
  ]
}

Safe field catalog

Fields are organized into five groups. Only these fields are accepted in PATCH /v2/order-page.

theme

Color tokens for the order-page UI.

FieldTypeMaxNotes
company_box_backgroundcolor7Kept for compatibility: the current order form does not show it, so a change has no visible effect. Must be #rrggbb.

copy (i18n-capable)

Text strings displayed on the order page. Pass locale to write or read in a specific locale.

FieldTypeMaxi18n
option_textstring—yes
value_textstring—yes
variant_textstring—yes
event_textstring—yes
special_offer_textstring—yes
add_on_voucher_textstring—yes
signup_textstring2000yes
taglinestring—yes
payment_terms_allstring—yes
payment_terms_ticketstring—yes
payment_terms_benefit_dealstring—yes
footer_namestring4000no

footer_name is company-wide. Changing it affects all locales; locale does not create a separate translation.

URLs and link-related strings.

FieldTypeMax
order_linkstring1000
order_link_textstring100
order_link_subheadingstring255
logo_link_urlstring1000
policy_urlstring255
benefit_deal_policy_urlstring255
thank_you_redirect_urlstring1000

flags

Boolean toggles — integer 0 or 1.

FieldMeaning when 1
greeting_images_enabledInclude image in greeting card flow
unsplash_enabledAllow Unsplash images in greetings
special_offer_greetings_enabledEnable greetings for special offers
benefit_deal_greetings_enabledEnable greetings for benefit deals
manual_gift_card_personalization_enabledEnable personalization for manually created items
gift_card_variants_direct_onlyHide variants from aggregated listing
events_direct_onlyHide tickets from aggregated listing
special_offers_direct_onlyHide specials from aggregated listing
add_on_vouchers_direct_onlyHide ticket coupons from aggregated listing
gift_card_phone_requiredRequire phone number on gift card checkout
link_priority_orderShow custom link above product list
custom_mail_sender_enabledUse company custom mail sender
variant_images_fullShow variant images full-width
logo_full_widthRender logo full-width
logo_in_menuShow logo inside navigation menu
postal_delivery_phone_enabledUse phone for postal mail contact

other

FieldTypeMaxNotes
localescsv20Comma-separated locale codes, e.g. da-DK,en-GB. Lifepeaks only: anyone but a Lifepeaks system administrator gets 403 forbidden_field for a change
preset_buttonscsv—Comma-separated preset amount buttons
gtmgtm20Google Tag Manager ID, format GTM-XXXXXXX. Lifepeaks only: anyone but a Lifepeaks system administrator gets 403 forbidden_field for a change

Field type validation

TypeAccepted values
stringAny string within the max length limit
boolInteger 0 or 1 (or string "0" / "1")
color7-character hex #rrggbb (case-insensitive)
gtmGTM- followed by uppercase alphanumeric characters, max 20 chars
csvComma-separated string within the max length limit
intInteger value

i18n (per-locale values)

Fields with i18n: true can be written in any supported locale by passing a locale key alongside the field map:

json
{
  "signup_text": "Tilmeld dig eksklusive fordele",
  "locale": "da-DK"
}

Omitting locale writes to the default locale (en-GB). Supported locales include da-DK and en-GB. To read in a specific locale, pass ?locale=da-DK on GET /v2/order-page.

What is NOT writable

The following categories of fields are intentionally excluded from the safe-field catalog and will be rejected with 422:

  • Raw HTML, CSS, or JavaScript (orderform_css, orderform_code, etc.)
  • Payment fees and commission rates
  • Any field not returned by GET /v2/order-page/schema