# E-signatures and clickwrap for travel apps

> E-signatures and clickwrap for travel and hospitality apps: one prompt for booking terms and activity waivers, tested code, the rule packs and the limits.

Source: https://esigncomply.com/industries/travel

Industry · Travel and hospitality

A travel app records two things: the booking terms a guest accepts before they pay, with the cancellation rules in them, and the waiver they sign before a tour or an activity. You build both screens in your booking flow. Esign Comply supplies the rules as one prompt and seals each record, valid under ESIGN, UETA and New York's ESRA.

[Get an API key](https://esigncomply.com/signup) · [Read the docs](https://esigncomply.com/docs/quickstart)

Free plan: 10 live signatures a month and a full test mode. No card required.

Last updated November 25, 2026

POST /v1/prompts/generate · this page's prompt

```bash
curl https://esigncomply.com/v1/prompts/generate \
  -H "Authorization: Bearer $ESIGNCOMPLY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "use_cases": [
    { "use_case": "checkout", "documents": [
      { "name": "Booking Terms", "type": "terms" }
    ] },
    { "use_case": "contract", "documents": [
      { "name": "Liability Waiver", "type": "contract" }
    ] }
  ],
  "signers": "consumer",
  "jurisdictions": ["US-FED"],
  "on_unknown_region": "base_only",
  "stack": "nextjs_app",
  "tool": "cursor"
}'
```

6 records · each links to its use case

## What do travel and hospitality apps record with Esign Comply?

A booking engine takes a guest's money against terms the guest rarely reads, and an operator takes them somewhere with a risk attached. Each card is one of the records that go with that, and links to the page that builds it.

- Checkbox and button

  **[Booking terms at checkout](https://esigncomply.com/use-cases/checkout-terms)**

  An order review, an unchecked box and a button. The acceptance of your cancellation and refund terms is recorded before your page takes payment.

  Use case: Checkout terms

- Typed name

  **[Activity and tour waivers](https://esigncomply.com/use-cases/liability-waiver)**

  Guests sign the waiver before they check in, with a typed name on their own phone or on your tablet.

  Use case: Liability waiver

- Checkbox and button

  **[Changes to a booking's terms](https://esigncomply.com/use-cases/terms-update)**

  Publish a material version of your terms, and the API reports which account holders have not accepted it.

  Use case: Terms update

- Checkbox and button

  **[Marketing consent](https://esigncomply.com/use-cases/marketing-consent)**

  An opt-in with its own unchecked box and its own record, apart from the booking. An unsubscribe is recorded against it.

  Use case: Marketing consent

- Checkbox and button

  **[Photo and media releases](https://esigncomply.com/use-cases/photo-release)**

  A guest's release for the photos you take on a tour, shown in full above its own unchecked box.

  Use case: Photo and media release

- Two checkboxes and a button

  **[Membership and loyalty renewals](https://esigncomply.com/use-cases/subscription-renewal-consent)**

  A paid membership that renews needs the renewal terms set off beside their own unchecked box, before any billing field.

  Use case: Subscription renewal consent

### More use cases for travel apps

- [Terms of service at sign-up](https://esigncomply.com/use-cases/terms-of-service)
- [Privacy notice acknowledgment](https://esigncomply.com/use-cases/privacy-notice)
- [SMS and telephone marketing consent](https://esigncomply.com/use-cases/sms-marketing-consent)
- [Safety rules](https://esigncomply.com/use-cases/safety-rules)
- [Partner agreement](https://esigncomply.com/use-cases/partner-agreement)
- [Supplier agreement](https://esigncomply.com/use-cases/supplier-agreement)
- [All use cases](https://esigncomply.com/use-cases)

### Patterns travel apps build with

- [Embedded signing](https://esigncomply.com/use-cases/embedded-signing)
- [Emailed signing link](https://esigncomply.com/use-cases/emailed-signing-link)
- [Several signers](https://esigncomply.com/use-cases/multiple-signers)
- [Drawn signature](https://esigncomply.com/use-cases/drawn-signature)

The prompt · 2 flows · from the generator

## Which prompt builds booking terms and activity waivers for a travel app?

This is what the Esign Comply prompt generator produces when you tick two flows for consumer signers: checkout acceptance, for the booking terms, and contract signing, for the liability waiver. The stack is Next.js App Router with Supabase and Vercel, under the U.S. Federal rule pack. Paste it into Cursor, Claude Code, v0, Lovable, Bolt or Replit.

A booking is a purchase, so the terms are accepted with an unchecked box and a button, never a bare click. The waiver is a contract, so the guest types their name. Enable the EU pack on the profile when you sell to travellers in Europe: a session for a guest there then returns the wording for the order button and the withdrawal controls. `{Company}` is your company's name.

[Generate it for your own regions and stack](https://esigncomply.com/product/prompt-generator)

esigncomply-travel-prompt.md · 2,091 words

````markdown
# Esign Comply integration: checkout acceptance and contract signing
Prompt esc_prompt_7811694cf3b9 · blocks 2026.11 · guidance bundled · region US
Jurisdictions: US-FED · mode auto

You are adding legally significant acceptance and signature flows to this Next.js App Router application (TypeScript, Supabase Auth and Postgres, deployed on Vercel). Esign Comply is the independent record keeper. You build every screen. The Esign Comply SDK observes the screens you build and seals the record.

Follow this prompt exactly. If something here conflicts with existing code, or you are unsure how to implement a step, stop and ask. Do not invent API methods, packages, or legal wording.

This prompt has four kinds of instruction. Keep them apart:
- "Required for the record": build all of it. Esign Comply checks these.
- "Your obligations": duties the law places on {Company}. Esign Comply does not check them. Build what code can do and list the rest in your report.
- "Recommendations": suggestions. Ask the developer before applying any that changes the product.
- "What you can send us": optional reports {Company} may file with Esign Comply.

## Context
- Packages (the only ones that exist): `esigncomply` (server), `@esigncomply/browser` (client), `@esigncomply/react` (optional hooks).
- API host: https://esigncomply.com/v1
- Environment variables (server only, never NEXT_PUBLIC_): ESIGNCOMPLY_API_KEY, ESIGNCOMPLY_WEBHOOK_SECRET
- Profiles: checkout = `<profile ID for checkout>`, contract = `<profile ID for contract>`
- Documents: Booking Terms = `<document ID for Booking Terms>`, Liability Waiver = `<document ID for Liability Waiver>`
- An ID in angle brackets does not exist yet. Ask the developer for it. Do not invent IDs.
- Rule pack versions: 2026-11-22 (all selected packs).
- Server SDK calls return `{ data, error }` and do not throw. Check `error` every time.

## Required for the record
1. Create every session on the server with the secret key. Send only `client_token` to the browser.
2. Read `required_steps` and `advised_steps` from the session and satisfy every one. Do not hard-code steps.
3. Show the notice text directly above the action button, in the same container, visible without scrolling at 390 x 844 (CR-04).
4. Notice wording for checkout, verbatim, with links:
   "By checking the box and clicking Place order, you agree to the [Booking Terms]." (CR-02, CR-03)
5. Links to documents must be underlined and use a colour that differs from the surrounding text with a contrast ratio of at least 3:1, and at least 4.5:1 against the background. Notice text is at least 14px and never lighter than body text (CR-05, CR-06).
6. Every checkbox starts unchecked. Every typed-name field starts empty (CR-01).
7. Only one primary button inside the assent container. Any other action sits outside it (CR-07).
8. Serve each document at a stable page on this domain that renders the registered version fetched from Esign Comply, unmodified (CR-08).
9. Treat the browser result as untrusted. Grant access only after the server has confirmed the record with the secret key (step 5 below).
10. Pass an `Idempotency-Key` on session creation.
11. Purchase flows (checkout) use an unchecked checkbox plus a button and send their `context.purpose` (CR-09, US-17). The checkbox is an Esign Comply policy, not a court rule.
12. Show an order review before the final act and record it with `ceremony.reviewPresented({ container })` (CR-13, US-05).

### Never
- Never pre-check a box, auto-submit, or call `.click()` on the user's behalf.
- Never treat sign-in, scrolling, or continued use as acceptance.
- Never use "By continuing" or "By clicking below" wording.
- Never put the secret key, or any call that uses it, in a client component.
- Never proxy `@esigncomply/browser` calls through this application's server.
- Never cache or copy document text into the repository. Always render the registered version.
- Never write to `esign_acceptances` from the browser.
- Never show "signed" or "accepted" in the interface before step 5 confirms it.
- Never write or change the text of the Booking Terms or Liability Waiver.

## Your obligations
These are {Company}'s duties under the rule packs selected. Esign Comply lists them and does not perform, monitor, or verify them. The list is not exhaustive.

US-FED · pack 2026-11-22
- Customer: where another law requires {Company} to keep a record, keep an accurate, accessible copy for that period, including after export (US-31); before offering a record in court, give the adverse party reasonable written notice and access to the record and declaration (US-38). Outside this codebase.

## Recommendations
Esign Comply recommends the following. Ask the developer which to apply.

- State in the contract notice that the signer agrees to sign electronically, give a way to decline, and show a review step before the final act (US-04, US-05). Already reflected in step 8.
- Before a material terms update takes effect, notify users in advance and present a blocking screen with an unchecked checkbox (US-18). Step 7 builds the screen; the advance notice email is the developer's choice.
- Keep saving and printing open wherever a signed record is shown (US-29).
- Where minors may sign, consider an age attestation checkbox: `ceremony.ageAttested({ checkbox })` (US-42).

## What you can send us
Optional. Each report is sealed with Esign Comply's receipt time and marked as supplied by {Company}; Esign Comply does not verify it. Every field is optional and any text, JSON, or file is accepted.
Reports never affect recording, and a failed one never blocks the user's action. Suggested `data` per type: `esc.supplements.types()`.

- When the terms-update notice email is sent:
  `esc.supplements.create({ subject: { signer: signerId }, type: "notice.sent", rule_ids: ["US-18"], text, data: { channel: "email", template } })`
- Anything else worth keeping (support ticket, screenshot, policy in force): type `note`, or omit `type`.

Only wire these if the developer says yes.

## Build steps

### 1. Install and configure
`npm install esigncomply @esigncomply/browser`
Create `lib/esigncomply.ts`:
```ts
import "server-only";
import { EsignComply } from "esigncomply";
export const esc = new EsignComply(process.env.ESIGNCOMPLY_API_KEY!);
```
Keys go in `.env.local` and the Vercel project settings, never in chat.
Run commands in the integrated terminal. Rules file: `.cursor/rules/esigncomply.mdc`.

### 2. Database (Supabase migration)
```sql
create table public.esign_acceptances (
  id uuid primary key default gen_random_uuid(),
  user_id uuid references auth.users(id) on delete cascade,
  signer_id uuid not null,
  record_id text not null unique,
  document_id text not null,
  version_id text not null,
  purpose text not null,
  signed_at timestamptz not null,
  created_at timestamptz not null default now()
);
alter table public.esign_acceptances enable row level security;
create policy "read own" on public.esign_acceptances
  for select using (auth.uid() = user_id);
-- No insert, update, or delete policies. Only the service role writes.
```
Add `signer_id uuid unique` to the profile table.

### 3. Document pages
Create `app/legal/[slug]/page.tsx` for `terms` and `liability-waiver`. Resolve `current` on session creation only. Fetch with `esc.documents.versions.getContent(documentId, versionId)`; render, print and download by the exact version ID returned on the session; the cache key includes that ID. Render inside `<article data-esc-document>` and reject stale versions before the final action. Give users a real opportunity to read the terms.

### 4. Checkout ceremony (`/checkout`)
Server action `startCheckoutCeremony()`:
- `signerId` is the signed-in user's `signer_id`; create and store one with `crypto.randomUUID()` if it is missing. Never accept it from the browser. `attemptId` is a UUID made when the page first renders and reused on retry.
- Call:
```ts
const { data, error } = await esc.sessions.create({
  profile: "<profile ID for checkout>",
  signer: { external_id: signerId, email, class: "consumer", country, region },
  documents: [
    { document: "<document ID for Booking Terms>", version: "current" },
  ],
  context: { url: `${origin}/checkout`, locale, purpose: "one_time_purchase" },
}, { idempotencyKey: `checkout-${attemptId}` });
```
- Obtain `country` and applicable jurisdiction from the form/customer configuration; do not guess from IP. `region`: the U.S. state as an ISO code ("US-NY"), if collected.
- Return `data.client_token` and `data.documents` to the client.

Client component `CheckoutForm`:
```tsx
"use client";
import { EsignComply } from "@esigncomply/browser";
// after the server action returns clientToken:
const ceremony = await EsignComply.attach({ clientToken });
await ceremony.presentDocument({ versionId: termsVersionId, mode: "hyperlink", link: termsLinkRef.current });
ceremony.observeAssent({
  region: assentRef.current,    // contains notice, links, checkbox, button
  checkbox: checkboxRef.current,
  submit: submitRef.current,
});
// in the submit handler, from the user's real click:
try {
  const result = await ceremony.complete();          // { recordId, receipt, verifyUrl }
  await finishCheckout(formData, result.recordId);   // server action, step 5
} catch (err) {
  showError(err.message);                            // typed error with rule ID
}
```
Disable the button until `ceremony.remainingSteps()` contains only "signature.applied".
Start the ceremony when the page renders, not on submit.
Order and payment:
- Order review: show the items, price and billing interval above the assent container, then `ceremony.reviewPresented({ container })`.

### 5. Server confirmation (the only place access is granted)
Server action `finishCheckout(formData, recordId)`:
- `const { data: record, error } = await esc.records.get(recordId);`
- Require: no error; `record.status` is "recorded", "timestamped", or "anchored"; `record.signer.external_id` equals the signed-in user's `signer_id`; `record.livemode` equals `process.env.VERCEL_ENV === "production"`; the record lists the exact versions pinned in that session.
- Only then create the order and take payment, and insert one `esign_acceptances` row per document using the service-role client.
- If checks are inconclusive, do not create the order and take payment. Show: "We could not confirm whether your acceptance was recorded. Please wait while we check." Reconcile the existing session before requesting another act.

### 6. Webhook
`app/api/esigncomply/webhook/route.ts`, Node.js runtime. Read the raw body, then `esc.webhooks.verify(rawBody, request.headers, process.env.ESIGNCOMPLY_WEBHOOK_SECRET!)`.
Reject on failure with 400. Handle idempotently by `webhook-id`:
- `record.completed`: upsert `esign_acceptances` (covers a browser that closed early).
- `record.disputed`: flag the row and notify the admin email.
- `signer.reacceptance_required`: no action; the gate in step 7 handles it.
- Ignore event types you do not recognise and return 200.
Return 200 within 5 seconds.

### 7. Gate and re-acceptance
In the authenticated layout, call `esc.signers.status(signerId)` (cache 5 minutes per user). If any required document is outstanding, redirect to `/accept-updates`. That page shows the list of updated documents with links, the summary of changes returned by the API, an unchecked checkbox labelled "I agree to the updated [document titles]", and a button labelled "Accept and continue". It runs the same ceremony with `purpose: "policy_update"`. Offer "Log out" as the alternative. Do not offer "Remind me later".

### 8. Contract signing (`/contracts/[id]`)
- Server: create a session with `profile: "<profile ID for contract>"`, `documents: [{ document: "<document ID for Liability Waiver>", version: "current" }]`, `context.purpose: "contract_signature"`, the signer's `external_id`, `name` and `email`, `class: "consumer"`, and `country` and `region` as in step 4.
- Page layout, top to bottom:
  1. The full session-pinned Liability Waiver rendered inline with download and print. Call `ceremony.presentDocument({ versionId, mode: "inline", container })`.
  2. Review line: "You are signing the Liability Waiver between {Company} and {signer name} as {signer name}." Record it with `ceremony.reviewPresented({ container })` (CR-13).
  3. Assent container with: the notice "By typing your name and clicking Sign agreement, you agree to sign this agreement electronically and to be bound by it." (CR-12), and in the same notice the title "Liability Waiver" (CR-02); an empty text field labelled "Type your full legal name" (CR-09); a primary button "Sign agreement"; a secondary text link "Decline" outside the container that calls `ceremony.cancel()`.
  4. `ceremony.observeAssent({ region, typedName: nameField, submit })`, then `ceremony.complete()` from the click.
- After completion, confirm on the server as in step 5, then show "Signed. A copy has been emailed to you by Esign Comply." with a link to `result.verifyUrl` and a "Download copy" link.
- Do not render a signature image or a cursive font as the signature.

### 9. Errors
- `ceremony.complete()` rejected with a rule ID: show the message, keep the form, do not retry automatically.
- Network failure or 5xx: show "We could not confirm whether your acceptance was recorded. Please wait while we check." Reconcile the same session and idempotency key before requesting another act. Never proceed without a record.
- `client_token_expired`: create a new session and re-attach.

## Verify before you report success
1. `npm run build` passes and no file under `app/**` marked "use client" imports `esigncomply` or reads ESIGNCOMPLY_API_KEY.
2. Run `npx esigncomply check --url http://localhost:3000/checkout` and `npx esigncomply check --url http://localhost:3000/contracts/test`. Fix every finding marked "block", re-running until none is left. List every finding marked "warn" in your report.
3. Confirm by test that submitting with the box unchecked does nothing, and that calling `finishCheckout` with a made-up record ID does not create the order and take payment.
4. Report: files created or changed, anything in this prompt you did not implement and why, the conformance summary, each item under "Your obligations" with "built", "partly built", or "needs a process outside this codebase", and each recommendation with the developer's decision.
````

The flows in the prompt for travel apps: the profile the prompt generator derives for each, with its method, level, purpose and documents

| Flow in the prompt | Method | Level | Purpose | Documents |
| --- | --- | --- | --- | --- |
| Checkout acceptance | Checkbox and button | L1 | `one_time_purchase` | Booking Terms terms |
| Contract signing | Typed name | L1 | `contract_signature` | Liability Waiver contract |

Each row is a profile the generator derives for one flow: the method, the assurance level and the `context.purpose` its sessions send. Send the same flows to `POST /v1/prompts/generate` and the API returns this prompt with your own profile IDs in it. Every flow starts at L1, which is on every plan.

Worked flow · run before publishing

## How does a travel app record acceptance of booking terms with the Esign Comply API?

The booking terms hold your cancellation and refund rules, and a chargeback goes back to them. Your server creates one session when the checkout page renders, the page runs the ceremony beside the booking summary, and your page takes payment only after your server has read the sealed record back.

required_steps · 5 steps, in order · as the API returns them for this session

1. `client.attached`

   The browser SDK attaches to your page with the client token.

2. `document.presented:<version_id>`

   Your notice links to the Booking Terms page on your domain. The SDK reports the link, how it looked and whether the guest opened it.

3. `notice.captured`

   The SDK captures the notice, the unchecked box and the Place order button as the browser rendered them.

4. `intent.captured`

   The person ticks the box themselves. The SDK reports the tick and whether a real user event made it.

5. `signature.applied`

   The person clicks Place order. The API seals the record of the Booking Terms and returns a signed receipt.

**session.ts**

```ts
import { EsignComply } from "esigncomply";

const esc = new EsignComply(process.env.ESIGNCOMPLY_API_KEY!);

export async function startBookingSession(origin: string, guest: { id: string; email: string; country: string }, bookingId: string) {
  const { data: session, error } = await esc.sessions.create(
    {
      profile: process.env.ESC_BOOKING_PROFILE_ID!,
      signer: { external_id: guest.id, email: guest.email, class: "consumer", country: guest.country },
      documents: [{ document: process.env.ESC_BOOKING_TERMS_DOCUMENT_ID!, version: "current" }],
      context: { url: `${origin}/book/${bookingId}`, locale: "en-US", purpose: "one_time_purchase" },
      metadata: { booking_id: bookingId },
    },
    { idempotencyKey: `booking-${bookingId}` },
  );
  if (error) throw new Error(`${error.code}: ${error.message}`);
  // Only the client token, the API base for it and the pinned versions go to the browser.
  return { clientToken: session.client_token, apiUrl: session.api_url, documents: session.documents };
}
```

**cURL**

```bash
curl https://esigncomply.com/v1/sessions \
  -H "Authorization: Bearer $ESIGNCOMPLY_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: booking-bkg_30117" \
  -d @- <<JSON
{
  "profile": "$ESC_BOOKING_PROFILE_ID",
  "signer": {
    "external_id": "guest_7c1d",
    "email": "dana@example.org",
    "class": "consumer",
    "country": "US"
  },
  "documents": [
    {
      "document": "$ESC_BOOKING_TERMS_DOCUMENT_ID",
      "version": "current"
    }
  ],
  "context": {
    "url": "http://localhost:3000/book/bkg_30117",
    "locale": "en-US",
    "purpose": "one_time_purchase"
  },
  "metadata": {
    "booking_id": "bkg_30117"
  }
}
JSON
```

**register.ts**

```ts
import { EsignComply } from "esigncomply";

const esc = new EsignComply(process.env.ESIGNCOMPLY_API_KEY!);

// Run once. Keep the IDs it returns in your environment.
export async function registerBooking(bookingTerms: string) {
  const document = await esc.documents.create({ name: "Booking Terms", type: "terms" });
  if (document.error) throw new Error(document.error.message);
  const version = await esc.documents.versions.create(document.data.id, {
    version_label: "2026-11-25",
    content: { format: "markdown", text: bookingTerms },
  });
  if (version.error) throw new Error(version.error.message);
  const profile = await esc.profiles.create({
    name: "Checkout acceptance",
    jurisdictions: ["US-FED"],
    on_unknown_region: "base_only",
    signer_class: "consumer",
    document_type: "terms",
    purpose: "one_time_purchase",
    method: "checkbox",
    assurance_level: "L1",
  });
  if (profile.error) throw new Error(profile.error.message);
  return { documentId: document.data.id, versionId: version.data.id, profileId: profile.data.id };
}
```

What is travel about this call: the guest's country comes from your booking form and goes on the session as `signer.country`, because it decides which rule pack applies to them, and the idempotency key is the booking, so a guest who taps twice gets one session. The purpose `one_time_purchase` is what makes the API insist on a checkbox.

Countries without a pack

### A guest from anywhere

`signer.country` selects the pack: EU and EEA countries map to the EU pack, `GB` to the UK pack and `CH` to the Swiss one. For a country no pack covers, `JP` for example, the session still starts, with every pack the profile enables applied, and comes back with the warning `signer_country_not_covered:JP`. A warning never blocks a session.

The screen and the browser code

### Use case: Checkout terms

A booking is a checkout: an order review, a linked document, an unchecked box and one button. The checkout terms page shows the screen at each step, the browser code that reports it and what the sealed record holds.

`session.ts` reads the profile from `ESC_BOOKING_PROFILE_ID` and the document from `ESC_BOOKING_TERMS_DOCUMENT_ID`: the IDs `register.ts` returned. Each sample is run as printed against the API in test mode, and the session is then completed in a real browser.

[Checkout terms](https://esigncomply.com/use-cases/checkout-terms)

[Read the quickstart](https://esigncomply.com/docs/quickstart) · [Sessions API](https://esigncomply.com/docs/api/sessions) · [Node SDK reference](https://esigncomply.com/docs/sdk/node)

Rule packs

## Which rules apply to e-signatures and clickwrap in a travel app?

A booking runs on the U.S. Federal pack: the transaction context, the checkbox, a review step before the final act. Guests who are consumers bring the consumer rules of the state packs with them, and a guest in the EU brings the EU pack, with its wording for the order button, the confirmation and withdrawal.

Rule packs, their versions, how many of their rules apply to the flows of travel apps, and the rules to know

| Rule pack | Pack version | Rules that apply | Rules to know for these flows |
| --- | --- | --- | --- |
| United States, Federal<br>US-FED | 2026-11-22 | 35 | US-05 Review step before the final act<br>US-17 Transaction context and checkbox method<br>US-35 Chain of custody for signature profiles |
| California<br>US-CA | 2026-11-21 | 3 | CA-05 Sign-in wrap notice or checkbox |
| New York<br>US-NY | 2026-11-21 | 2 | NY-03 Renewal terms before consent or billing |
| Florida<br>US-FL | 2026-11-21 | 4 | FL-02 Incorporation of linked terms |
| Texas<br>US-TX | 2026-11-21 | 5 | The pack's general rules |
| Delaware<br>US-DE | 2026-11-21 | 1 | The pack's general rules |
| Virginia<br>US-VA | 2026-11-21 | 1 | The pack's general rules |
| Massachusetts<br>US-MA | 2026-11-21 | 6 | MA-04 Total price disclosure |
| European Union and EEA<br>EU | 2026-11-21 | 20 | EU-10 Payment disclosures and order button<br>EU-11 Durable confirmation of the contract<br>EU-12 Online withdrawal function |
| United Kingdom<br>UK | 2026-11-21 | 18 | The pack's general rules |
| Switzerland<br>CH | 2026-11-21 | 9 | The pack's general rules |

The counts are the rules the prompt generator resolves for this page's flows when a pack is selected. The prompt on this page is generated for United States, Federal (US-FED). Enable more packs on the profile, send the signer's country and state on the session, and the API applies the packs that cover that signer and returns the rules that fired. [United States](https://esigncomply.com/compliance/united-states), [Europe](https://esigncomply.com/compliance/europe), [jurisdictions guide](https://esigncomply.com/docs/guides/jurisdictions).

### State rules a fact switches on

Some rules fire only when your session says what the document is or who the signer is. You send that in `context.facts`, the record marks it as asserted by you, and a session in that state then returns the rule among `rules_fired`.

- **VA-16 Home solicitation, confession of judgment and sector warnings**

  Virginia pack

  With `document_category: "release"`: The pack warns on a release signed before an injury for negligent personal injury, and flags it for your counsel.

`required_strings`

### Wording for a booking in the EU

With the EU pack enabled, a session for a guest in the EU returns the wording the pack asks your page to carry, slot by slot: the label of the order button, the information shown above it, and the two controls of the withdrawal function. Whether a right of withdrawal applies to what you sell is yours to settle.

[Europe rule packs](https://esigncomply.com/compliance/europe)

`one_time_purchase`

### A booking is never a bare click

Esign Comply's policy for a purchase is an unchecked box plus a button. A session with a purchase purpose runs on the checkbox method, and the conformance check reports a ceremony that recorded only a click.

[Checkout terms](https://esigncomply.com/use-cases/checkout-terms)

POST /v1/sessions

### A group booking, one waiver each

A session is one person. Four adults on one booking sign four waivers, each in a session of their own on the same version, and your app shows the lead guest who has signed.

[Several signers and signing order](https://esigncomply.com/use-cases/multiple-signers)

Limits

## What does Esign Comply not cover in travel and hospitality?

Booking terms, waivers and consents are supported document types. The limits a travel app meets are about who is travelling and about the data a booking collects.

- Flagged

  **Signers under 18**

  A record does not establish a person's age or capacity, and a minor may disaffirm a contract. The API offers an optional age statement, recorded as the signer's own assertion. Esign Comply has no parental consent flow: a parent who signs for a child is the signer of a session of their own.

- Flagged

  **Virginia: releases signed before an injury**

  With the Virginia pack applied, a session that declares `document_category: "release"` goes ahead and comes back with rule VA-16 at warn: the pack flags a pre-injury release for negligent personal injury for your counsel to review. The API records the signature and does not read the clause.

- Not supported

  **Passport and card numbers as attachments**

  Government identity numbers and payment card numbers may not be sent to Esign Comply as customer-supplied material. Text and JSON you send are checked for likely card numbers: a match is masked before storage and the response carries the warning `sensitive_data_masked`.

- By design

  **No payment and no price check**

  Esign Comply records the acceptance of your terms. It does not take payment, and it does not check the totals on your booking summary: your page shows them and your payment provider charges them.

- By design

  **A cancellation runs in your product**

  The record shows which cancellation and refund terms the guest accepted. Cancelling the booking and refunding the guest are yours to do, and you can seal your report of a cancellation request beside the record.

- By design

  **One signer per session**

  A session is one person. A document several people sign is one session per signer on the same version, and your app tracks who has signed and in which order.

- By design

  **No hosted signing page**

  Esign Comply has no signing or acceptance page of its own. Every screen the person sees is one you build, on your domain.

- Plan

  **Signer verification is optional and on two plans**

  Every flow on this page records at L1 on every plan: your app says who the signer is. A one-time code that Esign Comply emails to the signer (L2) and passkeys (L3) are on Unlimited and Enterprise. Esign Comply sends no text messages.

[Supported and blocked document types](https://esigncomply.com/compliance/not-covered) · [The dry run, in the API reference](https://esigncomply.com/docs/api/jurisdictions) · [Conformance rules](https://esigncomply.com/docs/conformance)

Evidence

## What evidence does a travel app hold for a dispute or an audit?

When a guest disputes a charge and says they never saw the cancellation policy, you hand over a record that was sealed at checkout and kept outside the booking system your team can edit.

- Signed receipt

  **Store it on your own row**

  `complete()` returns the receipt in the browser, and your server reads the record again with `GET /v1/records/{id}`. Save the record ID and the receipt beside your own data.

- PDF, per record

  **Evidence report**

  `GET /v1/records/{id}/report` returns a readable account of one record, with each field labeled as observed by Esign Comply or asserted by your app. It is included for every record on every plan.

- ZIP, verifies offline

  **Evidence package**

  The record, the receipt, the timestamp token, the ledger proof and the exact document bytes. Anyone you hand it to runs the open-source `esigncomply-verify` with no account and no network.

- On request

  **Certificate**

  A signed statement about one record or a set of records, issued when a dispute or an audit calls for it. For live records it costs $20 on Starter, 25 a year are included on Unlimited and all of them on Enterprise. In test mode it is free and watermarked.

Export the evidence · cURL

```bash
# Bookings accepted since a date, newest first
curl "https://esigncomply.com/v1/records?purpose=one_time_purchase&created_after=2026-11-01T00:00:00Z&limit=100" \
  -H "Authorization: Bearer $ESIGNCOMPLY_API_KEY"

# The evidence report of one record, as a PDF
curl https://esigncomply.com/v1/records/$RECORD_ID/report \
  -H "Authorization: Bearer $ESIGNCOMPLY_API_KEY" -o evidence-report.pdf

# The evidence package of the same record, as a ZIP, then the offline check
curl "https://esigncomply.com/v1/records/$RECORD_ID/evidence?inline=true" \
  -H "Authorization: Bearer $ESIGNCOMPLY_API_KEY" -o evidence.zip
npx esigncomply-verify evidence.zip
```

The record of a booking shows the notice and the box as the guest's browser rendered them, their own tick, the version of the terms by hash and Esign Comply's server time for each step, with your booking ID on it.

Listing records and downloading reports and packages need a key with `full_access` or `read_only` permission. Keep that key in your admin tooling, apart from the key your application server records with.

[Exporting evidence for a dispute](https://esigncomply.com/use-cases/evidence-export) · [How sealing and verification work](https://esigncomply.com/product/evidence) · [Records API](https://esigncomply.com/docs/api/records) · [Certificates guide](https://esigncomply.com/docs/guides/certificates)

## E-signatures in travel apps: questions developers ask

### How do I record acceptance of booking terms in a travel app?

Register your booking terms as a document, create a session with the purpose one_time_purchase when the checkout page renders, and attach the browser SDK to your booking summary, checkbox and button. The API seals the record when the guest clicks. Your server confirms it, then takes payment.

[Checkout terms](https://esigncomply.com/use-cases/checkout-terms)

### Is Esign Comply compliant with EU consumer rules for an online booking?

The EU pack applies them to the screen. With that pack enabled, a session for a guest in the EU returns the order button label and the withdrawal controls the pack asks for, and the check reports a screen that lacks them. Which of those rules reach your kind of booking is yours to settle.

[Europe rule packs](https://esigncomply.com/compliance/europe)

### Is a waiver a guest signs on their phone valid?

Yes. Follow the setup and the guest's typed name is a valid electronic signature under the U.S. ESIGN Act, state UETA laws and New York's ESRA. The record ties that name to the exact waiver text and the notice they saw.

[Liability waiver signing](https://esigncomply.com/use-cases/liability-waiver)

### Can the lead guest accept for everyone on the booking?

For the booking terms, the person who books and pays accepts them. A waiver is different: each adult signs for themselves, in a session of their own. Send each one a link, and your app shows who has signed.

[Emailed signing link](https://esigncomply.com/use-cases/emailed-signing-link)

### What about guests from countries with no rule pack?

The session still starts. For a country no pack covers, every pack your profile enables is applied and the session carries a warning that names the country. Warnings never block a session.

[Jurisdictions guide](https://esigncomply.com/docs/guides/jurisdictions)

### Can a parent sign a waiver for a child on the trip?

A parent can sign as themselves: they are the signer of their own session, and the child goes in your own data. Esign Comply has no parental consent flow, and a record does not establish anyone's age.

## Which pages go with e-signatures in a travel app?

Why courts refuse checkout contracts and what the screen has to show instead, the rule packs for Europe, and the stack pages for the server that creates the session.

- Learn

  **[Why courts refuse to enforce online contracts](https://esigncomply.com/learn/why-courts-refuse-online-contracts)**

  Courts refuse to enforce online contracts for a few recurring reasons: no conspicuous notice, no clear assent, terms that came too late, no proof of who signed.

- Learn

  **[A clickwrap agreement courts will enforce](https://esigncomply.com/learn/enforceable-clickwrap-agreement)**

  A clickwrap agreement is enforceable when the screen gives reasonably conspicuous notice of the terms and the user unambiguously manifests assent.

- Compliance

  **[Compliance: Europe](https://esigncomply.com/compliance/europe)**

  Follow the setup and each signature has legal effect under eIDAS Article 25 and the equivalent UK and Swiss law. Three rule packs and an independent record.

- Build guide

  **[Build your own clickwrap](https://esigncomply.com/build/clickwrap)**

  Build your own clickwrap with Cursor or Claude Code: signup, checkout and terms updates in your own form. A clickwrap alternative with an independent record.

- Migration guide

  **[Homegrown acceptance table](https://esigncomply.com/migrate/homegrown-acceptance-table)**

  Esign Comply vs a homegrown acceptance table: the alternative to accepted_terms = true. Before and after code, and the two columns your table gains.

- Docs quickstart

  **[Add e-signatures and clickwrap with Next.js](https://esigncomply.com/docs/quickstart/nextjs)**

  Build a signup clickwrap in the Next.js App Router with a Server Component, the React hooks and a Route Handler, then seal and confirm a test record.

- Stack

  **[Next.js](https://esigncomply.com/nextjs)**

  Add e-signatures and clickwrap to Next.js with esigncomply and @esigncomply/react: a Server Component, a client form and a Route Handler. Tested code.

- Stack

  **[React](https://esigncomply.com/react)**

  Add e-signatures and clickwrap to a React app with the @esigncomply/react hooks, useCeremony and useDocument, and a server route that holds the secret key.

- Platform

  **[Vercel](https://esigncomply.com/vercel)**

  Add e-signatures and clickwrap to an app on Vercel: keys per environment, a Route Handler on Vercel Functions, VERCEL_ENV, and preview deployment hosts.

- Compliance

  **[Supported and blocked document types](https://esigncomply.com/compliance/not-covered)**

  What the API accepts, what it refuses, and the sector rules it does not support.

- Industries

  **[All industries](https://esigncomply.com/industries)**

  Every industry page, with the records each one collects and the limit to know.

### Related industries

- [Events and recreation](https://esigncomply.com/industries/events)
- [E-commerce and subscriptions](https://esigncomply.com/industries/ecommerce)
- [Fitness and wellness](https://esigncomply.com/industries/fitness)
- [Marketplaces](https://esigncomply.com/industries/marketplaces)
- [All industries](https://esigncomply.com/industries)

### Run the prompt in your AI tool

- [Cursor](https://esigncomply.com/build/cursor)
- [Claude Code](https://esigncomply.com/build/claude-code)
- [Codex](https://esigncomply.com/build/codex)
- [Windsurf](https://esigncomply.com/build/windsurf)
- [GitHub Copilot](https://esigncomply.com/build/github-copilot)
- [Devin](https://esigncomply.com/build/devin)
- [Lovable](https://esigncomply.com/build/lovable)
- [v0](https://esigncomply.com/build/v0)
- [Bolt](https://esigncomply.com/build/bolt)
- [Replit](https://esigncomply.com/build/replit)
- [ChatGPT](https://esigncomply.com/build/chatgpt)
- [Grok](https://esigncomply.com/build/grok)
- [Grok Bot](https://esigncomply.com/build/grokbot)
- [Muse](https://esigncomply.com/build/muse)
- [All AI tools](https://esigncomply.com/build#tools)

## Build your booking flow yourself. Leave the record to us.

[Get an API key](https://esigncomply.com/signup) · [Read the docs](https://esigncomply.com/docs/quickstart)

Free plan: 10 live signatures a month and a full test mode. No card required.

Cursor, Lovable and the other product names on this page are trademarks of their owners. Esign Comply is not affiliated with them.

---

Every page on esigncomply.com has a Markdown version at the same URL plus `.md` (the home page is `https://esigncomply.com/index.md`). https://esigncomply.com/llms.txt lists them.

---

Esign Comply is the e-signature API and clickwrap API for developers who build their own signing flow in their own UI: it supplies the ceremony rules as a generated prompt for AI coding tools, records events in direct browser ceremonies, and seals independent, verifiable evidence.
