Before you start#

You needWhy
A HubSpot portal with custom objectsHospitality's data model is six custom objects of its own plus a shared settings object. Without that entitlement there is nothing to install into
Room for one more deal pipelineStays are deals in a pipeline named Stays, which the install creates. How many deal pipelines a portal may have depends on its HubSpot subscription
Super admin on that portalThe install grants scopes, and several steps happen in Design Manager, the workflow editor and record layouts
A published website domain on the portalThe guest wallet and the staff scanner are pages on the portal's own site. The wallet URL is derived from the primary site domain, not configured
Marketing email, if guests receive their card or vouchers by emailBoth email modules — the loyalty card and the voucher — use HubSpot's programmable email, which is switched on per module
Workflows, if you want automated enrolment, vouchers, expiry or tiersThe workflow actions are optional but are how most of the lifecycle runs
The systems that will feed it, if anyA booking engine, PMS, POS or spa system pushing stays and visits needs its own API client and a venue allowed to ingest — see below
Memberships on the portal's site, for staffStaff sign in to the scanner with their own HubSpot member login, which needs a connected domain (not *.hs-sites.com)

Important

Before a real-data deployment, ask for the hardening pass. Hospitality today carries deliberate demo-grade trade-offs — most consequentially, the workflow actions are not signature-checked until you switch it on, and the scanner page is open to anyone until you gate it. Both are closable, and there is a defined checklist for doing it, but neither closes by itself. This is a real prerequisite, and we would rather say so here than discover we agreed otherwise later.

Who does what#

StepWho
Deploying the app to the portal and granting scopesUs, with a portal admin present
Running the install steps that create the schema, the guest model, settings and standard pagesUs
Deciding the venues, their capabilities, and the programmesYou — see below. These are business decisions with security consequences
Deciding which systems feed stays and visits, and where they sign inYou, with whoever operates those systems
Giving staff scanner access (and creating their member logins), and issuing API clients to systemsYou
Setting the guest-lifecycle thresholds and whether visits earn pointsYou
Enabling the email modules, placing the CRM cards, switching the lifecycle workflows onEither, but a portal admin must approve — the workflows mutate live records
Verifying the chain end to endBoth, together. See Verifying it works

What the install creates#

The install is a handful of named steps, because on a fresh portal it is more work than one HubSpot serverless call may take — HubSpot stops a function at 20 seconds. Every step is idempotent: a step that runs out of time is simply called again and finishes what the first call started, and running any of them again later changes nothing. None of them returns a secret, and none of them deletes anything.

StepWhat it creates
1. Schema and settingsThe custom objects — venues, programmes, memberships, the transaction ledger, incentives (created outright on a portal that has never had one, extended with the value and journey layers where it has) — their association labels, three contact properties (the wallet link, the QR image, a preferred locale), and the settings records seeded with defaults. Secrets are seeded empty, never with a value from code
2. Guest modelThe visit object; the Stays deal pipeline with its seven stages (Enquiry · Option · Confirmed · Checked in · Checked out · Cancelled · No-show) and a Stay group of deal properties; the Guest profile group of contact properties — the 21 roll-ups and the unique External guest ID; and their association labels. On a portal that already has a Stays pipeline it only adds missing stages — it never renames, reorders or deletes one
3. Sample data — optionalOne demo dataset's venues, programmes, voucher catalogue and members with balances and vouchers. On a fresh portal this usually needs a second call
4. Guest history — with sample dataThat dataset's stays and visits, and each member's guest profile. Repeated until it reports itself complete
5. Standard pagesThe staff scanner at /scan and the guest wallet at /wallet. A new page is scheduled first and answers 404 for about a minute before it goes live — that is not a failure
6. Lifecycle workflows — when asked, from the settings pageVoucher expiry and tier promotion, created switched off, so an install never silently mutates existing records

The association labels matter. An incentive relates to a venue in two different ways, a stay to a contact in two more; the label names are the contract between the parts, not decoration.

The installer is locked from the start: it refuses any call without the portal's install key, which has to exist before the app's first upload. Whoever holds the key can seed sample data and create pages, so treat it like any other credential.

