# client

> Source: https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/client/ · Last updated: 2026-11-25

## Interfaces

### CustomerRewardsPage

One page of `getRewards()`; `pagination` describes `redeemed` only.

#### Extends

- [`CustomerRewards`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#customerrewards)

#### Properties

##### available

```ts
available: AvailableReward[];
```

###### Inherited from

[`CustomerRewards`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#customerrewards).[`available`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#available)

##### customerPoints

```ts
customerPoints: number;
```

The customer's balance, so a `dynamic` reward's slider can stop at the
largest whole step they can afford without a second call to `/customer`.

###### Inherited from

[`CustomerRewards`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#customerrewards).[`customerPoints`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#customerpoints-1)

##### pagination

```ts
pagination: Pagination;
```

##### redeemed

```ts
redeemed: RedeemedReward[];
```

###### Inherited from

[`CustomerRewards`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#customerrewards).[`redeemed`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#redeemed)

***

### GetActivitiesParams

Cursor-pagination params for [JoyClient.getActivities](#getactivities).

#### Properties

##### after?

```ts
after?: string;
```

Return the page AFTER this activity id.

##### before?

```ts
before?: string;
```

Return the page BEFORE this activity id.

##### limit?

```ts
limit?: number;
```

Page size.

***

### GetFreeGiftStockOptions

Options for [JoyClient.getFreeGiftStock](#getfreegiftstock).

#### Properties

##### country?

```ts
country?: string;
```

2-letter buyer country (ISO 3166-1 alpha-2, e.g. `CN`) so the server can
filter stock by Storefront market availability (`@inContext(country)`).
Omit to skip market filtering (server default: no market context).

***

### GetImpactHistoryParams

Cursor-pagination params for [JoyClient.getImpactHistory](#getimpacthistory).

#### Properties

##### after?

```ts
after?: string;
```

Return the page AFTER this impact-event id.

##### before?

```ts
before?: string;
```

Return the page BEFORE this impact-event id.

##### limit?

```ts
limit?: number;
```

Page size (default 20, clamped to 50 server-side).

***

### GetInfoParams

Options for [JoyClient.getInfo](#getinfo).

#### Properties

##### earnSignup?

```ts
earnSignup?: boolean;
```

Ask `/info` to run signup-earn processing for this member (`isEarnSignup=true`,
the headless spelling of Liquid's `su` flag). The backend no longer forces it on
every member call, so send it ONCE per signed-in session — on the `/info` that
follows login / the first member load — not on every page view.

##### includeStoreCredit?

```ts
includeStoreCredit?: boolean;
```

Include per-currency Store Credit balances — costs an extra Shopify call.

##### skipFields?

```ts
skipFields?: string[];
```

Skip fetching these top-level response fields server-side — mirrors `handleGetInfo`'s
own `m` list-skip (e.g. `['settings']` when the caller already has fresh settings from
elsewhere and only wants the rest).

***

### GetReceivedRewardsParams

Cursor-pagination params for [JoyClient.getReceivedRewards](#getreceivedrewards).

#### Properties

##### after?

```ts
after?: string;
```

Return the page AFTER this gift id.

##### before?

```ts
before?: string;
```

Return the page BEFORE this gift id.

##### limit?

```ts
limit?: number;
```

Page size (default 10, clamped to 50 server-side).

***

### GetReferralHistoryParams

Cursor-pagination params for [JoyClient.getReferralHistory](#getreferralhistory).

#### Properties

##### after?

```ts
after?: string;
```

Return the page AFTER this referral-row id.

##### before?

```ts
before?: string;
```

Return the page BEFORE this referral-row id.

***

### GetRewardsParams

Options for [JoyClient.getRewards](#getrewards). Paginates the `redeemed` list.

#### Properties

##### after?

```ts
after?: string;
```

Return the page AFTER this reward id. Ignored when `couponStatus` is `'unavailable'`.

##### before?

```ts
before?: string;
```

Return the page BEFORE this reward id. Ignored when `couponStatus` is `'unavailable'`.

##### couponStatus?

```ts
couponStatus?: "available" | "unavailable";
```

Which coupons `redeemed` holds. `'available'` (the default) is the
customer's live, still-usable coupons — omitting this param is identical.
`'unavailable'` is the used + expired ones, merged and deduped, mirroring
the widget's "Unavailable" tab. `pagination.hasNext` can be true, but
it is not pageable: `before`/`after` are ignored and there is currently no
cursor to fetch a next page. Consumers must not use this flag for a Next control.

##### limit?

```ts
limit?: number;
```

Page size for `redeemed`.

***

### GetStoreCreditTransactionsParams

Cursor-pagination params for [JoyClient.getStoreCreditTransactions](#getstorecredittransactions).

#### Properties

##### after?

```ts
after?: string;
```

Return the page AFTER this Shopify cursor.

##### before?

```ts
before?: string;
```

Return the page BEFORE this Shopify cursor.

##### limit?

```ts
limit?: number;
```

Page size (default 10, clamped to 50 server-side).

***

### JoyClient

Personalised client over the Bearer-JWT `/customer/*` endpoints.

#### Properties

##### isLoggedIn

```ts
readonly isLoggedIn: boolean;
```

`true` while a token is held; flips to `false` after an unrecoverable 401.

#### Methods

##### cancelRedeem()

```ts
cancelRedeem(rewardId): Promise<CancelRedeemResult>;
```

POST /customer/rewards/{rewardId}/cancel — cancel a cart redemption (Liquid
`/popup/cancel-redeem` parity): deactivates the unused code and refunds its points,
with no self-revoke limit. Used by `<JoyRedeemCart>`; Loyalty Page keeps `revokeReward`.

###### Parameters

| Parameter  | Type     |
| ---------- | -------- |
| `rewardId` | `string` |

###### Returns

`Promise`<[`CancelRedeemResult`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#cancelredeemresult)>

##### checkSegmentPrograms()

```ts
checkSegmentPrograms(segmentPrograms): Promise<SegmentEligibility>;
```

POST /customer/segment-program — "is this customer inside the Shopify
segments that gate these spending programs?", answered as
`{programId: boolean}`.

Call it before showing a redeem list: a program whose `userAvailability`
is `user_in_segment` is otherwise rendered with a Redeem button that the
server will refuse. Programs with no segment gate do not belong in the
request.

A program the server could not establish membership for comes back
`false` (fail-closed). At most 50 entries per call; more is a `BAD_REQUEST`.

###### Parameters

| Parameter         | Type                                                                                                            |
| ----------------- | --------------------------------------------------------------------------------------------------------------- |
| `segmentPrograms` | [`SegmentProgramQuery`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#segmentprogramquery)\[] |

###### Returns

`Promise`<[`SegmentEligibility`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#segmenteligibility)>

##### claimBirthdayReward()

```ts
claimBirthdayReward(birthdayRewards?): Promise<BirthdayClaimResult>;
```

POST /customer/birthday/claim — claim this customer's ANNUAL birthday
reward, for a program the merchant put on manual delivery (the shopper
pressing "Claim" during their birthday claim period). Pass `birthdayRewards`
to save the selection and claim in one shot; omit it when
[JoyClient.setBirthdayRewards](#setbirthdayrewards) already stored it.

The reward is minted ASYNCHRONOUSLY: a resolved promise means the claim was
ACCEPTED, NOT that a coupon exists. Re-fetch [JoyClient.getCustomer](#getcustomer)
and [JoyClient.getRewards](#getrewards) for the outcome — anything that reads a
coupon straight off this call will read stale data.

Not [JoyClient.earn](#earn). That endpoint ACCEPTS a birthday program, but
does a different job: it records the birthday DATE and pays the one-off
"completed your birthday info" bonus. It never mints the annual reward,
because the guards that make the annual reward safe to expose (manual
delivery, tier opt-out, once a year, inside the claim period) live only
behind this route.

Every DELIBERATE refusal collapses to one `CLAIM_UNAVAILABLE` (400) with a
generic message — no program, automatic delivery, tier opted out, already
claimed this year, outside the claim period are NOT told apart, so a client
cannot probe a shop's birthday configuration. Treat it as "not available
right now" and show the server's message; do not retry.

`CLAIM_FAILED` (502) is the opposite and IS worth retrying: the claim was
eligible and a Firestore/Shopify call underneath it failed. Re-fetch before
retrying — the shopper's reward picks may already have been committed.

Also `BAD_REQUEST` (400) for a malformed map and `NOT_ELIGIBLE` (403) for
an opt-in guest who has not joined the loyalty program.

###### Parameters

| Parameter          | Type                                                                                                       |
| ------------------ | ---------------------------------------------------------------------------------------------------------- |
| `birthdayRewards?` | [`BirthdayRewardsMap`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#birthdayrewardsmap) |

###### Returns

`Promise`<[`BirthdayClaimResult`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#birthdayclaimresult)>

##### claimMilestone()

```ts
claimMilestone(input): Promise<MilestoneClaimResult>;
```

POST /customer/milestone/claim — claim a REACHED milestone step's reward.
The reward is resolved SERVER-SIDE from the program and the customer's
pending milestones: [MilestoneClaimInput](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#milestoneclaiminput) carries selections only, no
reward definitions, so a crafted body can never inflate what is granted.
The customer is taken from the token, so a client can never claim on
behalf of anyone else.

Rejects (400) when the step is unknown or the milestone has not been
reached (not yet claimable), and (400) when a free-gift step needs a
variant selection the body did not carry.

###### Parameters

| Parameter | Type                                                                                                         |
| --------- | ------------------------------------------------------------------------------------------------------------ |
| `input`   | [`MilestoneClaimInput`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#milestoneclaiminput) |

###### Returns

`Promise`<[`MilestoneClaimResult`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#milestoneclaimresult)>

##### claimMilestoneStep()

```ts
claimMilestoneStep(programId, input): Promise<MilestoneLadderClaimResult>;
```

POST /customer/milestones/{programId}/claim — claim the rewards of one
achieved milestone step: a step whose `state` is `claimable` (the
merchant configured "customer picks" and the shopper reached it but has
not yet chosen), or a granted step that still owes a free-gift variant
choice (`rewards[].needsVariantChoice`).

The customer is taken from the token, never `input`.
`input.selectedRewardIds` are INDEXES into the step's own `rewards`
array from [JoyClient.getMilestones](#getmilestones) — a caller names which reward
it wants, never what that reward is.

NOTE: this is the ladder-route claim; the widget-V4 route has its own
[JoyClient.claimMilestone](#claimmilestone). Both are kept ON PURPOSE — decided
2026-09-08, do not "consolidate" them without re-reading why.

Only the CLAIM halves overlap. The read halves do not and must both
survive: [JoyClient.getMilestoneProgress](#getmilestoneprogress) is one cheap call
returning counters for EVERY milestone program (what the V4 widget needs
to draw several bars at once), while [JoyClient.getMilestones](#getmilestones)
returns ONE program's fully rendered ladder and is deliberately fetched
only when a shopper opens the modal. Neither can serve the other's job:
the counters carry no step configuration at all (see `MilestoneProgress`),
and serving the widget from the ladder would cost one call per program.

Rejects with `INVALID_PROGRAM` (400) when the program is not found, is
in another shop, or is not a milestone program. `INVALID_STEP` (400)
when no step matches `claimKey`. `NOT_CLAIMABLE` (400) when the step is
not pending for this customer (not yet reached, or already claimed).
`INVALID_SELECTION` (400) for the wrong number of rewards, an
out-of-range index, or a duplicate. `GIFT_SELECTION_REQUIRED` (400) when
a chosen reward offers several variants and none was sent.
`GIFT_UNAVAILABLE` (400) when the sent variant is not on the reward's
allow-list. `NOT_ELIGIBLE` (403) when earning is disabled for this
customer (test mode, B2B exclusion, opt-in guest not yet enrolled).

###### Parameters

| Parameter   | Type                                                                                                                     |
| ----------- | ------------------------------------------------------------------------------------------------------------------------ |
| `programId` | `string`                                                                                                                 |
| `input`     | [`MilestoneLadderClaimInput`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#milestoneladderclaiminput) |

###### Returns

`Promise`<[`MilestoneLadderClaimResult`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#milestoneladderclaimresult)>

##### claimPendingReward()

```ts
claimPendingReward(pendingId, input?): Promise<PendingRewardClaimResult>;
```

POST /customer/pending-rewards/{pendingId}/claim — claim an ENTRY-pending
tier reward, minting the coupon NOW for the picked variant(s). `pendingId`
scopes to THIS customer server-side (a guessed/stolen id belonging to
another customer rejects 403), so a client can never claim on behalf of
anyone else. `input.variantIds` is the shopper's product pick; omit it when
the reward needs no selection.

###### Parameters

| Parameter           | Type                            |
| ------------------- | ------------------------------- |
| `pendingId`         | `string`                        |
| `input?`            | { `variantIds?`: `string`\[]; } |
| `input.variantIds?` | `string`\[]                     |

###### Returns

`Promise`<[`PendingRewardClaimResult`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#pendingrewardclaimresult)>

##### createApplePass()

```ts
createApplePass(): Promise<AppleWalletPassResult>;
```

POST /customer/wallet-pass/apple — create (or regenerate) this customer's
Apple Wallet pass, returning its public download link plus a QR data URL
of that link. Takes no input; the customer is taken from the token. The
same call also updates [Customer.createdApplePass](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#createdapplepass)/
[Customer.qrCodeDownloadApplePass](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#qrcodedownloadapplepass) server-side — a later
[JoyClient.getCustomer](#getcustomer) reflects the new pass without calling this
again.

Rejects with `APPLE_PASS_GENERATION_FAILED` (502) when pass
rendering/upload failed.

###### Returns

`Promise`<[`AppleWalletPassResult`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#applewalletpassresult)>

##### deleteAddress()

```ts
deleteAddress(addressId): Promise<AddressDeleteResult>;
```

POST /customer/addresses/delete — delete one of this customer's saved
addresses. Same ownership guarantee as [JoyClient.saveAddress](#saveaddress):
`addressId` is checked against the customer taken from the token, and
Shopify itself rejects (`ADDRESS_NOT_FOUND`, 404) an id that does not
belong to them — it is never silently treated as a no-op success.

Rejects with `BAD_REQUEST` (400) when `addressId` is missing.
`CUSTOMER_NOT_LINKED` (404) when this customer has no Shopify customer
id. `ADDRESS_DELETE_FAILED` (502) when the Shopify Admin API call itself
failed.

###### Parameters

| Parameter   | Type                 |
| ----------- | -------------------- |
| `addressId` | `string` \| `number` |

###### Returns

`Promise`<[`AddressDeleteResult`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#addressdeleteresult)>

##### disconnectFacebook()

```ts
disconnectFacebook(): Promise<FacebookDisconnectResult>;
```

POST /customer/social/facebook/disconnect — clear the current customer's
Facebook link. Takes no input; the customer is taken from the token.

###### Returns

`Promise`<[`FacebookDisconnectResult`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#facebookdisconnectresult)>

##### earn()

```ts
earn(programId, context?): Promise<EarnResult>;
```

POST /customer/earn — claim ANY earning program. The program's own event
decides which family runs — a caller can never pick the event it earns
for — so `context` only needs to carry that family's input; see
[EarnContext](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#earncontext) for which fields go with which `Program.key`.

`birthday` also persists the date of birth (once a year) before awarding
points, same two steps as the widget's birthday modal.

Rejects with `INVALID_PROGRAM` (400) when the program is not found, is in
another shop, is not an earning program, or is one of the four events
this endpoint never serves (`custom_program`, `write_review`,
`place_order`, Instagram engagement — those are granted elsewhere).
`INVALID_INPUT` (400) when the family's required `context` field is
missing or malformed. `LIMIT_REACHED` (400) when a per-program, shop, or
global earning limit stopped the award. `ALREADY_SUBMITTED` (400) when
this period's claim — or the once-a-year birthday date — is already on
file. `NOT_ELIGIBLE` (403) when the customer does not qualify (opt-in
guest, B2B, test mode). `EARN_FAILED` (400) for any other processing
failure.

###### Parameters

| Parameter   | Type                                                                                         |
| ----------- | -------------------------------------------------------------------------------------------- |
| `programId` | `string`                                                                                     |
| `context?`  | [`EarnContext`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#earncontext) |

###### Returns

`Promise`<[`EarnResult`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#earnresult)>

##### earnSocial()

```ts
earnSocial(programId): Promise<SocialEarnResult>;
```

POST /customer/earn/social — claim points for a social earning program
(follow, share, join). The event is derived server-side from the program
data, so the caller only sends the program id. A repeat claim rejects
with `LIMIT_REACHED` rather than granting points twice. Rejects with
`NOT_ELIGIBLE` (403) when the customer is excluded (opt-in guest, B2B,
test mode).

Also rejects with `LINE_NOT_LINKED` (400) for a connected shop's `join_line`
program whose [Program.lineJoinType](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#linejointype) is `follow_oa`. Its points are
awarded through LINE's verified flow, which requires linking AND following the shop's OA;
linking alone never earns them. Start with
[JoyClient.getLineAuthUrl](#getlineauthurl)'s popup instead, so branch on
`lineJoinType` before calling rather than treating this as retryable.

A thin wrapper over [JoyClient.earn](#earn) — kept as its own method
because it is published contract and the shipped Weaverse block calls it,
but it makes the same `/customer/earn` request with no `context`.

###### Parameters

| Parameter   | Type     |
| ----------- | -------- |
| `programId` | `string` |

###### Returns

`Promise`<[`SocialEarnResult`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#socialearnresult)>

##### generateQrCode()

```ts
generateQrCode(): Promise<QrCodeResult>;
```

POST /customer/qrcode — render this customer's in-store scan code (the one
a POS scanner reads) as a PNG data URL.

Takes no input at all: the encoded payload is derived server-side from the
token's customer, so a client can never ask for someone else's code.

[JoyClient.getInfo](#getinfo) already reports the same string as
`customer.qrImageUrl` on every later fetch, once a code has been generated
at least once — a client that calls `/info` anyway does not need this to
re-render it.

Rejects with `QR_GENERATION_FAILED` (502) when the encoding failed.

###### Returns

`Promise`<[`QrCodeResult`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#qrcoderesult)>

##### generateReferralLink()

```ts
generateReferralLink(params): Promise<GenerateReferralLinkResult>;
```

POST /referral/generate-link — mint (or fetch the already-stored) referral link +
code for `email`. PUBLIC: unlike every other method here, this one takes NO Bearer
token — [JoyClientOptions.shopDomain](#shopdomain) resolves the shop via `?shop=` instead,
and the target customer is identified by `email`, not the JWT. Mirrors Liquid's
`/referral/generateLinkReferral`: when no customer exists yet for `email`, one is
created, so a brand-new guest can get a shareable link before joining the program.

Used both to auto-generate a signed-in shopper's own link (their email, on first
widget open) and to serve the guest referral card's manual "Get my link" form.
Once a link is cached, prefer [JoyClient.getReferral](#getreferral) to read it back.

Rejects with `BAD_REQUEST` (400) for a missing/malformed `email`.
`REFERRAL_LINK_UNAVAILABLE` (400) when the referral program is not available for
this shop, or this guest is not eligible (access restricted, opt-in enrollment
not joined). `SHOP_NOT_FOUND` (404) when [JoyClientOptions.shopDomain](#shopdomain)
does not resolve to a Joy shop — same shared shop-resolution guard every other
`?shop=`-scoped public method uses.

###### Parameters

| Parameter      | Type                   |
| -------------- | ---------------------- |
| `params`       | { `email`: `string`; } |
| `params.email` | `string`               |

###### Returns

`Promise`<[`GenerateReferralLinkResult`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#generatereferrallinkresult)>

##### getActivities()

```ts
getActivities(params?): Promise<ActivityPage>;
```

GET /customer/activities — points history, one page.

###### Parameters

| Parameter | Type                                          |
| --------- | --------------------------------------------- |
| `params?` | [`GetActivitiesParams`](#getactivitiesparams) |

###### Returns

`Promise`<[`ActivityPage`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#activitypage)>

##### getAddresses()

```ts
getAddresses(): Promise<Address[]>;
```

GET /customer/addresses — the customer's saved shipping addresses.

###### Returns

`Promise`<[`Address`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#address)\[]>

##### getCustomer()

```ts
getCustomer(): Promise<Customer>;
```

GET /customer — points, tier, progress.

###### Returns

`Promise`<[`Customer`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#customer-1)>

##### getFreeGiftStock()

```ts
getFreeGiftStock(programId, options?): Promise<FreeGiftStock>;
```

POST /customer/free-gift-stock — live stock for a `free_product` program's
gifts. Call it when a gift modal opens (not per rewards list — it hits
Shopify uncached) to disable sold-out variants before the shopper picks.

Rejects with `INVALID_PROGRAM` (400) when the program is not found, is in
another shop, or is not a free-gift program.

###### Parameters

| Parameter   | Type                                                  |
| ----------- | ----------------------------------------------------- |
| `programId` | `string`                                              |
| `options?`  | [`GetFreeGiftStockOptions`](#getfreegiftstockoptions) |

###### Returns

`Promise`<[`FreeGiftStock`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#freegiftstock)>

##### getGoogleWalletPass()

```ts
getGoogleWalletPass(): Promise<GoogleWalletPassResult>;
```

GET /customer/wallet-pass/google — build this customer's "Add to Google
Wallet" save link. Takes no input; the customer is taken from the token.

Rejects with `GOOGLE_PASS_GENERATION_FAILED` (502) when pass/link
generation failed.

###### Returns

`Promise`<[`GoogleWalletPassResult`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#googlewalletpassresult)>

##### getImpactHistory()

```ts
getImpactHistory(params?): Promise<ImpactHistory>;
```

GET /customer/impact-history — this customer's environmental-impact
redemptions plus reconciled cumulative totals. `connected: false` means the
totals are the last-known cached values (GoodAPI was unreachable), not that
the customer has no impact.

###### Parameters

| Parameter | Type                                                |
| --------- | --------------------------------------------------- |
| `params?` | [`GetImpactHistoryParams`](#getimpacthistoryparams) |

###### Returns

`Promise`<[`ImpactHistory`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#impacthistory)>

##### getInfo()

```ts
getInfo(params?): Promise<JoyInfo>;
```

GET /info — reuses Liquid's own `/popup/info` controller (`handleGetInfo`) behind an
optional-auth headless adapter, so it returns the SAME live payload the Liquid widget's own
"beat 2" merges into the storefront's `AVADA_JOY` global: fresh settings, translation, tiers, referral,
QR, store credit, and — only when this client holds a token — the rich
[JoyInfoCustomer](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#joyinfocustomer-1). [JoyClientOptions.shopDomain](#shopdomain) is REQUIRED (`?d=` resolves
the shop; the Bearer JWT, when present, only proves the customer on top of it, and is
rejected with `UNAUTHORIZED` if it was issued for a different shop). With no token this
is the shop-level guest payload — it never 401s for that reason alone.

###### Parameters

| Parameter | Type                              |
| --------- | --------------------------------- |
| `params?` | [`GetInfoParams`](#getinfoparams) |

###### Returns

`Promise`<[`JoyInfo`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#joyinfo)>

##### getLineAuthUrl()

```ts
getLineAuthUrl(): Promise<LineAuthUrlResult>;
```

POST /customer/social/line/auth-url — mint a LINE Login URL for the
current customer to open in a popup. Needed before a `join_line` program
whose [Program.lineJoinType](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#linejointype) is `follow_oa` will pay out; every
other social event, `join_link` included, stays claim-on-click through
[JoyClient.earnSocial](#earnsocial).

LINE redirects back to a fixed Joy-owned callback, which links the account.
It awards points once only if the shopper currently follows the OA;
otherwise the follow webhook awards them later. There is no need to call
[JoyClient.earnSocial](#earnsocial) afterwards. A successful popup message
(`joy-line-link`) may include `followed` and `awarded` booleans. Missing
flags mean false: keep the Follow OA step until follow is confirmed, and
refresh customer data to read the server-confirmed award.

Rejects with `LINE_NOT_CONNECTED` (400) when the shop has not connected
LINE at all.

###### Returns

`Promise`<[`LineAuthUrlResult`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#lineauthurlresult)>

##### getMilestoneProgress()

```ts
getMilestoneProgress(): Promise<MilestoneProgress>;
```

GET /customer/milestone — this customer's milestone progress as a flat
`{[typeMilestone]: number}` map across every active milestone program. Pair
with [JoyClient.getPrograms](#getprograms) to draw each milestone's bar. Empty
object when the shop runs no milestone program.

###### Returns

`Promise`<[`MilestoneProgress`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#milestoneprogress)>

##### getMilestones()

```ts
getMilestones(programId): Promise<MilestoneLadder>;
```

GET /customer/milestones/{programId} — one milestone program's ladder,
rendered for THIS customer: the step sentence, the reward lines, the
progress percentage and the "how much is left" line, all print-ready —
the client draws circles, connectors, a bar and radios, never a
sentence.

Call this when the shopper OPENS the milestone, not with the program
list — the counters behind it are the most expensive reads on this
surface.

Rejects with `INVALID_PROGRAM` (400) when the program is not found, is
in another shop, is not an earning program, is not a milestone program,
or is disabled.

###### Parameters

| Parameter   | Type     |
| ----------- | -------- |
| `programId` | `string` |

###### Returns

`Promise`<[`MilestoneLadder`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#milestoneladder)>

##### getOrderActivities()

```ts
getOrderActivities(orderId): Promise<Activity[]>;
```

GET /customer/activities-by-order?orderId= — the Joy point activities tied
to one order (server-filtered to this customer's own rows). `orderId` must
be numeric; a non-numeric value rejects with `BAD_REQUEST` (400).

###### Parameters

| Parameter | Type     |
| --------- | -------- |
| `orderId` | `string` |

###### Returns

`Promise`<[`Activity`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#activity)\[]>

##### getOrderById()

```ts
getOrderById(orderId): Promise<Order | null>;
```

GET /customer/orders?orderId= — a single order by its numeric Shopify id,
or `null` when the customer has no order with that id. `orderId` must be
numeric; a non-numeric value rejects with `BAD_REQUEST` (400).

###### Parameters

| Parameter | Type     |
| --------- | -------- |
| `orderId` | `string` |

###### Returns

`Promise`<[`Order`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#order) | `null`>

##### getOrders()

```ts
getOrders(): Promise<Order[]>;
```

GET /customer/orders — the customer's most recent orders (newest first,
capped server-side). Money fields are integer cents; see [Order](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#order).

###### Returns

`Promise`<[`Order`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#order)\[]>

##### getPendingTierRewardClaims()

```ts
getPendingTierRewardClaims(): Promise<PendingTierRewardClaim[]>;
```

GET /customer/pending-rewards — this customer's own unclaimed tier-up
rewards. Each carries the `id` a claim call targets and the product picker
data for the shopper to choose from. Empty array when they have none.

###### Returns

`Promise`<[`PendingTierRewardClaim`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#pendingtierrewardclaim)\[]>

##### getPrograms()

```ts
getPrograms(params?): Promise<Program[]>;
```

GET /customer/programs — the same programs the public endpoint serves, but
with the earn text rendered for THIS customer: their own tier's rate on a
place-order rule, their own tier's rewards on a birthday rule.

The public `createJoyServerClient().getPrograms()` cannot do that — its
response is CDN-shared, so it carries the shop's default rate instead.

###### Parameters

| Parameter             | Type                                                                                                                |
| --------------------- | ------------------------------------------------------------------------------------------------------------------- |
| `params?`             | { `programType?`: [`ProgramType`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#programtype-1); } |
| `params.programType?` | [`ProgramType`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#programtype-1)                      |

###### Returns

`Promise`<[`Program`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#program-1)\[]>

##### getReceivedRewards()

```ts
getReceivedRewards(params?): Promise<ReceivedRewardsPage>;
```

GET /customer/received-rewards — the gifts FRIENDS sent this customer
("From friends"), 10 per page, newest first. A separate list from
`getRewards()`: these are not the customer's own redemptions, so a client
must not offer revoke or send-to-a-friend on them.

Only live gifts are returned (used, revoked and expired ones are filtered
server-side), and a gift card's balance is re-checked on every call.

###### Parameters

| Parameter | Type                                                    |
| --------- | ------------------------------------------------------- |
| `params?` | [`GetReceivedRewardsParams`](#getreceivedrewardsparams) |

###### Returns

`Promise`<[`ReceivedRewardsPage`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#receivedrewardspage)>

##### getReferral()

```ts
getReferral(): Promise<Referral>;
```

GET /customer/referral — referral link, code, rewards, stats.

###### Returns

`Promise`<[`Referral`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#referral)>

##### getReferralHistory()

```ts
getReferralHistory(params?): Promise<ReferralHistoryPage>;
```

GET /customer/referral-history — this customer's referred friends, 5 per
page, newest first. Friend emails are obfuscated server-side. Only rows in
a known status (`complete`/`pending`/`cancel`) are returned.

###### Parameters

| Parameter | Type                                                    |
| --------- | ------------------------------------------------------- |
| `params?` | [`GetReferralHistoryParams`](#getreferralhistoryparams) |

###### Returns

`Promise`<[`ReferralHistoryPage`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#referralhistorypage)>

##### getRewards()

```ts
getRewards(params?): Promise<CustomerRewardsPage>;
```

GET /customer/rewards — redeemable programs and already-redeemed coupons,
as two separate lists. `params` paginates `redeemed` only; `available` is
always the full eligibility-filtered set.

###### Parameters

| Parameter | Type                                    |
| --------- | --------------------------------------- |
| `params?` | [`GetRewardsParams`](#getrewardsparams) |

###### Returns

`Promise`<[`CustomerRewardsPage`](#customerrewardspage)>

##### getStoreCreditTransactions()

```ts
getStoreCreditTransactions(params?): Promise<StoreCreditTransactionPage>;
```

GET /customer/store-credit/transactions — this customer's OWN store-credit
history, one page at a time. The account is resolved server-side from the
JWT; there is no `accountId` to pass (IDOR fix — see
[StoreCreditTransactionPage](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#storecredittransactionpage)). Empty page for a customer with no
store credit; never an error for that reason.

###### Parameters

| Parameter | Type                                                                    |
| --------- | ----------------------------------------------------------------------- |
| `params?` | [`GetStoreCreditTransactionsParams`](#getstorecredittransactionsparams) |

###### Returns

`Promise`<[`StoreCreditTransactionPage`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#storecredittransactionpage)>

##### getTierRewards()

```ts
getTierRewards(): Promise<Tier[]>;
```

GET /customer/tier-rewards — this customer's VIP tiers with their assigned
rewards (perks), filtered to the tiers they can see. Localised: tier
names/descriptions render in the client's `locale`.

###### Returns

`Promise`<[`Tier`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#tier-1)\[]>

##### joinProgram()

```ts
joinProgram(joinFrom?): Promise<Customer>;
```

POST /customer/join-program — self-enrol an opt-in guest into the
loyalty program. Only meaningful when [Customer.type](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#type-1) is
`'guest'` and the shop's `ShopConfig.optInEnrollmentEnabled` (from the
public server client) is `true`; calling it for an already-enrolled
customer is a no-op — it returns the same [Customer](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#customer-1) shape as a
fresh join, not an error.

Rejects with `OPT_IN_NOT_ENABLED` (403) when the shop is not running
opt-in enrollment (manual assignment, or below Premium). `NOT_ELIGIBLE`
(403) when the customer has left the loyalty program, or is excluded as
a B2B account.

###### Parameters

| Parameter   | Type                                                                                   |
| ----------- | -------------------------------------------------------------------------------------- |
| `joinFrom?` | [`JoinFrom`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#joinfrom) |

###### Returns

`Promise`<[`Customer`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#customer-1)>

##### linkInstagram()

```ts
linkInstagram(instagramUsername): Promise<InstagramLinkResult>;
```

POST /customer/social/instagram/link — link a self-reported Instagram
username to the current customer, granting the shop's one-time "link your
Instagram" reward on the first successful link. Pass `''` to unlink.

Self-reported: the server does NOT verify the shopper owns the account.
The customer is taken from the token, so there is no way to link an
account to anybody else.

Rejects with `NOT_ELIGIBLE` (403) when the customer has not joined the
loyalty program (opt-in guest), and `USERNAME_TAKEN` (409) when this
username is already linked to a DIFFERENT customer on this shop.

###### Parameters

| Parameter           | Type     |
| ------------------- | -------- |
| `instagramUsername` | `string` |

###### Returns

`Promise`<[`InstagramLinkResult`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#instagramlinkresult)>

##### logout()

```ts
logout(): void;
```

Drop the held token locally (`setToken(null)`), so `isLoggedIn` flips to
`false`. Does NOT revoke the token server-side — use the server-side revoke
(Hydrogen `logout`) for that.

###### Returns

`void`

##### redeem()

```ts
redeem(programId, options?): Promise<RedeemResult>;
```

POST /customer/redeem — spend points on a program; `points` defaults server-side.
Pass [RedeemOptions.recipient](#recipient) on a `gift_card` program to send it to a
friend instead of the redeemer's own account.

Rejects with `NOT_ELIGIBLE` (403) when the customer does not qualify (VIP
tier, segment, B2B). `getRewards()` already hides those, so it means
eligibility changed since the list was fetched — re-fetch, don't retry.

###### Parameters

| Parameter   | Type                              |
| ----------- | --------------------------------- |
| `programId` | `string`                          |
| `options?`  | [`RedeemOptions`](#redeemoptions) |

###### Returns

`Promise`<[`RedeemResult`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#redeemresult)>

##### revokeReward()

```ts
revokeReward(rewardId): Promise<RevokeRewardResult>;
```

POST /customer/rewards/{rewardId}/revoke — give back a redeemed reward and
refund its points.

###### Parameters

| Parameter  | Type     |
| ---------- | -------- |
| `rewardId` | `string` |

###### Returns

`Promise`<[`RevokeRewardResult`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#revokerewardresult)>

##### saveAddress()

```ts
saveAddress(address): Promise<Address>;
```

POST /customer/addresses — create or update one of this customer's saved
Shopify addresses. `address.id` present -> update that address, absent ->
create a new one; `address.isDefault: true` also sets it as the
customer's default address.

OWNERSHIP: the customer is ALWAYS taken from the token — a client can
never save an address on behalf of anyone else. When `address.id` is
present, Shopify itself rejects (`ADDRESS_NOT_FOUND`, 404) an id that is
not a child of THIS customer, so a client naming another customer's
address id can never mutate it.

Rejects with `BAD_REQUEST` (400) for a missing `address` or a missing/
non-string `address1`/`city`/`country`. `CUSTOMER_NOT_LINKED` (404) when
this customer has no Shopify customer id to attach an address to.
`ADDRESS_SAVE_FAILED` (502) when the Shopify Admin API call itself
failed.

###### Parameters

| Parameter | Type                                                                                           |
| --------- | ---------------------------------------------------------------------------------------------- |
| `address` | [`AddressInput`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#addressinput) |

###### Returns

`Promise`<[`Address`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#address)>

##### saveBirthday()

```ts
saveBirthday(birthday, dateOfBirth?): Promise<BirthdaySaveResult>;
```

Save the customer's birthday ONCE (`POST /customer/birthday`). `birthday` is
`'MM/DD'`; pass `dateOfBirth` as `'YYYY-MM-DD'` on shops that collect a year.
A customer who already has a birthday on file rejects with
`ALREADY_SUBMITTED` — this is a one-time submission, not editable after.

###### Parameters

| Parameter      | Type     |
| -------------- | -------- |
| `birthday`     | `string` |
| `dateOfBirth?` | `string` |

###### Returns

`Promise`<[`BirthdaySaveResult`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#birthdaysaveresult)>

##### saveTierPerkVariantSelection()

```ts
saveTierPerkVariantSelection(input): Promise<TierPerkSaveResult>;
```

POST /customer/perk/save-variant-selection — persist a customer's variant
selection for a tier-PRIVILEGE "choice mode" perk (the confirm button on
`joy-tier-perk-picker`). The product-discount Rust function applies the
saved selection at checkout, so the server re-resolves the perk's allowed
variants from the program/tier config and rejects (400) any variant off
that allow-list — [TierPerkSaveInput](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#tierperksaveinput) carries selections only, never
the reward definition, so a crafted body can never grant a discount on a
variant the merchant never offered. The customer is taken from the token.

###### Parameters

| Parameter | Type                                                                                                     |
| --------- | -------------------------------------------------------------------------------------------------------- |
| `input`   | [`TierPerkSaveInput`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#tierperksaveinput) |

###### Returns

`Promise`<[`TierPerkSaveResult`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#tierperksaveresult)>

##### sendReferralEmail()

```ts
sendReferralEmail(refereeEmail): Promise<ReferralEmailResult>;
```

POST /customer/referral/send-email — send THIS customer's referral invite
to a friend by email (automated sharing mode only). The referrer is
ALWAYS taken from the token; `refereeEmail` is the only input.

Rejects with `INVALID_EMAIL_FORMAT` (400) for a missing/malformed
address. `REFERRAL_SELF_REFERRAL` (400) when `refereeEmail` is the
caller's own address. `REFERRAL_EMAIL_COOLDOWN` (429) when this same
referrer/friend pair already got an invite in the last 24h.
`REFERRAL_EMAIL_LIMIT_REACHED` (429) on a sharing rate limit.
`REFERRAL_EMAIL_SHARING_DISABLED` (400) when the shop's referral program
is not on automated email sharing (or has none configured).
`REFERRAL_EMAIL_NOTIFICATION_DISABLED` (400) when the shop's referral
email notification is turned off.

###### Parameters

| Parameter      | Type     |
| -------------- | -------- |
| `refereeEmail` | `string` |

###### Returns

`Promise`<[`ReferralEmailResult`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#referralemailresult)>

##### sendRewardToFriend()

```ts
sendRewardToFriend(input): Promise<SendRewardResult>;
```

POST /customer/send-reward-to-friend — gift a coupon THIS customer redeemed
to a friend. The sender is taken from the token, so a client can never gift
on behalf of anyone else.

Rejects with `PROGRAM_NOT_FOUND` (404) when the program is unknown;
`SEND_REWARD_SELF_SEND` (400) when the recipient is the sender;
`SEND_REWARD_COUPON_NOT_OWNED` (403) when the coupon is not a reward this
customer redeemed from this program (or was revoked);
`SEND_REWARD_RECIPIENT_ALREADY_SENT` (400) when that friend already got
this exact coupon; `SEND_REWARD_COOLDOWN`/`SEND_REWARD_LIMIT_REACHED` (429)
on rate limits; `SEND_REWARD_DISABLED`/`SEND_REWARD_NOTIFICATION_DISABLED`
(400) when the program/notification is off.

###### Parameters

| Parameter | Type                                                                                                 |
| --------- | ---------------------------------------------------------------------------------------------------- |
| `input`   | [`SendRewardInput`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#sendrewardinput) |

###### Returns

`Promise`<[`SendRewardResult`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#sendrewardresult)>

##### setBirthdayRewards()

```ts
setBirthdayRewards(birthdayRewards): Promise<BirthdayRewardsResult>;
```

POST /customer/birthday-rewards — record WHICH birthday reward(s) this
customer picked, for a program whose [ProgramBirthday.rewardOptions](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#rewardoptions)
offers a choice. It CLAIMS NOTHING and grants no points: the selection is
only resolved against the program later, when the annual reward is sent or
when [JoyClient.claimBirthdayReward](#claimbirthdayreward) runs.

REPLACES the stored map — it does not merge, so send previous years back
unchanged or they are lost. Read the current map from
`getInfo().customer.birthdayRewards` (the same place the Liquid widget
reads it); there is no dedicated GET for it.

Repeatable, unlike the once-per-lifetime birthday DATE — which is why it is
its own endpoint rather than a field on the birthday-entry call.

Rejects with `BAD_REQUEST` (400) when the map breaks
[BirthdayRewardsMap](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#birthdayrewardsmap)'s shape or size bounds, `NOT_ELIGIBLE` (403) for
an opt-in guest who has not joined the loyalty program, and
`BIRTHDAY_REWARDS_UPDATE_FAILED` (502) when the write itself failed.

###### Parameters

| Parameter         | Type                                                                                                       |
| ----------------- | ---------------------------------------------------------------------------------------------------------- |
| `birthdayRewards` | [`BirthdayRewardsMap`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#birthdayrewardsmap) |

###### Returns

`Promise`<[`BirthdayRewardsResult`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#birthdayrewardsresult)>

##### setToken()

```ts
setToken(token): void;
```

Replace (or clear, with `null`) the held token — e.g. after a fresh `/api/joy-token`.

###### Parameters

| Parameter | Type               |
| --------- | ------------------ |
| `token`   | `string` \| `null` |

###### Returns

`void`

##### updateProfile()

```ts
updateProfile(options): Promise<ProfileResult>;
```

POST /customer/profile — update this customer's first/last name,
avatar, and/or marketing consent. The customer is ALWAYS taken from the
token — a client can never edit anyone else's name/avatar/consent. At
least one of [UpdateProfileOptions.firstName](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#firstname-4)/`lastName`/
`avatarBase64`/`acceptsMarketing`/`acceptsSmsMarketing` is required; an
omitted field is left unchanged (e.g. a marketing-consent-only toggle
never touches the name/avatar).

Rejects with `BAD_REQUEST` (400) when none of the five fields are
given, a non-string `firstName`/`lastName`, a missing/empty/over-10MB
`avatarBase64`, or a non-boolean `acceptsMarketing`/
`acceptsSmsMarketing`. `PROFILE_UPDATE_FAILED` when the underlying
update itself declined the write (400) or failed unexpectedly while
saving (502).

###### Parameters

| Parameter | Type                                                                                                           |
| --------- | -------------------------------------------------------------------------------------------------------------- |
| `options` | [`UpdateProfileOptions`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#updateprofileoptions) |

###### Returns

`Promise`<[`ProfileResult`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#profileresult)>

##### uploadEarnImages()

```ts
uploadEarnImages(images): Promise<EarnUploadResult>;
```

POST /customer/earn/upload — store receipt / submit-form images and get
back their URLs to pass into [JoyClient.earn](#earn) as `context.images`
(receipt) or `context.imageUrls` (submit form / survey). Images travel as
base64 — no multipart — so this runs unchanged on a React Native client
with no `File`/`FormData`.

Rejects with `INVALID_INPUT` (400) for zero or more than 5 images, a type
other than JPEG/PNG, an image over 10MB, or data that is not actually an
image of the declared type — the whole batch is rejected together, not
just the bad image. `UPLOAD_FAILED` (400) when storage itself failed.

###### Parameters

| Parameter | Type                                                                                                    |
| --------- | ------------------------------------------------------------------------------------------------------- |
| `images`  | [`EarnImageUpload`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#earnimageupload)\[] |

###### Returns

`Promise`<[`EarnUploadResult`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#earnuploadresult)>

##### verifyApplePass()

```ts
verifyApplePass(): Promise<VerifyApplePassResult>;
```

GET /customer/wallet-pass/apple/verify — confirm whether the pass
record behind [Customer.createdApplePass](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#createdapplepass) still exists.
Self-healing: a missing record clears the stale flag server-side, so a
later [JoyClient.getCustomer](#getcustomer) stops reporting a pass that no longer
exists. The customer is taken from the token.

###### Returns

`Promise`<[`VerifyApplePassResult`](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#verifyapplepassresult)>

***

### JoyClientOptions

Options for [createJoyClient](#createjoyclient) / [Joy.init](#init).

#### Properties

##### apiUrl

```ts
apiUrl: string;
```

Base URL of the Headless API, e.g. `https://api.joy.so/app/api/v1/headless`.

##### fetch?

```ts
fetch?: JoyFetch;
```

Optional fetch implementation. Defaults to `globalThis.fetch`.

##### locale?

```ts
locale?: string;
```

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

Whoever owns the URL owns the locale. On Hydrogen that is Hydrogen
(`/fr/...`, `storefront.i18n`), so pass its value down rather than letting
anything sniff `navigator.language`: a shopper standing on `/fr/` getting
English cards because their browser says `en-US` is worse than no
detection at all. Omit and the shop's primary language is used — but
PASS the primary language explicitly when you know it (the metafield
blob's `translation.primaryLanguage`): `/info` only trims its translation
doc to one locale when `?l=` is present; without it the response carries
every configured locale (\~260KB on a multi-language shop).

##### onTokenExpired?

```ts
onTokenExpired?: OnTokenExpired;
```

Refresh hook invoked once on a 401 before retrying — see [OnTokenExpired](#ontokenexpired-1).

##### shopDomain?

```ts
shopDomain?: string;
```

The shop's myshopify domain — required for [JoyClient.getInfo](#getinfo) (shop-scoped by
`?d=`) and [JoyClient.generateReferralLink](#generatereferrallink) (shop-scoped by `?shop=`), the two
methods here that resolve their shop from THIS field rather than the JWT: `getInfo`
because its Bearer token, when present, proves the CUSTOMER only; `generateReferralLink`
because it takes no Bearer token at all — the target customer is identified by the
call's own `email` argument instead. Ignored by every other method, which resolve
their shop from the JWT/`apiUrl` instead.

##### token?

```ts
token?: string | null;
```

Current customer JWT; omit/`null` for a guest (methods then 401 unless a refresher is set).

***

### RedeemOptions

Options for [JoyClient.redeem](#redeem).

#### Properties

##### idempotencyKey?

```ts
idempotencyKey?: string;
```

Optional caller-generated key that makes the redeem idempotent server-side:
a retry of the SAME intent (network drop, double click) with the same key
returns the original result instead of spending points twice. Generate one
per redeem intent and reuse it across retries.

##### points?

```ts
points?: number;
```

Points to spend. REQUIRED for a reward whose `redeemType` is `dynamic` —
its `pointsCost` is the step, not the price, so there is no sane default
and the server rejects the call with `POINTS_REQUIRED`. Omit for
fixed-cost rewards; the server uses the program's own cost.

##### recipient?

```ts
recipient?: SendRewardRecipient;
```

For a `gift_card` reward: send it to a friend instead of keeping it. Omit
to redeem into the redeemer's own account — Shopify then emails ONLY the
friend, never the redeemer, and the redeemer's `couponCode` on the result
comes back masked rather than the spendable code. Ignored on every other
`rewardType`.

Rejects with `REDEEM_FAILED` (400) when `recipient.email` matches the
redeemer's own address — a customer cannot send a gift card to
themselves.

##### variantId?

```ts
variantId?: string;
```

The gift the customer picked, for a `free_product` reward whose
`giftSelectionMode` is `one`. Must be one of the variant ids in that
reward's `giftProducts`, else the redeem fails `GIFT_UNAVAILABLE` (and no
points are spent). Omitting it on a reward that needs one fails
`GIFT_SELECTION_REQUIRED`.

## Type Aliases

### OnTokenExpired

```ts
type OnTokenExpired = () => 
  | Promise<string | null | undefined>
  | string
  | null
  | undefined;
```

Caller-supplied token refresher. Returns a fresh JWT, or `null`/`undefined`
when the session is gone (e.g. the merchant `/api/joy-token` route answered
401 because the shopper logged out). Called at most once per request, on a
401, before a single retry.

#### Returns

\| `Promise`<`string` | `null` | `undefined`>
\| `string`
\| `null`
\| `undefined`

## Variables

### Joy

```ts
const Joy: object;
```

Singleton facade for the one-session browser/native case: `Joy.init(...)`
once (e.g. inside `JoyProvider`), then reach the client anywhere via
`Joy.getClient()`.

#### Type Declaration

##### getClient()

```ts
getClient(): JoyClient;
```

The client from the last [Joy.init](#init). Throws if `init` was never called.

###### Returns

[`JoyClient`](#joyclient)

##### init()

```ts
init(options): JoyClient;
```

Create the client and store it as the singleton, returning it. Re-callable to swap sessions.

###### Parameters

| Parameter | Type                                    |
| --------- | --------------------------------------- |
| `options` | [`JoyClientOptions`](#joyclientoptions) |

###### Returns

[`JoyClient`](#joyclient)

## Functions

### createJoyClient()

```ts
function createJoyClient(options): JoyClient;
```

Create a personalised Joy client. Prefer [Joy.init](#init) for the common
single-session case; use this directly when you need more than one client
instance (unusual).

#### Parameters

| Parameter | Type                                    |
| --------- | --------------------------------------- |
| `options` | [`JoyClientOptions`](#joyclientoptions) |

#### Returns

[`JoyClient`](#joyclient)

## References

### Activity

Re-exports [Activity](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#activity)

***

### ActivityPage

Re-exports [ActivityPage](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#activitypage)

***

### ActivityType

Re-exports [ActivityType](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#activitytype-1)

***

### Address

Re-exports [Address](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#address)

***

### AddressDeleteResult

Re-exports [AddressDeleteResult](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#addressdeleteresult)

***

### AddressInput

Re-exports [AddressInput](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#addressinput)

***

### AppleWalletPassResult

Re-exports [AppleWalletPassResult](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#applewalletpassresult)

***

### AvailableReward

Re-exports [AvailableReward](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#availablereward)

***

### BirthdayClaimResult

Re-exports [BirthdayClaimResult](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#birthdayclaimresult)

***

### BirthdayEarnContext

Re-exports [BirthdayEarnContext](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#birthdayearncontext)

***

### BirthdayRewardsMap

Re-exports [BirthdayRewardsMap](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#birthdayrewardsmap)

***

### BirthdayRewardsResult

Re-exports [BirthdayRewardsResult](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#birthdayrewardsresult)

***

### BirthdaySaveResult

Re-exports [BirthdaySaveResult](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#birthdaysaveresult)

***

### Branding

Re-exports [Branding](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#branding)

***

### CancelRedeemResult

Re-exports [CancelRedeemResult](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#cancelredeemresult)

***

### Customer

Re-exports [Customer](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#customer-1)

***

### CustomerRewards

Re-exports [CustomerRewards](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#customerrewards)

***

### CustomerSocial

Re-exports [CustomerSocial](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#customersocial-1)

***

### CustomerTierRef

Re-exports [CustomerTierRef](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#customertierref)

***

### CustomerType

Re-exports [CustomerType](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#customertype-1)

***

### EarnContext

Re-exports [EarnContext](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#earncontext)

***

### EarnImageUpload

Re-exports [EarnImageUpload](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#earnimageupload)

***

### EarningLimit

Re-exports [EarningLimit](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#earninglimit-1)

***

### EarnResult

Re-exports [EarnResult](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#earnresult)

***

### EarnStatus

Re-exports [EarnStatus](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#earnstatus)

***

### EarnUploadResult

Re-exports [EarnUploadResult](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#earnuploadresult)

***

### FacebookDisconnectResult

Re-exports [FacebookDisconnectResult](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#facebookdisconnectresult)

***

### FreeGiftStock

Re-exports [FreeGiftStock](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#freegiftstock)

***

### FreeGiftStockProduct

Re-exports [FreeGiftStockProduct](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#freegiftstockproduct)

***

### FreeGiftStockVariant

Re-exports [FreeGiftStockVariant](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#freegiftstockvariant)

***

### GenerateReferralLinkResult

Re-exports [GenerateReferralLinkResult](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#generatereferrallinkresult)

***

### GiftProduct

Re-exports [GiftProduct](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#giftproduct)

***

### GiftSelectionMode

Re-exports [GiftSelectionMode](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#giftselectionmode-1)

***

### GiftVariant

Re-exports [GiftVariant](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#giftvariant)

***

### GoogleMapsReviewEarnContext

Re-exports [GoogleMapsReviewEarnContext](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#googlemapsreviewearncontext)

***

### GoogleReviewStatus

Re-exports [GoogleReviewStatus](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#googlereviewstatus)

***

### GoogleWalletPassResult

Re-exports [GoogleWalletPassResult](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#googlewalletpassresult)

***

### ImpactEvent

Re-exports [ImpactEvent](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#impactevent)

***

### ImpactEventType

Re-exports [ImpactEventType](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#impacteventtype-1)

***

### ImpactHistory

Re-exports [ImpactHistory](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#impacthistory)

***

### ImpactTotals

Re-exports [ImpactTotals](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#impacttotals)

***

### InstagramLinkResult

Re-exports [InstagramLinkResult](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#instagramlinkresult)

***

### JoinFrom

Re-exports [JoinFrom](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#joinfrom)

***

### JoyApiError

Re-exports [JoyApiError](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#joyapierror)

***

### JoyEnvelope

Re-exports [JoyEnvelope](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#joyenvelope)

***

### JoyError

Re-exports [JoyError](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#joyerror)

***

### JoyFetch

Re-exports [JoyFetch](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#joyfetch)

***

### JoyInfo

Re-exports [JoyInfo](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#joyinfo)

***

### JoyInfoCustomer

Re-exports [JoyInfoCustomer](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#joyinfocustomer-1)

***

### JoySuccess

Re-exports [JoySuccess](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#joysuccess)

***

### LineAuthUrlResult

Re-exports [LineAuthUrlResult](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#lineauthurlresult)

***

### LineJoinType

Re-exports [LineJoinType](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#linejointype-1)

***

### MilestoneClaimInput

Re-exports [MilestoneClaimInput](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#milestoneclaiminput)

***

### MilestoneClaimResult

Re-exports [MilestoneClaimResult](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#milestoneclaimresult)

***

### MilestoneEarnContext

Re-exports [MilestoneEarnContext](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#milestoneearncontext)

***

### MilestoneLadder

Re-exports [MilestoneLadder](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#milestoneladder)

***

### MilestoneLadderClaimInput

Re-exports [MilestoneLadderClaimInput](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#milestoneladderclaiminput)

***

### MilestoneLadderClaimResult

Re-exports [MilestoneLadderClaimResult](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#milestoneladderclaimresult)

***

### MilestoneProgress

Re-exports [MilestoneProgress](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#milestoneprogress)

***

### MilestoneReward

Re-exports [MilestoneReward](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#milestonereward)

***

### MilestoneRewardAction

Re-exports [MilestoneRewardAction](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#milestonerewardaction-1)

***

### MilestoneRewardLogic

Re-exports [MilestoneRewardLogic](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#milestonerewardlogic)

***

### MilestoneState

Re-exports [MilestoneState](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#milestonestate)

***

### MilestoneStep

Re-exports [MilestoneStep](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#milestonestep)

***

### MilestoneStepProgress

Re-exports [MilestoneStepProgress](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#milestonestepprogress-1)

***

### MilestoneType

Re-exports [MilestoneType](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#milestonetype)

***

### Order

Re-exports [Order](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#order)

***

### OrderAddress

Re-exports [OrderAddress](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#orderaddress)

***

### OrderCustomer

Re-exports [OrderCustomer](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#ordercustomer-1)

***

### OrderDiscount

Re-exports [OrderDiscount](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#orderdiscount)

***

### OrderFulfillmentStatus

Re-exports [OrderFulfillmentStatus](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#orderfulfillmentstatus-1)

***

### OrderLineItem

Re-exports [OrderLineItem](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#orderlineitem)

***

### Pagination

Re-exports [Pagination](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#pagination-2)

***

### PendingRewardClaimResult

Re-exports [PendingRewardClaimResult](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#pendingrewardclaimresult)

***

### PendingTierRewardClaim

Re-exports [PendingTierRewardClaim](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#pendingtierrewardclaim)

***

### PlaceOrderScope

Re-exports [PlaceOrderScope](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#placeorderscope)

***

### PlaceOrderScopeCollection

Re-exports [PlaceOrderScopeCollection](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#placeorderscopecollection)

***

### PlaceOrderScopeProduct

Re-exports [PlaceOrderScopeProduct](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#placeorderscopeproduct)

***

### PointLabel

Re-exports [PointLabel](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#pointlabel)

***

### ProfileResult

Re-exports [ProfileResult](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#profileresult)

***

### Program

Re-exports [Program](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#program-1)

***

### ProgramBirthday

Re-exports [ProgramBirthday](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#programbirthday-1)

***

### ProgramBirthdayRewardOption

Re-exports [ProgramBirthdayRewardOption](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#programbirthdayrewardoption)

***

### ProgramForm

Re-exports [ProgramForm](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#programform-1)

***

### ProgramGoogleReview

Re-exports [ProgramGoogleReview](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#programgooglereview-1)

***

### ProgramReview

Re-exports [ProgramReview](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#programreview-1)

***

### ProgramStreak

Re-exports [ProgramStreak](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#programstreak-1)

***

### ProgramType

Re-exports [ProgramType](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#programtype-1)

***

### QrCodeResult

Re-exports [QrCodeResult](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#qrcoderesult)

***

### ReceiptEarnContext

Re-exports [ReceiptEarnContext](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#receiptearncontext)

***

### ReceivedReward

Re-exports [ReceivedReward](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#receivedreward)

***

### ReceivedRewardsPage

Re-exports [ReceivedRewardsPage](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#receivedrewardspage)

***

### RedeemedReward

Re-exports [RedeemedReward](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#redeemedreward)

***

### RedeemResult

Re-exports [RedeemResult](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#redeemresult)

***

### RedeemType

Re-exports [RedeemType](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#redeemtype-2)

***

### Referral

Re-exports [Referral](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#referral)

***

### ReferralEmailResult

Re-exports [ReferralEmailResult](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#referralemailresult)

***

### ReferralHistoryEntry

Re-exports [ReferralHistoryEntry](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#referralhistoryentry)

***

### ReferralHistoryPage

Re-exports [ReferralHistoryPage](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#referralhistorypage)

***

### ReferralHistoryStatus

Re-exports [ReferralHistoryStatus](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#referralhistorystatus)

***

### ReferralStats

Re-exports [ReferralStats](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#referralstats-1)

***

### RevokeRewardResult

Re-exports [RevokeRewardResult](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#revokerewardresult)

***

### RewardCollectionRef

Re-exports [RewardCollectionRef](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#rewardcollectionref)

***

### RewardProductRef

Re-exports [RewardProductRef](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#rewardproductref)

***

### RewardStatus

Re-exports [RewardStatus](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#rewardstatus)

***

### RewardType

Re-exports [RewardType](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#rewardtype-5)

***

### SegmentEligibility

Re-exports [SegmentEligibility](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#segmenteligibility)

***

### SegmentProgramQuery

Re-exports [SegmentProgramQuery](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#segmentprogramquery)

***

### SendRewardInput

Re-exports [SendRewardInput](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#sendrewardinput)

***

### SendRewardRecipient

Re-exports [SendRewardRecipient](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#sendrewardrecipient)

***

### SendRewardResult

Re-exports [SendRewardResult](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#sendrewardresult)

***

### ShopConfig

Re-exports [ShopConfig](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#shopconfig)

***

### SocialEarnResult

Re-exports [SocialEarnResult](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#socialearnresult)

***

### StoreCreditTransaction

Re-exports [StoreCreditTransaction](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#storecredittransaction)

***

### StoreCreditTransactionPage

Re-exports [StoreCreditTransactionPage](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#storecredittransactionpage)

***

### SubmitFormEarnContext

Re-exports [SubmitFormEarnContext](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#submitformearncontext)

***

### Tier

Re-exports [Tier](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#tier-1)

***

### TierPerk

Re-exports [TierPerk](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#tierperk)

***

### TierPerkSaveInput

Re-exports [TierPerkSaveInput](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#tierperksaveinput)

***

### TierPerkSaveResult

Re-exports [TierPerkSaveResult](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#tierperksaveresult)

***

### TierProgress

Re-exports [TierProgress](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#tierprogress-1)

***

### TierRewardDefinition

Re-exports [TierRewardDefinition](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#tierrewarddefinition)

***

### UpdateProfileOptions

Re-exports [UpdateProfileOptions](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#updateprofileoptions)

***

### VerifyApplePassResult

Re-exports [VerifyApplePassResult](https://devdocs.joy.so/joy-headless-api/sdk-reference/sdk/root/#verifyapplepassresult)
