Headless API
Public

Public

Unauthenticated, cacheable storefront data (SSR-friendly)

Earning + spending programs (public catalog)

GET/programs

Feeds joy-ways-to-earn (earning) and the catalog half of joy-rewards-catalog (spending).

GET/programs
curl -L \
--url 'https://api.joy.so/app/api/v1/headless/programs' \
--header 'Accept: */*'

Program list

{
"success": true,
"data": [
{
"id": "string",
"programType": "earning",
"key": "place_order",
"title": "Place an order",
"description": "string",
"iconUrl": "string",
"points": 1,
"pointsCost": 1,
"rewardType": "fixed_amount",
"rewardValue": 1,
"redeemType": "fixed",
"actionUrl": "https://www.facebook.com/sharer.php?u=https%3A%2F%2Fyourshop.com",
"lineJoinType": "follow_oa",
"rateMoney": 1,
"conditions": [
"Online store only",
"Minimum order $50"
],
"isEarned": true,
"form": {
"headerImage": "string",
"successIconUrl": "string",
"requireImage": true,
"autoApprove": true,
"instantRewardEnabled": true,
"instantRewardPoints": 1
},
"review": {
"redirectUrl": "string",
"headerImage": "string",
"extraPoints": 1
},
"googleReview": {
"urlLocation": "string",
"status": "pending",
"statusText": "string"
},
"streak": {
"currentDay": 1,
"totalDays": 1,
"canClaimToday": true,
"message": "string"
},
"birthday": {
"rewardOptions": [
{
"id": "string",
"label": "Get 10% off for your birthday",
"imageUrl": "string"
}
],
"rewardSelection": "single",
"dateFormat": "MM/DD/YYYY"
}
}
],
"meta": {},
"timestamp": "2026-07-31T07:27:54.123Z"
}
Parameters
shopquery · stringRequired

The shop's myshopify domain (merchant env JOY_SHOP_DOMAIN). Resolves the shop for public endpoints. d is accepted as an alias.

x-joy-server-tsheader · string

Server-signed requests only. Unix time in seconds used in x-joy-server-signature.

x-joy-server-signatureheader · string

Server-signed requests only. Hex HMAC_SHA256("joy-headless-server-v1:{lowercased shop domain}:{ts}", headlessSecret). Never send from a browser.

localequery · string

Language to render Joy's own text in — program titles, tier names, earn descriptions, redeem conditions.

Whoever owns the URL owns the locale. On a Hydrogen storefront that is Hydrogen (/fr/..., storefront.i18n), so it passes its value down; this API never sniffs Accept-Language or IP, which would contradict the route the shopper is standing on.

Accepts the shop's primary language or any ACTIVE additional language (fr, zh-CN, he-IL). Anything the merchant has not enabled falls back to the primary language rather than erroring. Omit for primary.

It lives in the query, not a header, so it is part of the CDN cache key on the public endpoints — a French and an English fetch of the same shop can never share a cached response.

programTypequery · string

Filter to one kind; omit for both.

Returns200

Program list

A list of Program objects in data, inside the standard envelope (success, timestamp).
dataProgram[]
Show properties
data.idstring
data.programTypestring
data.keystring

Program event key, e.g. place_order, signup, birthday, social_share.

Example: "place_order"
data.titlestring
Example: "Place an order"
data.descriptionstring

Empty string when the merchant wrote none — never null. Text fields fall back to '' so a client can print them unguarded.

data.iconUrlstring
data.pointsinteger

Points earned (earning programs).

data.pointsCostinteger

Points required to redeem (spending programs).

data.rewardTypestring

Reward kind (spending programs).

data.rewardValuenumber

Reward amount — currency or percent depending on rewardType.

data.redeemTypestring

How to read pointsCost (spending programs; null for earning). On dynamic it is the STEP — the customer chooses a multiple of it — so a card must read "from 500 points", not "500 points". On fixed it is the price. The full slider bounds live on AvailableReward; this field exists so a signed-out card renders the same wording as the signed-in one.

data.actionUrlstring

Where the customer goes to perform the action, resolved server-side per event. Earning programs only; always null for spending. Guaranteed http(s) — non-http schemes are dropped server-side. For the 3 social events that need it (share_facebook, share_twitter, follow_twitter) this is a ready-to-open share/follow intent URL (e.g. a facebook.com/sharer.php or twitter.com/intent link), not the merchant-entered profile URL itself — the other 10 social events, plus survey/custom-program/Google-review links and the merchant's own "Add URL on click" override, resolve to that destination unchanged.

Example: "https://www.facebook.com/sharer.php?u=https%3A%2F%2Fyourshop.com"
data.lineJoinTypestring

How a join_line program credits points — null for every other event, and always null on a spending program. follow_oa only pays out through POST /customer/social/line/auth-url's OAuth popup (lineUserId must be set first); join_line is claim-on-click via actionUrl / POST /customer/earn/social, same as every other social event. A missing/legacy value (predates LINE OAuth) reads as join_link.