The app also needs its root secret on the portal before the first upload — the upload fails without it. Every secret the app stores (integrator credentials, the printer token, the signing secret behind member links) is encrypted with keys derived from it, and it lives as a HubSpot secret, not in the CRM. It is set once and never replaced: a replaced root makes every stored secret unreadable, so they would have to be entered again and every guest's member link reissued.

The decisions only you can make#

Venues and capabilities#

This is the most consequential configuration in the app, and it is the one most often waved through.

Every venue record carries capabilities: whether staff signed in there may identify, redeem, earn or issue, and whether a feed signed in there may ingest stays and visits. Every mutation and every ingest call re-checks that list on the server, against the venue record — so the toggles in the staff app are cosmetic and a compromised or misconfigured device cannot exceed what its venue permits.

Give each venue the narrowest set that lets it work. A bar that only accepts vouchers gets redeem and nothing else. Two need real thought:

  • issue lets a counter create value out of nothing. It belongs at a small number of supervised venues.
  • ingest lets whoever acts there write stays and visits for any venue and any existing guest. It is never a default. Give it to one venue — a head-office venue suits — and bind every feed's API client to it. (Our sibling apps' own venues, Webshop and Events, carry it for those apps alone.)

An online checkout integrating with Hospitality is a venue too — give it redeem only.

Two venue fields matter once feeds exist: the revenue category (food & beverage, retail, wellness, activities, accommodation, other — defaulted from the venue type, overridable in the Locations tab), which decides where a visit's spend lands on the guest profile; and the external record id, which lets a feed name a venue by its own id. The venues of one site — a resort's restaurant, spa and shop beside its accommodation — should share a brand with the property, because a visit at a same-brand venue during a stay attaches to that stay. Think twice before giving several properties of a chain one brand.

The systems that feed you#

Each booking engine, PMS, POS or spa system that pushes stays or visits gets an API client of its own (Security tab: a name, the venue it acts at — the ingest venue — the contact it acts as, and a secret it alone holds), which you can switch off or re-key without touching any other feed. Record each one in the Guests & sources tab — its id is the source_system value it sends, with a kind and a status — so the portal says who writes into it. The register is for people: the ingest endpoints do not refuse a source that is missing from it.

If our Commerce or Events app is installed beside Hospitality, the two apps link by themselves — nothing to configure, no staff identity or code to hand over: each proves which app it is to Hospitality and acts at a venue of its own (Webshop, Events), which Hospitality creates on first use. Settings → Integrations → Connections shows each one and whether it is linked. Each can report its own sales and check-ins as visits once switched on in that app, and reverses a visit when its sale is refunded in full. Agree which system reports which sale: the app that took the money reports it, and one sale reported twice is double the spend on the guest's profile.

Feeds never create contacts. A stay or visit for a guest who is not yet a contact is refused and must be sent again after the contact exists, so decide where guests become contacts — a booking form, an import, a sync — before the first feed runs.

Staff sign-in and machines#

People sign in to the scanner as themselves: with their own HubSpot member login on the portal's site. There is no PIN and no typed e-mail. Only a contact whose Staff access includes Hospitality can start a session — switch it on per person from their Loyalty & Wallet card or the Security tab, and switch it off again to sign them out at once. Optionally gate the scanner page itself to a staff access group you create under Memberships; that is a convenience for staff, the server check is the boundary.

A till, a kiosk or a feed is never a person: it gets an API client (above), which gives the ledger per-till attribution and can be revoked on its own.

Programmes#

A programme defines what a point is called, what it is worth per unit spent, and whether it applies across the brand or at named venues. Get the earn rate right before anyone earns anything — changing it later does not retro-fit balances, and it should not.

Guest lifecycle and points on visits#

In the Guests & sources tab:

  • Loyal from (default 3 occasions) and lapsed after (default 400 days) decide each guest's lifecycle stage. A change applies to a guest the next time their profile is rebuilt; Recompute guest profiles applies it to everyone now, in batches that can be stopped and resumed.
  • Earn points on visits is off by default. Switched on, every completed visit pushed by a feed — with an amount, at a venue allowed to earn, for a guest whose membership covers that venue — earns once. Decide before the first feed runs. A till that awards points from the spend already records that sale as a visit and earns on it, so the same sale must not also arrive through a feed. This path is built but has not yet run on a portal; prove it on yours before relying on it.

The manual steps#

