Developers & agents

A small, public API — no key needed — so an assistant can help someone find a book and hand them a checkout link. The person always pays on Stripe's own page.

Machine-readable

Endpoints

  • GET https://cozybee-assets.s3.eu-west-1.amazonaws.com/data/products.json — every book: slug, title, options, price (the cheapest variant, VAT included) and priceModifiers for the others.
  • GET https://cozybee-assets.s3.eu-west-1.amazonaws.com/data/plans.json — the Book Club plans.
  • POST https://sewo5uke3rdljcpp4osiduwpqm0hjfqm.lambda-url.eu-west-1.on.aws/personalization — the child's name, age, language, dedication, notes and an optional photo; returns an id to put on the cart item.
  • POST https://sewo5uke3rdljcpp4osiduwpqm0hjfqm.lambda-url.eu-west-1.on.aws/checkout — a cart (items: [{slug, options, qty, personalizationId}]); returns a Stripe Checkout url. Stripe's price is charged, whatever the request says.
  • GET https://sewo5uke3rdljcpp4osiduwpqm0hjfqm.lambda-url.eu-west-1.on.aws/health — status.

Example

curl -X POST https://sewo5uke3rdljcpp4osiduwpqm0hjfqm.lambda-url.eu-west-1.on.aws/checkout \
  -H "content-type: application/json" \
  -d '{"items":[{"slug":"personalized-dinosaur-storybook","options":{"Cover Type":"Hardcover","Size":"20x20 cm / 8x8\" inc"},"qty":1}]}'
# → {"url":"https://checkout.stripe.com/c/pay/cs_live_..."}

Please

  • Only send a child's photo with their parent's consent — see our privacy policy.
  • Account endpoints (orders, saved address, previews) need the person to sign in themselves — see auth.md.
  • Questions: orders@cozybeestudio.com.