đŸœïž Restomax OnHero Webhook Tester

(SMS envoyés normalement)

🌐 Server Selection

Current: http://127.0.0.1:5000

API Endpoint Tests

📅 Get Available Slots

💡 Number of guests (1-20)
💡 Phone number is required. Format: +32XXXXXXXXX or 0XXXXXXXXX (auto-converted to +32)

đŸ‘€ Customer Handling (Lookup & Creation)

The backend automatically searches for an existing customer by phone before creating a reservation. If no customer is found, it creates a new customer and links the reservation to that customer.

Lookup example (server → Restomax):
GET https://backoffice.restomax.com/api/v3/Public/Customers?PhoneNumber=%2B32487624612
Creation example (server → Restomax):
POST https://backoffice.restomax.com/api/v3/Public/Customers
Notes:
- If no email is provided for the reservation, the backend uses superresto@superresto.com.
- If a new customer is created without an email, the backend uses superresto@superresto.com.
- Phone numbers starting with 0 are auto-formatted to +32.
- Base URL can differ if RESTOMAX_BASE_URL is overridden in the server environment.

To test the lookup, use the "Search Customer by Phone" button above. To test creation, use "Create Customer" or submit a reservation with a new phone number that does not exist in Restomax.

📝 Quick Reservation Test

💡 ExĂ©cute un lookup + crĂ©ation via l’API avant la rĂ©servation (utile pour debug).

🔄 Test Alternative Slots Workflow

This section tests the workflow when a reservation fails and the system searches for alternative slots over a 6-day period (requested day + 5 days).

💡 Test Tips:
  • Choose a time that's likely to be fully booked (e.g., Saturday evening at 20:00)
  • The system will search for availability over 6 days (requested day + 5 days)
  • Response shows a condensed view with all available dates and their time slots
  • Slots with "Unknown" times are automatically filtered out

🔎 RĂ©cupĂ©rer RĂ©servation(s)

POST /webhook/reservations/get
Avec date → tous statuts. Sans date → exclut declined/cancelled.
Au moins un champ est requis. Sans téléphone, la recherche se fait par nom/date/heure.

Optionnel — sans prĂ©fixe, 0 ou +32 — normalisĂ© automatiquement
Laisser vide pour toutes les réservations actives
Filtre sur l'heure de réservation
Recherche insensible Ă  la casse
Recherche insensible Ă  la casse

✏ Modifier une RĂ©servation

PUT /Bookings/Reservations/{uid}
Envoyer uniquement les champs à modifier. Le middleware récupÚre la résa existante, merge et renvoie à Restomax.

đŸ‘€ Modifier les infos client (optionnel)
Payload qui sera envoyé :
{}

đŸš« Annuler une RĂ©servation

POST /Bookings/Reservations/{uid}/cancel
RécupÚre la réservation, met le statut à canceled et envoie la mise à jour à Restomax.

💬 Configuration SMS (D7 Networks)

Un SMS de confirmation est envoyé automatiquement au client aprÚs chaque réservation confirmée par Restomax. Les modifications ici sont appliquées immédiatement sans redémarrer le serveur.

La clé actuelle est masquée. Saisissez une nouvelle valeur pour la remplacer.
Max 11 caractÚres alphanumériques.
Variables disponibles : {date} · {time} · {party_size} · {guest_name} · {restaurant_name}
MĂȘmes variables disponibles que le template de confirmation.

đŸ“± Envoyer un SMS de test

🔧 Full OnHero Webhook Payload Test

Processing...