Building reports

Buy a building's report

Starts a Stripe Checkout for one building's report, at its final price (tax included), without an account. Sold only for a building whose public page is indexable (enough register facts) and only while Stripe takes live charges. The buyer must ask for immediate delivery and accept losing the right of withdrawal on delivery, and accept the terms (consent). After paying, Checkout returns to the report's page in the app; when abandoned, to returnPath on baseray.ai. Limited per visitor (the website names the visitor).

post/public/building-reports/checkout

Request

  • Base URL: https://api.baseray.ai/v1
  • URL: https://api.baseray.ai/v1/public/building-reports/checkout
  • Auth: none required

Request body

buildingIdstring uuid required

The building's baseray id.

locale'en' | 'ro' | 'cs' | 'da' required

The building page's language: Checkout's and the delivery email's.

returnPathstring required

The building's page on baseray.ai in that language, where an abandoned Checkout returns: /building/, /ro/cladire/, /cs/budova/ or /da/bygning/, then an optional slug and the building's id.

analyticsAnonymousIdstring nullable

The visit's product analytics anonymous id (letters, digits, dashes, up to 64); dropped in another shape.

analyticsSessionIdstring nullable

The visit's product analytics session id (letters, digits, dashes, up to 64); dropped in another shape. With both ids, the report's link carries them (br_ph), so its page continues the visit.

Response

The Checkout to send the buyer to.

checkoutUrlstring uri required

The Stripe Checkout page to send the buyer to; it expires after an hour.

Example response

{
  "checkoutUrl": "https://checkout.stripe.com/c/pay/cs_live_a1B2c3"
}

Changes

No recorded changes to this operation across all 1 revision of this API.