BulkCreateHotelPassesDto
webhookUrlstring
URL de webhook facultative, appelée à la fin de l'opération. En-têtes d'authentification : ajoutez #headers=Authorization:Bearer%20token à l'URL.
Exemple :
https://example.com/webhook#headers=Authorization:Bearer%20tokenforceSyncboolean
Exécute l'opération de manière synchrone (moins de 1 000 éléments). Si la valeur est true et que la requête contient 1 000 éléments ou plus, elle est rejetée.
Valeur par défaut :
falseitems object[]obligatoire
Liste des passes d'hôtel à créer.
Valeurs possibles : >= 1, <= 5000
Array [
checkinstring<date-time>obligatoire
checkoutstring<date-time>obligatoire
additionalBenefitsstring[]
roomNumberstring
roomCodestring
backFieldNamestring
backFieldContentstring
firstNamestringobligatoire
lastNamestringobligatoire
emailstring<email>obligatoire
phoneNumberstring
barcodestring
]
BulkCreateHotelPassesDto
{
"webhookUrl": "https://example.com/webhook#headers=Authorization:Bearer%20token",
"forceSync": false,
"items": [
{
"checkin": "2024-07-29T15:51:28.071Z",
"checkout": "2024-07-29T15:51:28.071Z",
"additionalBenefits": [
"string"
],
"roomNumber": "string",
"roomCode": "string",
"backFieldName": "string",
"backFieldContent": "string",
"firstName": "string",
"lastName": "string",
"email": "user@example.com",
"phoneNumber": "string",
"barcode": "string"
}
]
}