data.rateMoneynumber

Spend-rate programs earn points per this amount of shop currency (see ShopConfig.currency / currencyFormat), e.g. points=1 with rateMoney=1 means "1 point per $1". Null for flat-rate programs and for spending programs. This is the program's BASE rate — per-tier overrides are not reflected, as the public contract has no customer context.

Example: 1
data.conditionsstring[]

The fine print a shopper needs BEFORE spending points, rendered server-side: sale channel, which products it applies to, usable-from date, minimum order, expiry, usage limit. Always present — empty means "no restrictions", and earning programs never carry any.

Example: ["Online store only","Minimum order $50"]
data.isEarnedboolean

Whether the current customer has already completed this (non-repeatable) earning program. Only present on the personalised GET /customer/programs response — omitted entirely (the field is absent, not null) from the public, CDN-shared GET /programs response, and from every spending program. Repeatable earning events (place_order, write_review, submit_receipt, submit_form, fill_survey, milestone) always report false — there is no persistent "earned" state to track for those.

data.formobject

Design + approval settings, submit_form and fill_survey only — null for every other event, and always null on a spending program. autoApprove matters beyond display: POST /customer/earn for these two events already reports status: earned vs pending based on this exact flag, so without it here that switch is opaque to a headless client.

Show properties
data.form.headerImagestring
data.form.successIconUrlstring
data.form.requireImageboolean

Whether the shopper must attach an image with their submission.

data.form.autoApproveboolean

When true, POST /customer/earn reports status: earned immediately; when false, status: pending until a merchant approves the submission in admin.

data.form.instantRewardEnabledboolean

Whether a smaller reward is granted immediately, ahead of approval.

data.form.instantRewardPointsinteger

The instant reward amount, when instantRewardEnabled is true.

data.reviewobject

Design + reward settings, write_review only — null for every other event, and always null on a spending program.

Show properties
data.review.redirectUrlstring

Where to send the shopper back to AFTER they finish writing the review — NOT a CTA (actionUrl is always null for write_review; this is a distinct field). Guaranteed either an absolute http(s) url or a root-relative path (/collections/all style) — non-http(s) schemes and protocol-relative (//host) values are dropped server-side. Null when the merchant left it blank — pick your own fallback (for example /collections/all).

data.review.headerImagestring
data.review.extraPointsinteger

Bonus points awarded on top of the base reward for this program.

data.googleReviewobject

google_maps_review only — null for every other event, and always null on a spending program. LIMITATION: the backend stores review state on the customer (customers/{id}.statusGoogleMapsReview), not per-program, so it assumes at most one active google_maps_review program per shop — every such program reports the SAME customer state. status/statusText are omitted entirely (not null-filled) on the public, CDN-shared GET /programs response, the same presence rule as isEarned; urlLocation is program-level and present on both.

Show properties
data.googleReview.urlLocationstring

The Google Maps location the shopper reviews. Guaranteed http(s) — non-http schemes are dropped server-side.

data.googleReview.statusstring

The shopper's own review, if any. null means never submitted — the only one of the 4 states with no persistent record on the customer. rejected is the only state the shopper can act on again (resubmit); pending and approved are dead ends. Personalised path only — see the description above.

data.googleReview.statusTextstring

null when status is null: "never submitted" is a 3-step guided form, not a single sentence, and stays entirely client-owned UI. Personalised path only, same rule as status.

data.streakobject

streak_interact_website only — null for every other event, and always null on a spending program. UNLIKE googleReview, the ENTIRE object (including totalDays, which is program config) is personalised — present only on GET /customer/programs, and null (not a partial object) on the public, CDN-shared GET /programs response. isEarned on this same event answers a DIFFERENT question ("has the highest milestone ever been reached") — this object answers "what day is the shopper on right now, and can they claim today".

Show properties
data.streak.currentDayinteger

The streak day the shopper is currently on (0 before their first claim). Resets to 0 after a missed day or when returning to this program from a different one.

data.streak.totalDaysinteger

The highest streak milestone day configured on this program.

data.streak.canClaimTodayboolean

Whether calling POST /customer/earn for this program right now would award points. false covers two different terminal states for today: an ordinary same-day cooldown (already claimed, come back tomorrow) and a program that can no longer be completed at all (not enough days left before it ends) — message is the only field that tells them apart.

data.streak.messagestring

Non-null ONLY when the program can no longer be completed (not enough days remain before its endDate to reach totalDays) — every other state, including an ordinary same-day cooldown, has nothing extra to say and reports null.

data.birthdayobject

birthday only — null for every other event, and always null on a spending program. Like streak, the ENTIRE object is personalised — present only on GET /customer/programs, and null (not a partial object) on the public, CDN-shared GET /programs response. Two reasons: the birthday-entry modal this field exists for always calls GET /customer/programs anyway (it also needs Customer.birthday), and rewardOptions for a VIP-tier-scoped program can only resolve against a customer's own tier, which the public path never has. KNOWN LIMITATION: rewardOptions: [] is reported both when the program has no reward picker at all (an older layout — a reward is still granted on save, just not through a picker) AND when the picker is on but the shopper's OWN tier has zero rewards configured for it — a client cannot distinguish the two from this field alone.

Show properties
data.birthday.rewardOptionsobject[]

The rewards this shopper may choose from.

Show properties
data.birthday.rewardOptions.idstring

Send this value back in POST /customer/earn's context.birthdayRewards (see that endpoint).

data.birthday.rewardOptions.labelstring
Example: "Get 10% off for your birthday"
data.birthday.rewardOptions.imageUrlstring

Present only for a free-gift reward; null for point/discount rewards.

data.birthday.rewardSelectionstring

Whether the shopper may pick exactly one reward (render radio buttons) or several (checkboxes). Independent of whether rewardOptions is empty — still reflects the merchant's configured mode even with nothing to pick.

data.birthday.dateFormatstring

Day/month display ORDER for the birthday-entry modal's date input — NOT whether a year is collected at all (see ShopConfig.isNewFormatDOB for that).

metaobject

Optional metadata (pagination, counts).

More envelope fields 2
successboolean
Example: true
timestampstring · date-time
Example: "2026-07-31T07:27:54.123Z"
Errors
400

Malformed request

Show properties
successboolean
Example: false
errorobject
Show properties
error.messagestring
Example: "Unauthorized"
error.codestring
Example: "UNAUTHORIZED"
error.statusCodeinteger
Example: 401
timestampstring · date-time
Example: "2026-07-31T07:27:54.123Z"
404

The shop domain did not resolve to a Joy shop

Show properties
successboolean
Example: false
errorobject
Show properties
error.messagestring
Example: "Unauthorized"
error.codestring
Example: "UNAUTHORIZED"
error.statusCodeinteger
Example: 401
timestampstring · date-time
Example: "2026-07-31T07:27:54.123Z"
429

RATE_LIMITED - a rate-limit bucket for this caller is full (per IP, per shop, per grant, per email, or per customer depending on the route). Wait Retry-After seconds and retry.

Show properties
successboolean
Example: false
errorobject
Show properties
error.messagestring
Example: "Unauthorized"
error.codestring
Example: "UNAUTHORIZED"
error.statusCodeinteger
Example: 401
timestampstring · date-time
Example: "2026-07-31T07:27:54.123Z"

A guest's own referral link, by email

POST/referral/generate-link

Feeds joy-referral for a shopper with no JWT yet (not signed in) — they hand over an email, get their own referral link back. No referral logic is duplicated here.

Not CDN-cacheable, unlike the other Public-tagged endpoints above — this response carries the caller's own referral link/code, keyed by the email they submitted.

POST/referral/generate-link
curl -L \
--request POST \
--url 'https://api.joy.so/app/api/v1/headless/referral/generate-link' \
--header 'Content-Type: application/json' \
--data '{
"email": "[email protected]"
}'