These genuinely cannot be automated, in this order:

  1. Install the app and grant the scopes. Confirm afterwards that the portal reports the app installed with no outstanding scope changes. Until it does, anything needing a newly added scope fails in ways that look like unrelated bugs — automation, page provisioning, the Stays pipeline and the wallet URL each depend on one.
  2. Enable the two email modules for programmable email, and fill their fields on each email. In Design Manager, open the Hospitality Loyalty card and Voucher modules, tick the programmable-email option in the inspector, and publish each. Each module also carries per-portal fields that ship blank on purpose: the ids of the default associations it reads (contact ↔ loyalty membership, loyalty membership ↔ programme, contact ↔ incentive — they differ on every portal, so they are read from that portal's own association settings, never copied from another) and, for the voucher, the wallet page URL. The voucher email will not publish until its fields are filled. The balances and the voucher resolve only when programmable email is on — and only in the email send preview for a specific contact, never in the Design Manager editor preview. That difference has cost more time than the step itself.
  3. Wire the workflow actions you want. Once the app is installed with automation, four actions appear in the workflow editor: Enrol in loyalty programme, Issue voucher, Award loyalty points and Create wallet link. They run on contact workflows. The usual shape is: enrol (with the card) or create the wallet link → send the loyalty-card email. The actions write the link and QR onto the contact; the email reads them from there.
  4. Review and switch on the lifecycle workflows — voucher expiry and tier promotion. Read what each one enrols before enabling it, and watch it act once.
  5. Place the CRM cards. The six cards appear after install, but where they sit on a record is a layout step in HubSpot. We put Guest profile above Loyalty & Wallet on a contact tab named Guest, Stay on deals, Visit on visits and Incentive Lifecycle on incentives. The Stay card shows nothing of a deal outside the Stays pipeline.
  6. Decide the QR image provider — a data-flow decision, not just a rendering one; see Security posture before accepting the default. The install points it at our hosted generator. If you change it to any other host, that host must also be added to the app's image allow-list and the app re-uploaded, or the QR renders as a blocked image inside HubSpot's CRM cards — the wallet and scanner pages are ordinary web pages and are unaffected, which is why this fails in only one of the two places. The QR codes on the wallet itself are drawn on the page and need no provider.
  7. Paste the label-printer token, if physical loyalty cards are being printed. It is seeded empty and never lives in code. The settings page has a test print.
  8. Keep the install key private — see What the install creates.

What the app can reach#

The scopes it requests, in full, because a reviewer should not have to take "the usual ones" on trust:

ScopeWhy
crm.objects.contacts.read · .writeGuests, members and staff are contacts. Write covers enrolment, the loyalty-card properties, the recomputed guest profile and the External guest ID
crm.objects.custom.read · .writeVenues, programmes, memberships, the ledger, incentives and visits are all custom objects
crm.schemas.custom.read · .writeOnly used at install, to create those objects and their properties. Without it the app cannot provision itself
crm.objects.deals.read · .write, crm.schemas.deals.read · .writeStays are deals in a dedicated Stays pipeline, which the install creates with its properties. The app writes only deals in that pipeline, and its stay card shows nothing of any other deal
crm.objects.products.readProduct vouchers resolve against your product catalogue. Read only
automationThe workflow actions — create a wallet link, enrol, issue a voucher, award points — and creating the two lifecycle workflows. Drop this and the automation is unavailable; nothing else breaks
contentProvisioning the wallet and scanner pages at install
cms.domains.readReading the portal's primary domain, which is how the wallet URL is derived rather than configured
e-commerceProduct and pricing reads behind product vouchers
oauthThe install itself

Two things a reviewer usually asks next. The deal scopes serve the Stays pipeline only, and there is no tickets, no email or marketing scope — Hospitality has no reason to read your sales pipeline or your campaigns, and does not. And adding a scope later requires a reinstall; until that happens the affected functions fail rather than degrade, which is why the install step insists on confirming there are no outstanding scope changes.

Security posture#

The shareable summary, for a reviewer who has to sign this off:

  • Guest data stays on your portal. Hospitality's records — stays, visits, profiles, balances, vouchers — are CRM records in your own HubSpot account. We do not operate a database holding your guests.
  • One thing does leave the portal, and you should decide about it deliberately: QR image rendering. A loyalty-card QR is an <img> in an email, and HubSpot's serverless functions return JSON only — they cannot serve an image — so the image URL points at an external renderer. The URL handed to that renderer contains the member's wallet link, and therefore their token. The install points this at our own hosted renderer; the built-in fallback is a public third-party QR service. Neither stores anything, but both see the link. If that is not acceptable to your review, point the setting at a renderer you host — it is a URL template, and swapping it needs no redeploy on our side. This is the only outbound data flow in the app, and it is worth being explicit about rather than letting it be found.
  • Tokens are stateless and signed, from a secret held in your portal's settings. Verification is a signature check with no database lookup; the signature is verified before the payload is parsed, so a tampered token never reaches a contact lookup.
  • Identity responses are data-minimised. Scanning a member card returns a name — never an email address or a phone number. That is enforced server-side, not a UI choice.
  • Authority is per venue and re-checked server-side on every mutation and every ingest call.
  • Feeds cannot create people. An ingested stay or visit names an existing contact or is refused.
  • The ledger is append-only. Reversals write a compensating row; nothing is edited away.
  • Rate limiting is per identity — a staff member, an API client — on value-moving calls and on enrolment, which is why one client per till matters.
  • Secrets in settings are encrypted at rest with keys derived from the app's own root secret, which is held as a HubSpot secret outside the CRM, and are never returned by a read.
  • Sibling apps trust each other by key, not by a shared secret. Our Commerce and Events apps prove which app they are with a short-lived signed assertion checked against a public key they publish on your portal; Hospitality remembers the key it first trusted and refuses a different one until an admin reconnects. Whoever can write the portal's App Setting records can already change balances, so treat that permission as admin access.
  • Revocation is per person and per integrator. One guest's wallet links and card, one staff member's sessions, or one integrator's API client can be stopped without touching anyone else; rotating the portal's secret remains the all-at-once option.
  • The demo trade-offs close by configuration. Every relaxation made for demonstration portals (wallet recovery that answers directly, a scanner page open to anyone, workflow actions that accept unsigned calls) is a setting, and the readiness check on the Setup tab lists each one as ready or demo-grade with the change that closes it. A portal that holds real guests should read all ready.

The full trade-off analysis, including the ones we have deliberately accepted for demonstration portals and exactly how each is tightened, is not published — it is effectively a map of where to push. Ask for it as part of a deployment review and we will walk it through.

Verifying it works#

A green settings page is not evidence. Neither is a successful deploy. In order:

  1. Ask the app for its own status. GET /hs/serverless/hospitality-status on the portal's domain should report bootstrapped, with the loyalty objects present and the QR provider you expect. Anything else stops here. It does not cover stays and visits — the next step does.
  2. Open the settings page. The Setup tab opens on a readiness check: the objects, settings and secret, the experience profile, both pages, the QR provider, the wallet URL, the workflow actions, the Stays pipeline, the guest-profile properties, and whether any venue may ingest. A red row says what to do. The ingest row may stay red by choice on a portal that has no feeds; anything else red stops here.
  3. Load the wallet page and the scanner page in a browser. A blank page means the module was provisioned but not wired — a page that renders an empty shell is a different fault from one that 404s, and worth telling apart before escalating.
  4. Start a staff session at /scan for a real venue, signed in with a member login that has scanner access — and, for a feed, mint a token for its API client. A successful session is the first proof the secret, the venue record and the person or client all exist and agree — which is exactly what a "complete-looking" settings page does not tell you.
  5. Scan and redeem a test voucher at that venue. Then send the same request again with the same idempotency key and confirm the balance does not move twice.
  6. Attempt a redeem at a venue that lacks the capability and confirm it is refused. If it succeeds, the capability model is not doing its job and nothing above it can be trusted.
  7. Push a test stay and a visit inside it as a feed would, signed in at the ingest venue, then send both again. The second answer must say updated with the same record ids, the visit must carry the stay, and the guest's Guest profile card must show the stay and the spend. Push one record for a guest who is not a contact and confirm it is refused with nothing written.
  8. Send the loyalty email to a test contact through the send preview and confirm the balances block and the QR both render.
  9. Scan the QR from that email — and the membership QR in that guest's wallet — with the staff scanner and confirm both identify the contact.

Steps 5, 6, 7 and 9 are the ones that get skipped, and they are the four that prove the system rather than the deployment.

Reinstalling — what survives#

  • Uninstalling or reinstalling the app deletes no CRM data. The objects, the Stays pipeline and its stays, visits, guest profiles, settings records and existing vouchers all survive; the install steps carry upgrade logic for schema changes.
  • A scope change requires a reinstall, and until it completes the affected functions fail rather than degrade.
  • Configuration that lives outside the app's own settings does not automatically come back. Before any reinstall, record the current configuration — provider selections, secrets you pasted in, the email modules' per-portal fields, and any per-portal values. A shared secret that only ever existed in a settings record is unrecoverable if the record is lost, and there is no way to re-derive it.
  • CRM cards only reflect a new build after the reinstall picks it up. A card showing old behaviour after a deploy is usually this, not a caching problem.

When something misbehaves#

The failures that have actually occurred during installs on our own portals:

SymptomCauseFix
Every value endpoint returns 503 NOT_BOOTSTRAPPEDThe install has not run on this portalRun it
An install step answers that it ran out of timeExpected on a fresh portal — the step is bigger than one 20-second callCall the same step again; it finishes what it started
Ingest returns 503 GUEST_MODEL_NOT_INSTALLED, or the Stay card says the Stays pipeline is not set upThe guest-model step has not runRun it; it is safe to repeat
/scan or /wallet answers 404 right after the pages were createdThe pages are scheduled and not live yetWait about a minute before investigating
Wallet or scanner page renders blankThe page exists but is not bound to the moduleRe-provision the page from the Setup tab; a blank render and a 404 are different faults
QR image is blocked inside a HubSpot CRM card, but fine on the websiteThe QR host is not on the app's image allow-listAdd the host and re-upload the app
The loyalty email's balances block is empty, or the voucher email will not publishProgrammable email is not enabled on the module, its per-portal fields are blank, or you are previewing in the editor rather than the send previewEnable and publish the module; fill its fields on the email; preview as a specific contact
The Hospitality workflow actions are missing from the pickerThe automation scope was added after the last installReinstall and confirm no outstanding scope changes
The scanner asks the person to sign in, or says they have no scanner accessNot signed in to the site's membership, or their contact lacks Staff access → HospitalitySign in with the member login; switch scanner access on for that contact (card or Security tab)
A sibling app's calls are refused and Connections shows Key changedThe app was reinstalled with a new key, or someone changed its registry entryFind out which; press Reconnect only when the change is expected
A redeem is refused at a venue that should workEither the venue lacks the capability, or the voucher is restricted to named venuesThe refusal names the venues where it would work — read it
A feed's calls answer 403 CAPABILITY_MISSINGIts API client's venue lacks ingestTick Ingest stays and visits on that venue in the Locations tab
A feed's records come back UNKNOWN_CONTACTThe guest is not a contact yet, or was created seconds ago and is not searchable yetCreate the contact (or wait), then send the record again
A visit shows as a day visit although the guest was stayingThe stay arrived after the visit, the stay is only an enquiry or option, or the venue is neither the stay's property nor of the same brandSend the visit again once the stay exists; check the stay's stage and the venues' brand
Guest lifecycles do not reflect new thresholdsA threshold change applies at each guest's next rebuildRun Recompute guest profiles in the Guests & sources tab
Configuration looks complete but every token mint failsA setting names a record that has since been archived. Storing an id does not check the record still existsRe-point the setting and use the connection test, which mints a real session rather than checking for non-empty fields

That last row is worth generalising past this app: a settings screen that validates presence rather than reachability will report healthy right up to the first real request. Test by doing the thing, not by checking that the box is filled.

Removing it#

  • Archive the venue records to stop staff and feeds signing in at them — capability checks fail closed.
  • Rotate the secret to invalidate every outstanding token immediately, including any till's and any feed's.
  • Uninstalling the app removes the surfaces and leaves the CRM data — the stays stay deals in their pipeline, and visits, profiles and the ledger stay records. If the data must go too, that is a separate deliberate deletion, and worth deciding consciously — a transaction ledger and a guest's history are often the things a business most wants to keep.

Click the image to switch between fit and full size. Esc closes.