Actualizar reserva

Changed on
put/reservations/reservation/{reservationId}

Request

  • Base URL
    https://api.service.getjusto.com/v3
  • Auth
    none declared

Path parameters

reservationIdstring required

Identificador único de reserva

Example:res-abc123def456

Request body

startsAtstring date-time

Fecha de inicio de la reserva

partySizenumber

Tamaño de la reserva

specialRequestsstring

Peticiones especiales

specialOccasion'birthday' | 'anniversary' | 'date' | 'business' | 'celebration'

¿Es una ocasión especial?

Example request

{
  "startsAt": "2020-01-01T00:00:00.000Z",
  "partySize": 2,
  "specialRequests": "Quiero una mesa cerca de la puerta",
  "specialOccasion": "birthday"
}

Response

The OpenAPI spec

successboolean

Example response

{
  "success": true,
  "data": {
    "_id": "res-abc123def456",
    "clientToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9",
    "code": "RES2024-001234",
    "createdAt": "2024-01-15T10:30:00.000Z",
    "startsAt": "2024-01-15T19:30:00.000Z",
    "endsAt": "2024-01-15T21:30:00.000Z",
    "completedAt": "2024-01-15T21:45:00.000Z",
    "durationMinutes": 120,
    "partySize": 4,
    "websiteId": "w-restaurant123",
    "storeId": "s-downtown-branch",
    "countryCode": "US",
    "sectorId": "rsec-main-dining",
    "tableIds": [
      "rtbl-table-12",
      "rtbl-table-13"
    ],
    "royaltyClientId": "rty-cli-johndoe123",
    "tabId": "tab-active-session-789",
    "clientData": {
      "email": "john.doe@example.com",
      "firstName": "John",
      "lastName": "Doe",
      "phone": "+1-555-123-4567",
      "isOver18": true
    },
    "userId": "u-existing-user-456",
    "specialRequests": "Please prepare a birthday cake. Allergic to nuts.",
    "specialOccasion": "birthday",
    "cancelledAt": "2024-01-15T16:00:00.000Z",
    "cancelReason": "Customer requested to change date",
    "modifiedAt": "2024-01-15T11:45:00.000Z",
    "confirmedAt": "2024-01-15T11:45:00.000Z",
    "cancelledByStoreAt": "2024-01-15T15:30:00.000Z",
    "waitingListAssignedAt": "2024-01-15T10:45:00.000Z",
    "showStatus": "show",
    "confirmedByClientAt": "2024-01-15T11:30:00.000Z",
    "clientSaidItsLateAt": "2024-01-15T19:15:00.000Z",
    "sendReminderAt": "2024-01-15T17:30:00.000Z",
    "reminderSentAt": "2024-01-15T17:30:15.000Z",
    "source": "website",
    "referrer": "api:e2e",
    "marketplaceAppId": "marketplace-app-123",
    "sourceUserAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36",
    "evaluation": {
      "createdById": "u-existing-user-456",
      "createdByName": "John Doe",
      "createdByEmail": "john.doe@example.com",
      "evaluation": 5,
      "comments": "Excellent service and food quality. Will definitely come back!",
      "createdAt": "2024-01-15T22:00:00.000Z"
    }
  }
}

Changes