Referral link generated (or already existed for this email). An unknown email still answers 200 with empty/zero values (no customer is created and existence is not disclosed).

{
"success": true,
"data": {
"referralCode": "string",
"urlReferral": "string",
"referralCompleteCount": 1,
"referralPendingCount": 1,
"isReferralLimitReached": true,
"referralLimit": 1
},
"meta": {},
"timestamp": "2026-07-31T07:27:54.123Z"
}
Parameters
shopquery · stringRequired

The shop's myshopify domain (merchant env JOY_SHOP_DOMAIN). Resolves the shop for public endpoints. d is accepted as an alias.

x-joy-server-tsheader · string

Server-signed requests only. Unix time in seconds used in x-joy-server-signature.

x-joy-server-signatureheader · string

Server-signed requests only. Hex HMAC_SHA256("joy-headless-server-v1:{lowercased shop domain}:{ts}", headlessSecret). Never send from a browser.

Request body
emailstring · emailRequired
Returns200

Referral link generated (or already existed for this email). An unknown email still answers 200 with empty/zero values (no customer is created and existence is not disclosed).

A GuestReferralLink object in data, inside the standard envelope (success, timestamp).
dataGuestReferralLink

Response for POST /referral/generate-link.

Show properties
data.referralCodestring
data.urlReferralstring

The guest's ready-to-share referral link.

data.referralCompleteCountinteger
data.referralPendingCountinteger
data.isReferralLimitReachedboolean
data.referralLimitinteger
metaobject

Optional metadata (pagination, counts).

More envelope fields 2
successboolean
Example: true
timestampstring · date-time
Example: "2026-07-31T07:27:54.123Z"
Errors
400

BAD_REQUEST — missing/malformed email. REFERRAL_LINK_UNAVAILABLE — the referral program isn't available for this shop, or this guest isn't eligible (e.g. access restricted, opt-in enrollment not joined).

Show properties
successboolean
Example: false
errorobject
Show properties
error.messagestring
Example: "Unauthorized"
error.codestring
Example: "UNAUTHORIZED"
error.statusCodeinteger
Example: 401
timestampstring · date-time
Example: "2026-07-31T07:27:54.123Z"
404

The shop domain did not resolve to a Joy shop

Show properties
successboolean
Example: false
errorobject
Show properties
error.messagestring
Example: "Unauthorized"
error.codestring
Example: "UNAUTHORIZED"
error.statusCodeinteger
Example: 401
timestampstring · date-time
Example: "2026-07-31T07:27:54.123Z"
429

RATE_LIMITED - a rate-limit bucket for this caller is full (per IP, per shop, per grant, per email, or per customer depending on the route). Wait Retry-After seconds and retry.

Show properties
successboolean
Example: false
errorobject
Show properties
error.messagestring
Example: "Unauthorized"
error.codestring
Example: "UNAUTHORIZED"
error.statusCodeinteger
Example: 401
timestampstring · date-time
Example: "2026-07-31T07:27:54.123Z"

Eligible products/collections for one place_order program (public)

GET/programs/{id}/place-order-scope

Feeds the "which products earn points" browser on a place_order / place_order_subscription program's earn card — a product/collection browser, not an earn form (place_order can never be claimed by a click). Returns IDENTIFIERS only (id/handle), not product cards: a Hydrogen storefront already has its own product data (fresher, market-priced, inventory-aware, its own components) via the Storefront API, so this only says WHICH products/collections qualify.

More details

Shop-scoped, not customer-scoped — every shopper on the storefront can share one cached response, same Cache-Control as /programs.

Fetch this lazily when the shopper opens the product browser, not with the program list — resolving a collection condition can need a live Shopify lookup.

scope: 'all' means no restriction — every product qualifies, and products/collections are both empty; render a generic "browse everything" CTA rather than any specific list.

GET/programs/{id}/place-order-scope
curl -L \
--url 'https://api.joy.so/app/api/v1/headless/programs/{id}/place-order-scope' \
--header 'Accept: */*'

Eligible products/collections

{
"success": true,
"data": {
"scope": "all",
"products": [
{
"id": "string",
"handle": "string",
"quantity": 1
}
],
"collections": [
{
"title": "string",
"handle": "string"
}
]
},
"meta": {},
"timestamp": "2026-07-31T07:27:54.123Z"
}
Parameters
shopquery · stringRequired

The shop's myshopify domain (merchant env JOY_SHOP_DOMAIN). Resolves the shop for public endpoints. d is accepted as an alias.

idpath · stringRequired

A place_order or place_order_subscription program, from /programs.

x-joy-server-tsheader · string

Server-signed requests only. Unix time in seconds used in x-joy-server-signature.

x-joy-server-signatureheader · string

Server-signed requests only. Hex HMAC_SHA256("joy-headless-server-v1:{lowercased shop domain}:{ts}", headlessSecret). Never send from a browser.

Returns200

Eligible products/collections

A PlaceOrderScope object in data, inside the standard envelope (success, timestamp).
dataPlaceOrderScope

Which products/collections earn points on a place_order / place_order_subscription program — identifiers only (id/handle), not product cards. See the /programs/{id}/place-order-scope path description for why.

Show properties
data.scopestring

all — every product qualifies; products/collections are both empty and the client should render a generic "browse everything" CTA. select — only the listed products/collections qualify.

data.productsobject[]
Show properties
data.products.idstring

Shopify product id, numeric and unprefixed.

data.products.handlestring
data.products.quantityinteger

Required quantity to earn, when the merchant set one (V2 rule-engine programs only). Null otherwise.

data.collectionsobject[]
Show properties
data.collections.titlestring
data.collections.handlestring

Resolved live from Shopify by title. Null when the collection was renamed/deleted since the merchant configured this program, or the title otherwise didn't resolve — the shopper still sees title.

metaobject

Optional metadata (pagination, counts).

More envelope fields 2
successboolean
Example: true
timestampstring · date-time
Example: "2026-07-31T07:27:54.123Z"
Errors
400

Malformed request

Show properties
successboolean
Example: false
errorobject
Show properties
error.messagestring
Example: "Unauthorized"
error.codestring
Example: "UNAUTHORIZED"
error.statusCodeinteger
Example: 401
timestampstring · date-time
Example: "2026-07-31T07:27:54.123Z"
404

SHOP_NOT_FOUND — the shop domain did not resolve. INVALID_PROGRAM — the id is not a place_order/place_order_subscription program of that shop.

Show properties
successboolean
Example: false
errorobject
Show properties
error.messagestring
Example: "Unauthorized"
error.codestring
Example: "UNAUTHORIZED"
error.statusCodeinteger
Example: 401
timestampstring · date-time
Example: "2026-07-31T07:27:54.123Z"
429

RATE_LIMITED - a rate-limit bucket for this caller is full (per IP, per shop, per grant, per email, or per customer depending on the route). Wait Retry-After seconds and retry.

