Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 

Repository files navigation

Bookend embed — stays widget & JSON API

Official install docs for the Bookend Partners stays widget (https://bookendpartners.com).

Bookend adds a second sale to a checkout: the rooms, parking and rides a business's customers book anyway, captured at the confirmation moment and revenue-shared with the business. This repo documents the two ways to put that inventory on your own page.

1. One script tag

<script src="https://bookendpartners.com/embed.js"
  data-bookend="YOUR-SLUG" async></script>

Drop it where the list should appear. No keys, no build step, no bundler.

Options

<script src="https://bookendpartners.com/embed.js"
  data-bookend="YOUR-SLUG"
  data-max="6"
  data-accent="#0f766e" async></script>
Attribute Meaning
data-bookend Your storefront slug. Required.
data-max How many units to render. Optional.
data-accent Hex colour for buttons and links. Optional.

2. JSON API — render it yourself

If you would rather build the markup, pull the same inventory as JSON.

curl -H "Authorization: Bearer bk_pk_YOUR_KEY" \
  https://bookendpartners.com/api/embed/v1/YOUR-SLUG
{
  "slug": "your-slug",
  "business": "Your Event Co",
  "city": "Cannon Beach",
  "state": "OR",
  "storefront": "https://your-slug.bookendpartners.com",
  "units": [
    {
      "name": "King Tide Lookout",
      "bedrooms": 3,
      "sleeps": 9,
      "walk_minutes": 12,
      "drive_minutes": null,
      "nightly_usd": 289,
      "photo": "https://…"
    }
  ]
}

bk_pk_… keys are publishable — they are read-only and scoped to one storefront, so they are safe in client-side code.

Is an email from bookendpartners.com genuine?

Bookend contacts event organisers from a small fixed set of mailboxes on its own domain. If you want to check one, every real sender address is published at https://bookendpartners.com/verify, along with the domain's SPF, DKIM and DMARC records. A genuine Bookend email never asks you for money, card or bank details, a password, or account access.

Contact

Bookend Partners — Atlanta, GA support@bookendpartners.com · 404-769-3232

About

Official install docs for the Bookend Partners stays widget and JSON API — bookendpartners.com

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors