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 confirmed bookings (and pending ones 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/voucher
curl -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

CodeMeaning
404 not_foundUnknown reference
422 invalid_stateBooking not confirmed (still pending) or cancelled

Was this page helpful?