Show properties
successboolean
Example: false
errorobject
Show properties
error.messagestring
Example: "Unauthorized"
error.codestring
Example: "UNAUTHORIZED"
error.statusCodeinteger
Example: 401
timestampstring · date-time
Example: "2026-07-31T07:27:54.123Z"

VIP tiers + perks (public)

GET/tiers

Feeds joy-vip-tiers (SSR ★1) and the frame of joy-membership-card.

GET/tiers
curl -L \
--url 'https://api.joy.so/app/api/v1/headless/tiers' \
--header 'Accept: */*'

Tier list

{
"success": true,
"data": [
{
"id": "string",
"name": "Gold",
"description": "string",
"iconUrl": "string",
"threshold": 1,
"perks": [
{
"id": "string",
"title": "string",
"description": "string"
}
],
"memberCount": 1
}
],
"meta": {},
"timestamp": "2026-07-31T07:27:54.123Z"
}
Parameters
shopquery · stringRequired

The shop's myshopify domain (merchant env JOY_SHOP_DOMAIN). Resolves the shop for public endpoints. d is accepted as an alias.

x-joy-server-tsheader · string

Server-signed requests only. Unix time in seconds used in x-joy-server-signature.

x-joy-server-signatureheader · string

Server-signed requests only. Hex HMAC_SHA256("joy-headless-server-v1:{lowercased shop domain}:{ts}", headlessSecret). Never send from a browser.

localequery · string

Language to render Joy's own text in — program titles, tier names, earn descriptions, redeem conditions.

Whoever owns the URL owns the locale. On a Hydrogen storefront that is Hydrogen (/fr/..., storefront.i18n), so it passes its value down; this API never sniffs Accept-Language or IP, which would contradict the route the shopper is standing on.

Accepts the shop's primary language or any ACTIVE additional language (fr, zh-CN, he-IL). Anything the merchant has not enabled falls back to the primary language rather than erroring. Omit for primary.

It lives in the query, not a header, so it is part of the CDN cache key on the public endpoints — a French and an English fetch of the same shop can never share a cached response.

Returns200

Tier list

A list of Tier objects in data, inside the standard envelope (success, timestamp).
dataTier[]
Show properties
data.idstring
data.namestring
Example: "Gold"
data.descriptionstring
data.iconUrlstring
data.thresholdnumber

Points or spend required to reach this tier.

data.perksobject[]
Show properties
data.perks.idstring
data.perks.titlestring
data.perks.descriptionstring
data.memberCountinteger

Present only when the merchant enables member counts.

metaobject

Optional metadata (pagination, counts).

More envelope fields 2
successboolean
Example: true
timestampstring · date-time
Example: "2026-07-31T07:27:54.123Z"
Errors
400

Malformed request

Show properties
successboolean
Example: false
errorobject
Show properties
error.messagestring
Example: "Unauthorized"
error.codestring
Example: "UNAUTHORIZED"
error.statusCodeinteger
Example: 401
timestampstring · date-time
Example: "2026-07-31T07:27:54.123Z"
404

The shop domain did not resolve to a Joy shop

Show properties
successboolean
Example: false
errorobject
Show properties
error.messagestring
Example: "Unauthorized"
error.codestring
Example: "UNAUTHORIZED"
error.statusCodeinteger
Example: 401
timestampstring · date-time
Example: "2026-07-31T07:27:54.123Z"
429

RATE_LIMITED - a rate-limit bucket for this caller is full (per IP, per shop, per grant, per email, or per customer depending on the route). Wait Retry-After seconds and retry.

Show properties
successboolean
Example: false
errorobject
Show properties
error.messagestring
Example: "Unauthorized"
error.codestring
Example: "UNAUTHORIZED"
error.statusCodeinteger
Example: 401
timestampstring · date-time
Example: "2026-07-31T07:27:54.123Z"

Branding, currency, point label (public)

GET/shop-config

Consumed by every block for theming defaults, currency format and the point label.

GET/shop-config
curl -L \
--url 'https://api.joy.so/app/api/v1/headless/shop-config' \
--header 'Accept: */*'

Shop config

{
"success": true,
"data": {
"shopDomain": "string",
"currency": "USD",
"currencyFormat": "${{amount}}",
"pointLabel": {
"singular": "point",
"plural": "points"
},
"branding": {
"primaryColor": "#054597",
"secondaryColor": "string"
},
"loyaltyPageUrl": "string",
"programEnabled": true,
"isNewFormatDOB": true,
"optInEnrollmentEnabled": true,
"facebookPageId": "string"
},
"meta": {},
"timestamp": "2026-07-31T07:27:54.123Z"
}
Parameters
shopquery · stringRequired

The shop's myshopify domain (merchant env JOY_SHOP_DOMAIN). Resolves the shop for public endpoints. d is accepted as an alias.

x-joy-server-tsheader · string

Server-signed requests only. Unix time in seconds used in x-joy-server-signature.

x-joy-server-signatureheader · string

