Build Booking Link
build_booking_linkRead-onlyIdempotent
Build the link a visitor opens to book a permit: https://madeira.fun/hiking/<seo_slug>?date=YYYY-MM-DD opens that date's start times on the trail page. Optional adults (visitors aged 13 or over who are not Madeira residents) and children (aged 12 or under, no fee) preset the party; lang sets the page language. The link books and stores nothing. On the page the visitor picks a start time and presses Reserve: madeira.fun submits the government reservation for them and emails a PayPay link to pay the government fee.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | The hike date (YYYY-MM-DD, a Madeira calendar date). | |
| lang | No | Page language. | |
| trail | Yes | The trail: its seo_slug from list_permit_trails (preferred), a code such as "PR 18", "PR18" or "PS PR1", or a name such as "Levada do Rei". Accents are ignored. | |
| adults | No | Visitors aged 13 or over who are not Madeira residents (they pay the government fee). | |
| children | No | Visitors aged 12 or under who are not Madeira residents (no fee, still part of the reservation). |