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
| Method | Path | Scope | Description |
|---|---|---|---|
GET | /v2/order-page | orderpage:read | Get current config |
PATCH | /v2/order-page | orderpage:write | Partially update config |
GET | /v2/order-page/schema | orderpage:read | List safe configurable fields |
GET | /v2/order-page/revisions | orderpage:read | List published, archived, and draft revisions |
POST | /v2/order-page/drafts | orderpage:write | Create an isolated draft |
GET, PATCH | /v2/order-page/drafts/{revision_id} | orderpage:read / orderpage:write | Read or edit a draft |
GET | /v2/order-page/drafts/{revision_id}/preview | orderpage:read | Read the exact no-cache preview payload |
POST | /v2/order-page/drafts/{revision_id}/publish | orderpage:write | Publish a reviewed draft |
POST | /v2/order-page/revisions/{revision_id}/restore | orderpage:write | Copy an older revision into a new draft |
Recommended draft workflow
For customer-facing changes, use a draft instead of patching the live page directly:
- Read
GET /v2/order-page/schemaand accept only its safe fields. - Create a draft with a stable
Idempotency-KeyatPOST /v2/order-page/drafts. - Store the returned
opr_…revision ID andETag. - Update
fieldswithPATCH /v2/order-page/drafts/{revision_id}and the currentIf-Matchvalue. - Read the private, no-store preview payload.
- Publish the reviewed draft with the newest
If-Matchand an independentIdempotency-Key.
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:
| Parameter | Type | Description |
|---|---|---|
locale | string | BCP 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. |
company | string | Slug of an assigned company to read instead of your own. See Endpoints — Conventions. |
Example request:
curl -H "Authorization: Bearer lp_live_..." \
"https://api.lifepeaks.dk/v2/order-page?locale=da-DK"
Response 200:
{
"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:
| Parameter | Type | Description |
|---|---|---|
locale | string | BCP 47 locale for i18n fields (overridden by locale in the request body if both are supplied). |
company | string | Slug 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:
# 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):
{
"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.
| Field | Type | Max | Notes |
|---|---|---|---|
company_box_background | color | 7 | Kept 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.
| Field | Type | Max | i18n |
|---|---|---|---|
option_text | string | — | yes |
value_text | string | — | yes |
variant_text | string | — | yes |
event_text | string | — | yes |
special_offer_text | string | — | yes |
add_on_voucher_text | string | — | yes |
signup_text | string | 2000 | yes |
tagline | string | — | yes |
payment_terms_all | string | — | yes |
payment_terms_ticket | string | — | yes |
payment_terms_benefit_deal | string | — | yes |
footer_name | string | 4000 | no |
footer_name is company-wide. Changing it affects all locales; locale does not create a separate translation.
links
URLs and link-related strings.
| Field | Type | Max |
|---|---|---|
order_link | string | 1000 |
order_link_text | string | 100 |
order_link_subheading | string | 255 |
logo_link_url | string | 1000 |
policy_url | string | 255 |
benefit_deal_policy_url | string | 255 |
thank_you_redirect_url | string | 1000 |
flags
Boolean toggles — integer 0 or 1.
| Field | Meaning when 1 |
|---|---|
greeting_images_enabled | Include image in greeting card flow |
unsplash_enabled | Allow Unsplash images in greetings |
special_offer_greetings_enabled | Enable greetings for special offers |
benefit_deal_greetings_enabled | Enable greetings for benefit deals |
manual_gift_card_personalization_enabled | Enable personalization for manually created items |
gift_card_variants_direct_only | Hide variants from aggregated listing |
events_direct_only | Hide tickets from aggregated listing |
special_offers_direct_only | Hide specials from aggregated listing |
add_on_vouchers_direct_only | Hide ticket coupons from aggregated listing |
gift_card_phone_required | Require phone number on gift card checkout |
link_priority_order | Show custom link above product list |
custom_mail_sender_enabled | Use company custom mail sender |
variant_images_full | Show variant images full-width |
logo_full_width | Render logo full-width |
logo_in_menu | Show logo inside navigation menu |
postal_delivery_phone_enabled | Use phone for postal mail contact |
other
| Field | Type | Max | Notes |
|---|---|---|---|
locales | csv | 20 | Comma-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_buttons | csv | — | Comma-separated preset amount buttons |
gtm | gtm | 20 | Google Tag Manager ID, format GTM-XXXXXXX. Lifepeaks only: anyone but a Lifepeaks system administrator gets 403 forbidden_field for a change |
Field type validation
| Type | Accepted values |
|---|---|
string | Any string within the max length limit |
bool | Integer 0 or 1 (or string "0" / "1") |
color | 7-character hex #rrggbb (case-insensitive) |
gtm | GTM- followed by uppercase alphanumeric characters, max 20 chars |
csv | Comma-separated string within the max length limit |
int | Integer 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:
{
"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