Server-signed requests only. Hex HMAC_SHA256("joy-headless-server-v1:{lowercased shop domain}:{ts}", headlessSecret). Never send from a browser.

localequery · string

Language to render Joy's own text in — program titles, tier names, earn descriptions, redeem conditions.

Whoever owns the URL owns the locale. On a Hydrogen storefront that is Hydrogen (/fr/..., storefront.i18n), so it passes its value down; this API never sniffs Accept-Language or IP, which would contradict the route the shopper is standing on.

Accepts the shop's primary language or any ACTIVE additional language (fr, zh-CN, he-IL). Anything the merchant has not enabled falls back to the primary language rather than erroring. Omit for primary.

It lives in the query, not a header, so it is part of the CDN cache key on the public endpoints — a French and an English fetch of the same shop can never share a cached response.

Returns200

Shop config

A ShopConfig object in data, inside the standard envelope (success, timestamp).
dataShopConfig
Show properties
data.shopDomainstring
data.currencystring
Example: "USD"
data.currencyFormatstring
Example: "${{amount}}"
data.pointLabelobject
Show properties
data.pointLabel.singularstring
Example: "point"
data.pointLabel.pluralstring
Example: "points"
data.brandingobject
Show properties
data.branding.primaryColorstring

Null when the merchant never picked a brand color.

Example: "#054597"
data.branding.secondaryColorstring
data.loyaltyPageUrlstring
data.programEnabledboolean
data.isNewFormatDOBboolean

Whether the birthday-entry modal must also collect a YEAR (not just day/month). Shop-level — shared by every date-of-birth-collecting event — derived from the birthday program's dateFormat at save time. Program.birthday.dateFormat is a different, per-program setting: it only reorders day/month for display, never adds or removes the year field.

data.optInEnrollmentEnabledboolean

Whether the shop is running the self-serve "opt-in" enrollment flow (Premium plan + not manual-assignment-only + the toggle is on). Combine with Customer.type to decide when to show a "Join Program" button — see POST /customer/join-program. Rides this endpoint's own 5-minute CDN cache, so a shop that just upgraded plan or flipped the toggle can take up to 5 minutes to see it reflect here.

data.facebookPageIdstring

The Facebook Page the shop currently has connected; null when it has none. Needed to build the m.me/{facebookPageId}?ref=... Messenger link that links a shopper's Facebook account — a client constructs that link itself, no signing endpoint required: the ref payload is signed with the shop's own id as the HMAC key, which an authenticated caller already holds as a plaintext claim in its JWT. This is shop CONFIGURATION, not link state: whether the current shopper is connected is Customer.social.facebookConnected. Rides this endpoint's 5-minute CDN cache, same staleness as optInEnrollmentEnabled.

metaobject

Optional metadata (pagination, counts).

More envelope fields 2
successboolean
Example: true
timestampstring · date-time
Example: "2026-07-31T07:27:54.123Z"
Errors
400

Malformed request

Show properties
successboolean
Example: false
errorobject
Show properties
error.messagestring
Example: "Unauthorized"
error.codestring
Example: "UNAUTHORIZED"
error.statusCodeinteger
Example: 401
timestampstring · date-time
Example: "2026-07-31T07:27:54.123Z"
404

The shop domain did not resolve to a Joy shop

Show properties
successboolean
Example: false
errorobject
Show properties
error.messagestring
Example: "Unauthorized"
error.codestring
Example: "UNAUTHORIZED"
error.statusCodeinteger
Example: 401
timestampstring · date-time
Example: "2026-07-31T07:27:54.123Z"
429

RATE_LIMITED - a rate-limit bucket for this caller is full (per IP, per shop, per grant, per email, or per customer depending on the route). Wait Retry-After seconds and retry.

Show properties
successboolean
Example: false
errorobject
Show properties
error.messagestring
Example: "Unauthorized"
error.codestring
Example: "UNAUTHORIZED"
error.statusCodeinteger
Example: 401
timestampstring · date-time
Example: "2026-07-31T07:27:54.123Z"

GET /loyalty-page/tier-rewards

GET/loyalty-page/tier-rewards

Loyalty Page V2 parity read for the tier benefit matrix. CDN-cacheable on success only.

GET/loyalty-page/tier-rewards
curl -L \
--url 'https://api.joy.so/app/api/v1/headless/loyalty-page/tier-rewards' \
--header 'Accept: */*'
{
"success": true,
"data": [
{}
],
"pageInfo": {
"hasNext": true,
"hasPre": true
},
"error": "string"
}
Parameters
shopquery · stringRequired

The shop's myshopify domain (merchant env JOY_SHOP_DOMAIN). Resolves the shop for public endpoints. d is accepted as an alias.

x-joy-server-tsheader · string

Server-signed requests only. Unix time in seconds used in x-joy-server-signature.

x-joy-server-signatureheader · string

Server-signed requests only. Hex HMAC_SHA256("joy-headless-server-v1:{lowercased shop domain}:{ts}", headlessSecret). Never send from a browser.

