Effectuer le check-in d'une réservation confirmée
const url = 'https://example.com/v1/reservations/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/check-in';const options = { method: 'POST', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"unitId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","headcountAdults":1,"headcountChildren":1,"childrenAges":[1],"headcountReason":"example","currency":"EUR"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/v1/reservations/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/check-in \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "unitId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "headcountAdults": 1, "headcountChildren": 1, "childrenAges": [ 1 ], "headcountReason": "example", "currency": "EUR" }'Authorizations
Section intitulée « Authorizations »Parameters
Section intitulée « Parameters »Path Parameters
Section intitulée « Path Parameters »Identifiant de la réservation
Request Body required
Section intitulée « Request Body required »object
Unité physique assignée. OPTIONNELLE (G2) : dérivée de la pré-attribution active si absente ; fournie = override.
CORRECTION d’occupation constatée à l’arrivée (P5) — optionnel, avec headcountChildren. Absent = headcount dérivé du pax annoncé (bébés exclus). Journalisée NF203.
CORRECTION d’occupation constatée à l’arrivée (P5) — optionnel, avec headcountAdults.
Âges des enfants/bébés CONSTATÉS (B4) — avec la correction ; le serveur classe bébé/enfant (bande accommodation) et persiste les âges.
Motif de la correction (NF203). Optionnel.
DÉPRÉCIÉ : la devise du folio est DÉRIVÉE du tarif figé. Si fournie, doit l’égaler (400 CHECK_IN_CURRENCY_MISMATCH sinon).
Responses
Section intitulée « Responses »Check-in effectué
object
object
B4 : delta d’occupation constaté à l’arrivée (per_person) — TTC string bigint-safe, posted = recette postée au folio.
object
Example generated
{ "data": { "stayId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "folioId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "headcountDelta": { "ttcCents": "example", "posted": true, "reason": "example" } }}Réservation non confirmée ou déjà checked-in
object
Code machine de l’erreur
Message lisible
Origine domaine de l’erreur (optionnel)
object
Identifiant de corrélation pour le support
Example
{ "code": "RESERVATION_NOT_FOUND", "message": "Réservation introuvable", "status": 404}