doc-site
Reference

Storefront requests

Every request the ASC storefront makes from the customer's browser to Shopify's cart API, ASC services, Zapier and third parties.

These requests are made by src/ bundles and theme scripts from the customer's browser.

ASC services

FromMethod and URLBodyService
src/components/CampBooking.tsxGET {theme.api.root}v1/customers/{id}/childrenNoneasc-api-membership-pass
src/components/CampBooking.tsxPOST {theme.api.root}v1/customers/{id}/children/savetext/plain, participant JSON encoded twice with btoaasc-api-membership-pass
src/js/custom.jsPOST {theme.api.root}v1/customers/{id}/membership-pass/usetext/plain, { customer_id, customer_email, token, lineItem: { variantId, attributes } } encoded twice with btoaasc-api-membership-pass
src/components/ClubsAutocomplete.tsxGET {ZOHO_INTEGRATION_API_ENDPOINT}/clubs/search?q={text}&limit=10&offset=0None. q is not URL-encodedshopify-zoho-integration

theme.api.root is window.theme.api.root, from theme setting gcloud_api_root. Responses from asc-api-membership-pass are { status, message, data }. Club search returns { data: [{ id, Name }], count }.

Shopify

FromMethod and URLBody
src/components/utils.tsxPOST {Shopify.routes.root}cart/add.js{ items: [{ id, quantity: 1, properties }] }
src/js/custom.jsPOST {Shopify.routes.cart_change_url}.js{ id, quantity }
src/js/custom.jsGET {Shopify.routes.cart_url}.jsNone. Reads the cart token
theme/assets/clarity-tracking.jsPOST cart/update.jsattributes: { clarity_uid, clarity_session_id }

Zapier catch hooks

FromSettingBody
theme/assets/brochure-newsletter-subscription.jsdownload_brochure_webhook{ name, email, referrer: 'PDP', subscribeToNewsletter, cardId }
src/js/custom.js, on a Hulk Forms brochure_download messagedownload_brochure_landing_page_webhookHulk form data plus cardId
src/js/custom.js, on a Hulk Forms form_submit messageform_submission_webhookHulk form data plus cardId

The Hulk Forms relay only accepts postMessage events from https://formbuilder.hulkapps.com. The Zapier requests are sent without a Content-Type header.

Third parties

RequestFromPurpose
maps.googleapis.com/maps/api/js with libraries=placessrc/js/camp-booking.jsSchool search
tiles.openfreemap.org/styles/bright and its tilestheme/assets/map-renderer.jsCamp maps
js.squarecdn.com, static.afterpay.comtheme/assets/shopify-afterpay-javascript.jsAfterpay messaging on product pages
Klaviyo, Hotjar, Microsoft ClarityApp embeds and theme snippetsMarketing and analytics. Held by yett until user interaction
formbuilder.hulkapps.comHulk Form Builder appForms

Custom analytics events

EventPublished byData
checkout_clickedtheme/snippets/asc-track-checkout.liquidcurrency, value, items
seo_page_viewtheme/snippets/custom-gtm-tracking.liquid, on combo landing pagescity, sport

Both use Shopify.analytics.publish. They reach analytics only through a Customer Events pixel configured in Shopify Admin.

On this page