Returns200
A list of object[] objects in data, inside the standard envelope (success).
dataobject[]
pageInfoobject
Show properties
pageInfo.hasNextboolean
pageInfo.hasPreboolean
errorstring

Present on a handled failure (still HTTP 200), with success false.

More envelope fields 1
successboolean
Errors
400

Malformed request

Show properties
successboolean
Example: false
errorobject
Show properties
error.messagestring
Example: "Unauthorized"
error.codestring
Example: "UNAUTHORIZED"
error.statusCodeinteger
Example: 401
timestampstring · date-time
Example: "2026-07-31T07:27:54.123Z"
404

The shop domain did not resolve to a Joy shop

Show properties
successboolean
Example: false
errorobject
Show properties
error.messagestring
Example: "Unauthorized"
error.codestring
Example: "UNAUTHORIZED"
error.statusCodeinteger
Example: 401
timestampstring · date-time
Example: "2026-07-31T07:27:54.123Z"
429

RATE_LIMITED - a rate-limit bucket for this caller is full (per IP, per shop, per grant, per email, or per customer depending on the route). Wait Retry-After seconds and retry.

Show properties
successboolean
Example: false
errorobject
Show properties
error.messagestring
Example: "Unauthorized"
error.codestring
Example: "UNAUTHORIZED"
error.statusCodeinteger
Example: 401
timestampstring · date-time
Example: "2026-07-31T07:27:54.123Z"

Published Loyalty Page V2 structure (public)

GET/loyalty-page/structure

The section list, per-section theme and layout a merchant published from the Joy admin editor — everything the page needs to paint that is NOT specific to one shopper.

More details

Returns the published version only, never the draft. Public and CDN-cacheable — it carries nothing that is not already public on the rendered page. Cached SHORTER than the other public reads (public, s-maxage=30, stale-while-revalidate=300) so a publish reaches headless storefronts within ~30s.

data.faqs lists the shop's FAQs — an empty array (never null) when there are none.

GET/loyalty-page/structure
curl -L \
--url 'https://api.joy.so/app/api/v1/headless/loyalty-page/structure' \
--header 'Accept: */*'

Published structure + FAQs. data.structure is null on a shop that has never published; data.faqs is [] when the shop has none (or none that are enabled).

{
"success": true,
"data": {
"structure": {},
"faqs": [
{
"title": "string",
"content": "string",
"orderBy": 1
}
]
},
"meta": {},
"timestamp": "2026-07-31T07:27:54.123Z"
}
Parameters
shopquery · stringRequired

The shop's myshopify domain (merchant env JOY_SHOP_DOMAIN). Resolves the shop for public endpoints. d is accepted as an alias.

x-joy-server-tsheader · string

Server-signed requests only. Unix time in seconds used in x-joy-server-signature.

x-joy-server-signatureheader · string

Server-signed requests only. Hex HMAC_SHA256("joy-headless-server-v1:{lowercased shop domain}:{ts}", headlessSecret). Never send from a browser.

Returns200

Published structure + FAQs. data.structure is null on a shop that has never published; data.faqs is [] when the shop has none (or none that are enabled).

A object object in data, inside the standard envelope (success, timestamp).
dataobject
Show properties
data.structureobject

The published structure document. Shape is owned by the admin editor and the storefront renderer jointly — sections[] (id + enabled + order) plus content, theme and layout keyed by section id.

data.faqsobject[]

Already sorted; a consumer should render it as given. orderBy still travels so the two hosts emit the same shape, and so a consumer that does sort has the field to sort on rather than an undefined.

Show properties
data.faqs.titlestring
data.faqs.contentstring
data.faqs.orderBynumber

Merchant-authored position. Already applied to this array's order.

metaobject

Optional metadata (pagination, counts).

More envelope fields 2
successboolean
Example: true
timestampstring · date-time
Example: "2026-07-31T07:27:54.123Z"
Errors
400

Malformed request

Show properties
successboolean
Example: false
errorobject
Show properties
error.messagestring
Example: "Unauthorized"
error.codestring
Example: "UNAUTHORIZED"
error.statusCodeinteger
Example: 401
timestampstring · date-time
Example: "2026-07-31T07:27:54.123Z"
404

The shop domain did not resolve to a Joy shop

Show properties
successboolean
Example: false
errorobject
Show properties
error.messagestring
Example: "Unauthorized"
error.codestring
Example: "UNAUTHORIZED"
error.statusCodeinteger
Example: 401
timestampstring · date-time
Example: "2026-07-31T07:27:54.123Z"
429

RATE_LIMITED - a rate-limit bucket for this caller is full (per IP, per shop, per grant, per email, or per customer depending on the route). Wait Retry-After seconds and retry.

Show properties
successboolean
Example: false
errorobject
Show properties
error.messagestring
Example: "Unauthorized"
error.codestring
Example: "UNAUTHORIZED"
error.statusCodeinteger
Example: 401
timestampstring · date-time
Example: "2026-07-31T07:27:54.123Z"

