Voucher
Fournit le voucher de la réservation — le document à présenter à l'hôtel.
GET/v1/{code}/bookings/{ref}/voucher
Requête
Paramètres d'URL
- Name
ref- Type
- string
- Description
Référence passerelle de la réservation (ex.
BPG-2026-000123).
Comportement
- Disponible pour les réservations
confirmed(etpendingune fois confirmées). - La réponse JSON/XML contient une URL signée, temporaire (valide 24 h) — téléchargez le PDF sans délai ou régénérez l'URL à la volée.
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"
Réponse
{
"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=exemple",
"expiresAt": "2026-11-14T10:20:00+01:00"
}
Erreurs
| Code | Signification |
|---|---|
404 not_found | Référence inconnue |
422 invalid_state | Réservation non confirmée (encore pending) ou annulée |