Partner API
Reservations

Create reservation

Create a reservation for a class with either an existing client or new client

post/{partnerId}/classes/{classId}/reservations

Request

  • Base URL: https://us-central1-sutra-prod.cloudfunctions.net/partnerApi/v0
  • URL: https://us-central1-sutra-prod.cloudfunctions.net/partnerApi/v0/{partnerId}/classes/{classId}/reservations
  • Auth: one of:
    • API key in header X-API-Key
    • HTTP bearer

Path parameters

partnerIdstring required
Example:partner123

Partner identifier

classIdstring required
Example:class123

Class identifier

Request body

OR

Example request

{
  "clientId": "client123",
  "purchaseId": "purchase123"
}

Response

Reservation created successfully

Example response

{
  "item": {
    "id": "reservation123",
    "client_id": "client123",
    "class_id": "class123",
    "client": {
      "first_name": "John",
      "last_name": "Doe",
      "email": "john@example.com",
      "phone": "+1234567890"
    },
    "status": "BOOKED",
    "created_at": "2024-03-20T12:00:00Z",
    "updated_at": "2024-03-20T12:00:00Z",
    "spot_id": "spot1",
    "spot_name": "Spot 1"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.