Full widget payload — shop + (optionally) rich customer state

GET/info

Optional auth: Authorization: Bearer <token> from POST /auth/token is OPTIONAL, not required.

  • No/invalid/expired Bearer -> guest: data.customer is absent, only shop-level fields are returned.
  • Valid Bearer -> data.customer is the rich, per-customer payload.
  • A Bearer naming a shopId that does not match the shop resolved from d is a 401 UNAUTHORIZED — it is never silently downgraded to a guest response (a proven identity for a different shop is rejected, not ignored).
More details

Response shape — not the standard envelope. Three distinct shapes:

  1. Success — 200 { data: {...} }. No success/timestamp key.
  2. Validation/auth errors (missing d, unknown shop, wrong-shop Bearer) — the standard error envelope {success: false, error: {message, code, statusCode}} with the real HTTP status (400/404/401).
  3. Internal errors — 200 { error: "<message>" }. No success key and no HTTP error status.

An error response on the guest path (shape 2 or 3 above) is NEVER cached, so a transient failure cannot get stuck shop-wide for the cache window. Authenticated responses are always Cache-Control: private, no-store and rate-limited the same as /customer/* — never CDN-cacheable.

GET/info
curl -L \
--url 'https://api.joy.so/app/api/v1/headless/info' \
--header 'Authorization: Bearer YOUR_HEADLESS_TOKEN' \
--header 'Accept: */*'
No response body.
Authorization
Authorizationheader · stringOptional
Parameters
dquery · stringRequired

The shop's myshopify domain (alias of shop).

x-joy-server-tsheader · string

Server-signed requests only. Unix time in seconds used in x-joy-server-signature.

x-joy-server-signatureheader · string

Server-signed requests only. Hex HMAC_SHA256("joy-headless-server-v1:{lowercased shop domain}:{ts}", headlessSecret). Never send from a browser.

lquery · string

Locale — same meaning as locale on the other endpoints.

dlquery · string

Detected/buyer locale — takes precedence over l when resolving translations for several fields.

mquery · string[]

Skip-list of top-level response fields the caller already has from elsewhere (e.g. m=settings when the caller reads settings from the metafield instead) — those fields are not returned. Repeat the param per value (m=settings&m=shop).

scquery · string

When 'true', include data.storeCredit (per-currency Store Credit balances).

Returns200
One of
dataHeadlessInfoData
Show properties
data.shopobject
data.customerobject

Rich, per-customer state — point, tierPoint, tierId, tierData, impact, storeCredit, becomeMemberAt, birthday*, avatarUrl, instagram*, facebook{…}, qrImageUrl, referralCode/counts, acceptsMarketing/Sms, canClaim* flags, latestActivity, referralPendingCount, canJoinBirthday… Absent for a guest request (no Bearer, or the Bearer did not verify).

data.settingsobject

Fresh widget settings (merges legacy settings + widgetSettingsV2).

data.translationobject

Locale-keyed translation dictionary for the resolved locale.

data.primaryTranslationobject

Translation dictionary for the shop's primary language.

data.allTiersobject[]

Every VIP tier, with tierRewards when a customer is resolved.

data.tierProgramobject

The shop's tier program document.

data.referralProgramobject

The shop's referral program document.

data.settingsReferralobject

Referral branding/settings.

data.settingWidgetQrobject

QR-code widget settings.

data.storeCreditobject

Per-currency Store Credit balances — only present when sc=true.

Errors
400

BAD_REQUEST — missing d.

Show properties
successboolean
Example: false
errorobject
Show properties
error.messagestring
Example: "Unauthorized"
error.codestring
Example: "UNAUTHORIZED"
error.statusCodeinteger
Example: 401
timestampstring · date-time
Example: "2026-07-31T07:27:54.123Z"
401

UNAUTHORIZED — the Bearer token names a shopId that does not match the shop resolved from d.

Show properties
successboolean
Example: false
errorobject
Show properties
error.messagestring
Example: "Unauthorized"
error.codestring
Example: "UNAUTHORIZED"
error.statusCodeinteger
Example: 401
timestampstring · date-time
Example: "2026-07-31T07:27:54.123Z"
404

The shop domain did not resolve to a Joy shop

Show properties
successboolean
Example: false
errorobject
Show properties
error.messagestring
Example: "Unauthorized"
error.codestring
Example: "UNAUTHORIZED"
error.statusCodeinteger
Example: 401
timestampstring · date-time
Example: "2026-07-31T07:27:54.123Z"
429

RATE_LIMITED - a rate-limit bucket for this caller is full (per IP, per shop, per grant, per email, or per customer depending on the route). Wait Retry-After seconds and retry.

Show properties
successboolean
Example: false
errorobject
Show properties
error.messagestring
Example: "Unauthorized"
error.codestring
Example: "UNAUTHORIZED"
error.statusCodeinteger
Example: 401
timestampstring · date-time
Example: "2026-07-31T07:27:54.123Z"