# Appstle - [Subscriptions (268 pages)](https://developers.appstle.com/_llms/subscriptions.txt): Get started, Backend integration, Storefront integration, Partner integration, Resources, Admin API, Storefront API. ## Loyalty ### Get started - [Appstle Loyalty: Points, VIP Tiers & Referrals](https://developers.appstle.com/loyalty/introduction.md): Appstle Loyalty provides Admin and Storefront REST APIs to build points programs, VIP tiers, and referrals on Shopify. Learn which API fits your use case. - [Authenticate with the Appstle Loyalty API](https://developers.appstle.com/loyalty/authentication.md): Create Loyalty API keys, choose Read & write or Read only, send the key in the X-API-Key header, and handle 401 and 403 authentication errors. - [Get started with Appstle Loyalty API](https://developers.appstle.com/loyalty/quickstart.md): Create an API key, retrieve a customer's loyalty profile with points and VIP tier, then credit points to their account — all in under five minutes. ### Backend integration - [Appstle Loyalty third-party integration guide](https://developers.appstle.com/loyalty/integration-guide.md): Build a production integration with Appstle Loyalty. Covers authentication, base URL, point management, enrollment, referrals (links, acceptance and history), rewards, store credits, and partner connections. - [Appstle Loyalty webhook events and setup](https://developers.appstle.com/loyalty/webhooks.md): Set up Appstle Loyalty webhooks to receive real-time notifications for point transactions, VIP tier changes and referrals, and verify their signatures. - [Automate loyalty with Shopify Flow](https://developers.appstle.com/loyalty/shopify-flow.md): Automate loyalty with Appstle's native Shopify Flow triggers and actions. Award points, assign VIP tiers, and issue store credits — no API code required. ### Storefront integration - [Build your own loyalty frontend](https://developers.appstle.com/loyalty/build-your-own-frontend.md): Use Appstle Loyalty's Storefront API in your Shopify theme to show a signed-in customer's points, rewards, history and referrals in your own design, and let them redeem points and return rewards. - [JavaScript events for Appstle Loyalty on Shopify themes](https://developers.appstle.com/loyalty/javascript-events.md): The AppstleLoyalty:AppliedDiscountCode event that Appstle Loyalty fires on a Shopify theme when a customer applies a reward from a loyalty widget: what it carries, when it fires and when it doesn't, the merchant settings that affect it, and how to refresh a custom cart from it. - [Shopify metafields and tags for Appstle Loyalty](https://developers.appstle.com/loyalty/metafields-and-tags.md): Shopify metafields and tags set by Appstle Loyalty: loyalty profiles, reward codes, VIP tags, and referral tags — with schema examples. ### Partner integration - [Partner Integration Framework overview](https://developers.appstle.com/loyalty/partner-framework-overview.md): How the Appstle Loyalty Partner Integration Framework works — one handshake per merchant, a scoped API token, no API plan required, automatic revocation. - [Partner Integration Framework](https://developers.appstle.com/loyalty/partner-integration.md): Build a seamless, zero-configuration integration between your app and Appstle Loyalty. Scoped API tokens, nonce handshake, and merchant-approved connections. ### Resources - [Appstle Loyalty API changelog](https://developers.appstle.com/loyalty/api-changelog.md): Dated changes to the Appstle Loyalty Admin API, Storefront API, JavaScript events, Shopify Flow and Partner Framework: new endpoints, fields, values and events, and what to do about each. ### Admin API #### Points & Earn Rules - [Add store credits to customer account](https://developers.appstle.com/loyalty-admin-api/points-&-earn-rules/add-store-credits-to-customer-account.md): Adds store credits (monetary value) to a customer's loyalty account. Store credits are different from points and can be used directly as payment. Supports custom descriptions and automatically logs the transaction. - [Add points to customer account](https://developers.appstle.com/loyalty-admin-api/points-&-earn-rules/add-points-to-customer-account.md): Manually adds loyalty points to a customer's account. - [Approve pending point transactions](https://developers.appstle.com/loyalty-admin-api/points-&-earn-rules/approve-pending-point-transactions.md): Approves pending point transactions and converts them to available points. - [Get all point earning rules](https://developers.appstle.com/loyalty-admin-api/points-&-earn-rules/get-all-point-earning-rules.md): Retrieves all configured point earning rules for the shop. These rules define how customers can earn points (purchases, sign-ups, referrals, etc.). Optionally includes inactive rules when includeInactive=true. - [Get customer point transaction history](https://developers.appstle.com/loyalty-admin-api/points-&-earn-rules/get-customer-point-transaction-history.md): Retrieves the complete point transaction history for a specific customer. Includes all point earning and redemption transactions with timestamps, amounts, and descriptions. Returns every transaction in a JSON array, with no pagination. - [Remove points from customer account](https://developers.appstle.com/loyalty-admin-api/points-&-earn-rules/remove-points-from-customer-account.md): Manually removes (debits) loyalty points from a customer's account. - [Get top customers by points earned](https://developers.appstle.com/loyalty-admin-api/points-&-earn-rules/get-top-customers-by-points-earned.md): Retrieves a paginated list of top customers ranked by loyalty points earned. Useful for generating leaderboards, identifying VIP customers, and analyzing customer engagement. #### Redemptions & Discount Codes - [Check discount code validity](https://developers.appstle.com/loyalty-admin-api/redemptions-&-discount-codes/check-discount-code-validity.md): Returns a customer's loyalty reward for a discount code. - [Get all point redemption rules](https://developers.appstle.com/loyalty-admin-api/redemptions-&-discount-codes/get-all-point-redemption-rules.md): Retrieves all active point redemption rules configured for the shop. These rules define what rewards customers can redeem their points for (discounts, free products, etc.). Only returns active, non-referral redemption rules. - [Redeem customer points for rewards](https://developers.appstle.com/loyalty-admin-api/redemptions-&-discount-codes/redeem-customer-points-for-rewards.md): Processes a point redemption request and generates a discount code or reward. - [Update discount code status](https://developers.appstle.com/loyalty-admin-api/redemptions-&-discount-codes/update-discount-code-status.md): Updates the status of a customer's discount code after checkout or subscription events. - [Update discount code status (legacy endpoint)](https://developers.appstle.com/loyalty-admin-api/redemptions-&-discount-codes/update-discount-code-status-legacy-endpoint.md): Updates the status of a customer's discount code. This is a legacy endpoint similar to update-discount but returns full customer loyalty details after update. Commonly used to mark discount codes as USED after checkout. #### Customer Enrollment & Profile - [Get customer loyalty details](https://developers.appstle.com/loyalty-admin-api/customer-enrollment-&-profile/get-customer-loyalty-details.md): Retrieves comprehensive loyalty program details for a customer. - [Enroll customer in loyalty program](https://developers.appstle.com/loyalty-admin-api/customer-enrollment-&-profile/enroll-customer-in-loyalty-program.md): Enrolls a customer into the loyalty program for a specific shop. - [Update customer birth date](https://developers.appstle.com/loyalty-admin-api/customer-enrollment-&-profile/update-customer-birth-date.md): Updates or sets a customer's birth date in the loyalty system. Used for birthday reward programs and customer segmentation. Send customerId and dob (YYYY-MM-DD). If you only know the month and day, send any year and set dobYearProvided to false. dob is required. When dobYearProvided isn't false, the… #### Referrals - [Get a customer's referral history](https://developers.appstle.com/loyalty-admin-api/referrals/get-a-customers-referral-history.md): Lists the referrals a customer has sent, with each referral's status (PENDING, CLAIMED, RECURRING) and whether each side has been rewarded. Friends' emails are masked, since this list is meant to be shown to the referring customer. Paginated with `page`, `size` and `sort`; the total count is in the… - [Accept a referral invite](https://developers.appstle.com/loyalty-admin-api/referrals/accept-a-referral-invite.md): Records that a friend accepted a customer's referral invite. This is the Admin API equivalent of the storefront widget's referral claim, for headless storefronts that can't use the theme widget. #### Storefront Widgets & Labels - [List storefront widget label translations](https://developers.appstle.com/loyalty-admin-api/storefront-widgets-&-labels/list-storefront-widget-label-translations.md) ### Storefront API #### Referrals - [Generate customer referral URL](https://developers.appstle.com/loyalty-storefront-api/referrals/generate-customer-referral-url.md): (Re)registers the short referral link for the **logged-in customer**. The link is normally created automatically when the customer joins the program, so most integrations never need to call this. - [Get customer referral history](https://developers.appstle.com/loyalty-storefront-api/referrals/get-customer-referral-history.md): Retrieves paginated list of referrals made by the authenticated customer. Each entry includes a masked recipient email, referral status, reward progress, and timestamps. Recipient tracking data and internal notes are excluded. - [Accept referral offer (GET)](https://developers.appstle.com/loyalty-storefront-api/referrals/accept-referral-offer-get.md): Does the same as Accept referral offer (POST), with `token` and `email` as query parameters. Like the POST version, it needs no signed-in customer and returns the same responses. - [Accept referral offer (POST)](https://developers.appstle.com/loyalty-storefront-api/referrals/accept-referral-offer-post.md): Accepts a referral for a friend: records that the person with `email` was referred by the customer who owns `token`. - [Send customer referral email](https://developers.appstle.com/loyalty-storefront-api/referrals/send-customer-referral-email.md): Sends a referral invitation email to a friend on behalf of the authenticated customer. #### Points & Earn Rules - [Claim social media reward points](https://developers.appstle.com/loyalty-storefront-api/points-&-earn-rules/claim-social-media-reward-points.md): Allows a customer to claim loyalty points for social media engagement (Facebook like, Instagram follow, etc.) based on the specified earn rule. Each social media action can typically only be claimed once per customer. The system tracks which social media rewards have been claimed to prevent duplicat… - [Track customer store visit](https://developers.appstle.com/loyalty-storefront-api/points-&-earn-rules/track-customer-store-visit.md): Records a customer store visit and potentially awards loyalty points based on the shop's visit reward rules. This endpoint is typically called when a customer visits the storefront or specific pages. Includes rate limiting protection to prevent abuse - customers can only earn visit points up to a co… - [Get customer point transaction history](https://developers.appstle.com/loyalty-storefront-api/points-&-earn-rules/get-customer-point-transaction-history.md): Retrieves paginated list of point transactions for the authenticated customer, ordered by ID descending (most recent first). Each transaction includes details about points earned or spent, transaction type, status (PENDING, APPROVED, REJECTED), associated order information, and timestamps. Useful fo… #### Customer Enrollment & Profile - [Get customer loyalty information](https://developers.appstle.com/loyalty-storefront-api/customer-enrollment-&-profile/get-customer-loyalty-information.md): Retrieves comprehensive loyalty information for the currently authenticated customer. - [Enable loyalty program for customer](https://developers.appstle.com/loyalty-storefront-api/customer-enrollment-&-profile/enable-loyalty-program-for-customer.md): Enables the loyalty program for the authenticated customer, allowing them to earn and redeem points. This is a simplified version of the enroll-customer endpoint that doesn't require any request body. Useful for quick customer opt-in flows without tier assignment. - [Enroll customer in loyalty program](https://developers.appstle.com/loyalty-storefront-api/customer-enrollment-&-profile/enroll-customer-in-loyalty-program.md): Enrolls the authenticated customer in the loyalty program and optionally assigns them to a specific VIP tier. This endpoint activates all loyalty features for the customer, allowing them to earn and redeem points. If a VIP tier is specified, the customer is automatically placed in that tier upon enr… - [Get logged-in customer ID](https://developers.appstle.com/loyalty-storefront-api/customer-enrollment-&-profile/get-logged-in-customer-id.md): Retrieves the customer ID of the currently authenticated user. This endpoint is useful for obtaining the customer ID after authentication to use in other API calls. - [Sync customer metafield data](https://developers.appstle.com/loyalty-storefront-api/customer-enrollment-&-profile/sync-customer-metafield-data.md): Synchronizes the authenticated customer's metafield data with Shopify. This endpoint triggers an immediate sync of customer loyalty information (points, tier, etc.) to Shopify metafields. Useful when customer data needs to be refreshed in Shopify for theme display or other integrations. - [Update customer birth date](https://developers.appstle.com/loyalty-storefront-api/customer-enrollment-&-profile/update-customer-birth-date.md): Updates the birth date for the authenticated customer and potentially awards birthday-related loyalty points. Once set, the customer may receive birthday rewards annually. The birth date is validated and stored in the customer's loyalty profile. - [Update customer loyalty status](https://developers.appstle.com/loyalty-storefront-api/customer-enrollment-&-profile/update-customer-loyalty-status.md): Lets the authenticated customer opt in to (ACTIVE) or opt out of (EXCLUDED_BY_CUSTOMER) the loyalty program. A customer the store has excluded can't change their own status. Status changes are logged in the activity log with appropriate event types (CUSTOMER_EXCLUDED, CUSTOMER_INCLUDED). When a cust… #### Redemptions & Discount Codes - [Redeem customer loyalty points](https://developers.appstle.com/loyalty-storefront-api/redemptions-&-discount-codes/redeem-customer-loyalty-points.md): Allows the authenticated customer to redeem their loyalty points for rewards. - [Return an unused reward for its points](https://developers.appstle.com/loyalty-storefront-api/redemptions-&-discount-codes/return-an-unused-reward-for-its-points.md): Cancels one of the authenticated customer's redeemed discount codes and credits the redeemed points back. #### Product Catalog - [Proxy a Shopify Storefront GraphQL request from the customer portal](https://developers.appstle.com/loyalty-storefront-api/product-catalog/proxy-a-shopify-storefront-graphql-request-from-the-customer-portal.md) - [Memberships (119 pages)](https://developers.appstle.com/_llms/memberships.txt): Get started, Backend integration, Storefront integration, Partner integration, Resources, Admin API, Storefront API. ## Bundles ### Get started - [Appstle Bundles: Build-a-Box and Bundle Rules](https://developers.appstle.com/bundles/introduction.md): Appstle Bundles provides Admin and Storefront REST APIs to read bundle rules, power build-a-box experiences, and generate bundle discounts on Shopify. - [Authenticate with the Appstle Bundles API](https://developers.appstle.com/bundles/authentication.md): Copy your store's Appstle Bundles API key, send it in the X-API-Key header without a shop parameter, and handle 401, 403 and 429 responses. - [Get started with Appstle Bundles API](https://developers.appstle.com/bundles/quickstart.md): Copy your Appstle Bundles API key, read your store's bundle rules with the Admin API, and find the build-a-box storefront endpoints. ### Backend integration - [Appstle Bundles integration guide](https://developers.appstle.com/bundles/integration-guide.md): Build a production integration with Appstle Bundles. Covers base URLs, authentication, filtering and paging bundle rules, build-a-box flows, and discount generation. ### Storefront integration - [Build bundles with your own storefront UI](https://developers.appstle.com/bundles/headless-overview.md): Run Appstle's fixed pricing, dynamic pricing, volume discount, combo, and sectioned bundles with a fully custom storefront. Read the configuration from Shopify metafields, render your own UI with Shopify's own APIs, and let Appstle's Shopify Function apply the discount — with little or no traffic to… - [Fixed pricing bundle with a custom storefront](https://developers.appstle.com/bundles/fixed-pricing-bundle.md): Sell a curated set of products for one fixed total price using your own storefront UI. Read the rule, render a selector, add to cart with Appstle's bundle attributes, and let the automatic discount price the set. - [Dynamic pricing bundle with a custom storefront](https://developers.appstle.com/bundles/dynamic-pricing-bundle.md): Offer a build-your-own bundle that applies a percentage or fixed-amount discount to the running total, using your own storefront UI and Appstle's automatic discount. - [Volume discount bundle with a custom storefront](https://developers.appstle.com/bundles/volume-discount-bundle.md): Run tiered 'buy more, save more' discounts based on quantity or spend, using your own storefront UI and Appstle's automatic discount. - [Combo bundle with a custom storefront](https://developers.appstle.com/bundles/combo-bundle.md): Sell fixed sets of products at a bundle discount, as one-time or subscription purchases, from your own storefront UI. Read the combos from the rule, add every product of the set as its own cart line with Appstle's bundle attributes, and let the automatic discount price the set. - [Sectioned bundle with a custom storefront](https://developers.appstle.com/bundles/sectioned-bundle.md): Sell a box of sections, each with its own minimum and maximum, as a one-time or subscription purchase from your own storefront UI: read the rule, add each pick with Appstle's bundle attributes and a selling plan, and let the automatic discount and Appstle Subscriptions price the box. - [JavaScript events and API for Appstle Bundles on Shopify themes](https://developers.appstle.com/bundles/javascript-events.md): The window._ABConfig members, events, cart refresh helpers and slider cart API that Appstle Bundles exposes to JavaScript on a Shopify theme, and how to turn the slider cart off for some shoppers. ### Partner integration - [Partner Integration Framework overview](https://developers.appstle.com/bundles/partner-framework-overview.md): How the Appstle Bundles Partner Integration Framework works — one handshake per merchant, a scoped API token, no API plan required, automatic revocation. - [Partner Integration Framework](https://developers.appstle.com/bundles/partner-integration.md): Build a zero-configuration integration between your app and Appstle Bundles, with scoped API tokens per merchant. ### Resources - [Appstle Bundles API changelog](https://developers.appstle.com/bundles/api-changelog.md): Dated changes to the Appstle Bundles Admin API, Storefront API and JavaScript events: new fields and values, changed responses, new events, and what to do about each. ### Admin API #### Bundle Rules - [Get all bundle rules](https://developers.appstle.com/bundles-admin-api/bundle-rules/get-all-bundle-rules.md) - [Get build-a-box bundle rules](https://developers.appstle.com/bundles-admin-api/bundle-rules/get-build-a-box-bundle-rules.md) - [Get discount rules](https://developers.appstle.com/bundles-admin-api/bundle-rules/get-discount-rules.md) ### Storefront API #### Build-a-Box - [Get build-a-box configuration by token](https://developers.appstle.com/bundles-storefront-api/build-a-box/get-build-a-box-configuration-by-token.md) - [Generate a build-a-box bundle discount](https://developers.appstle.com/bundles-storefront-api/build-a-box/generate-a-build-a-box-bundle-discount.md) - [Get build-a-box configuration by handle](https://developers.appstle.com/bundles-storefront-api/build-a-box/get-build-a-box-configuration-by-handle.md) - [Generate a build-a-box shipping discount](https://developers.appstle.com/bundles-storefront-api/build-a-box/generate-a-build-a-box-shipping-discount.md) - [Get single-product build-a-box configuration](https://developers.appstle.com/bundles-storefront-api/build-a-box/get-single-product-build-a-box-configuration.md) #### Product Catalog - [Proxy a Shopify Storefront GraphQL request for bundle widgets](https://developers.appstle.com/bundles-storefront-api/product-catalog/proxy-a-shopify-storefront-graphql-request-for-bundle-widgets.md) - [Proxy a Shopify Storefront GraphQL request from the customer portal](https://developers.appstle.com/bundles-storefront-api/product-catalog/proxy-a-shopify-storefront-graphql-request-from-the-customer-portal.md) #### Storefront - [Render the build-a-box storefront page](https://developers.appstle.com/bundles-storefront-api/storefront/render-the-build-a-box-storefront-page.md) ## OpenAPI Specs - [admin-api-swagger](/subscription/admin-api-swagger.json) - [storefront-api-swagger](/subscription/storefront-api-swagger.json) - [admin-api-swagger](/loyalty/admin-api-swagger.json) - [storefront-api-swagger](/loyalty/storefront-api-swagger.json) - [admin-api-swagger](/memberships/admin-api-swagger.json) - [storefront-api-swagger](/memberships/storefront-api-swagger.json) - [admin-api-swagger](/bundles/admin-api-swagger.json) - [storefront-api-swagger](/bundles/storefront-api-swagger.json) > The links below point to documentation indexes. Follow each `/_llms/` index recursively until you reach documentation pages. ## Indexes - [Subscriptions (268 pages)](https://developers.appstle.com/_llms/subscriptions.txt): Get started, Backend integration, Storefront integration, Partner integration, Resources, Admin API, Storefront API. - [Memberships (119 pages)](https://developers.appstle.com/_llms/memberships.txt): Get started, Backend integration, Storefront integration, Partner integration, Resources, Admin API, Storefront API. This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.