Voucher
Provides the booking voucher — the document to present at the hotel.
GET/v1/{code}/bookings/{ref}/voucher
Request
URL parameters
- Name
ref- Type
- string
- Description
Gateway reference of the booking (e.g.
BPG-2026-000123).
Behaviour
- Available for
confirmedbookings (andpendingones once confirmed). - The JSON/XML response contains a signed, temporary URL (valid 24 h) — download the PDF without delay, or regenerate the URL on the fly.
GET
/v1/1000/bookings/BPG-2026-000123/vouchercurl -s "https://partners.bravebooking.net/v1/1000/bookings/BPG-2026-000123/voucher" \
-H "X-Api-Key: $API_KEY" \
-H "X-Timestamp: $TIMESTAMP" \
-H "X-Signature: $SIGNATURE" \
-H "Accept: application/json"
Response
{
"reference": "BPG-2026-000123",
"status": "confirmed",
"format": "pdf",
"voucherUrl": "https://partners.bravebooking.net/vouchers/BPG-2026-000123.pdf?expires=2026-11-14T10%3A20%3A00%2B01%3A00&signature=example",
"expiresAt": "2026-11-14T10:20:00+01:00"
}
Errors
| Code | Meaning |
|---|---|
404 not_found | Unknown reference |
422 invalid_state | Booking not confirmed (still pending) or cancelled |