Aller au contenu

Effectuer le check-in d'une réservation confirmée

POST
/v1/reservations/{id}/check-in
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": 0, "currency": "EUR" }'
id
required
string format: uuid

Identifiant de la réservation

Media type application/json
object
unitId

Unité physique assignée. OPTIONNELLE (G2) : dérivée de la pré-attribution active si absente ; fournie = override.

string format: uuid
headcountAdults
integer
default: 1 >= 1
headcountChildren
integer
0
currency
string
default: EUR
Allowed values: EUR GBP

Check-in effectué

Media type application/json
object
data
required
object
stayId
required
string format: uuid
folioId
required
string format: uuid
Example generated
{
"data": {
"stayId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"folioId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
}
}

Réservation non confirmée ou déjà checked-in

Media type application/json
object
code
required

Code machine de l’erreur

string
message
required

Message lisible

string
origin

Origine domaine de l’erreur (optionnel)

object
boundedContext
string
module
string
status
required
integer
traceId
required

Identifiant de corrélation pour le support

string
Example
{
"code": "RESERVATION_NOT_FOUND",
"message": "Réservation introuvable",
"status": 404
}