Renta Docs

Storefront Endpoints

All public-facing endpoints available with publishable keys.

Complete reference for all storefront endpoints. These work with publishable keys (renta_pk_...) and are safe for client-side use.

Endpoint Summary

MethodEndpointDescription
GET/v1/storefront/shopGet shop profile and locations
GET/v1/storefront/inventoryBrowse available items with pricing
POST/v1/storefront/checkoutsHold items for 10 minutes and create the PaymentIntent
POST/v1/storefront/checkouts/{booking_id}/confirmConfirm the paid hold as a booking
POST/v1/storefront/bookRetired: returns 410 endpoint_retired
POST/api/storefront/auth/requestRequest customer auth code
POST/api/storefront/auth/verifyVerify auth code
GET/api/sign/templateGet waiver for signing (canonical)
GET/api/storefront/waiver-templateSame as above (legacy delegator)
POST/api/sign/waiverSave a waiver signature for a booking (bookingId + its signed token) or for a published checkout Waiver step (checkoutStepId, sent to /api/sign/waiver?checkoutStep=1). A request with neither returns 410 WAIVER_SIGN_NEEDS_BOOKING_OR_STEP (canonical)
POST/api/storefront/waiver/signSame as above (legacy delegator)
POST/api/storefront/payment-intentCreate payment intent (storefront flow)

Endpoints under /v1/ are the public API. Endpoints under /api/storefront/ are internal storefront routes used by the hosted booking flow.

GET /v1/storefront/shop

Returns the public shop profile including name, branding, and pickup locations.

See Storefront API for full details.

GET /v1/storefront/inventory

Returns available fleet items with calculated pricing for a date range.

Required query parameters: pickup_date, return_date

See Storefront API for full details.

POST /v1/storefront/checkouts and /confirm

Your own checkout: hold the items, take the card with Stripe.js, then confirm. Browser calls are allowed only from the shop's own verified domains and its Renta storefront.

See Storefront Checkouts for full details.

POST /v1/storefront/book

Retired. It no longer creates a booking: it took the payment but never recorded it on the booking, so it now answers 410 endpoint_retired and releases a fresh (under 24 hours old), unrecorded payment intent that belongs to your shop. Take bookings with the booking widget.

See Storefront API for details.

POST /api/storefront/auth/request

Sends a one-time authentication code to the customer's email. Used for returning customer login during the booking flow.

Body:

{
  "email": "john@example.com"
}

Response:

{
  "success": true,
  "message": "Verification code sent to john@example.com"
}

POST /api/storefront/auth/verify

Verifies the one-time code and returns a session token.

Body:

{
  "email": "john@example.com",
  "code": "123456"
}

Response:

{
  "success": true,
  "customer_id": "cust_abc123",
  "name": "John Doe",
  "email": "john@example.com"
}

GET /api/sign/template

Returns the waiver template that customers need to sign during the booking process. The legacy route GET /api/storefront/waiver-template delegates to this handler unchanged.

Response:

{
  "template": {
    "id": "wt_liability",
    "name": "Liability Waiver",
    "content": "<h2>Release of Liability</h2><p>...</p>",
    "type": "per_rider"
  }
}

POST /api/storefront/payment-intent

Creates a Stripe payment intent for the storefront booking flow.

Body:

{
  "amount": 10800,
  "booking_details": {
    "pickup_date": "2026-07-01T09:00:00Z",
    "return_date": "2026-07-03T17:00:00Z",
    "line_items": [{"fleet_item_id": "fi_abc123"}]
  }
}

Response:

{
  "client_secret": "pi_stripe_abc123_secret_xyz",
  "payment_intent_id": "pi_stripe_abc123",
  "amount": 10800
}
Storefront Endpoints | Renta Docs