Skip to main content
PATCH
/
v1
/
bookings
/
{id}
Error
A valid request URL is required to generate request examples
{
  "id": "a3f1d7d0-ef1d-4b2e-aad2-123456789abc",
  "product": {
    "id": "a3f1d7d0-ef1d-4b2e-aad2-123456789abc",
    "reference": "one-day-pass",
    "name": "One Day Pass",
    "description": "Full day access to the coworking space including all amenities, meeting rooms, and common areas. Valid from 9:00 AM to 6:00 PM.",
    "price": 2500,
    "type": "one_time",
    "category": "booking",
    "metadata": {
      "durationType": "daily",
      "durationValue": 1
    },
    "currency": "EUR",
    "spaces": [
      "a3f1d7d0-ef1d-4b2e-aad2-123456789abc",
      "b4e2d8e1-fg2e-5c3f-bbe3-234567890bcd"
    ]
  },
  "space": {
    "name": "Meeting Room - 4 people",
    "label": "meeting-room-4-people",
    "description": "Modern meeting room equipped with a whiteboard, video conferencing capabilities, and Google Cast for presentations. Perfect for small team meetings.",
    "capacity": 4,
    "type": "meeting_room",
    "venue": {
      "name": "Downtown Event Center",
      "address": {},
      "label": "downtown-event-center",
      "type": "coworking",
      "spaces": [
        "<array>"
      ],
      "openingHours": [
        {
          "day": "monday",
          "open": "09:00",
          "close": "18:00"
        },
        {
          "day": "tuesday",
          "open": "09:00",
          "close": "18:00"
        }
      ],
      "metadata": {
        "import": "calendarId",
        "googleCalendarId": "primary"
      },
      "medias": [
        "<array>"
      ]
    },
    "products": [
      {
        "id": "a3f1d7d0-ef1d-4b2e-aad2-123456789abc",
        "reference": "one-day-pass",
        "name": "One Day Pass",
        "description": "Full day access to the coworking space including all amenities, meeting rooms, and common areas. Valid from 9:00 AM to 6:00 PM.",
        "price": 2500,
        "type": "one_time",
        "category": "booking",
        "metadata": {
          "durationType": "daily",
          "durationValue": 1
        },
        "currency": "EUR",
        "spaces": [
          "a3f1d7d0-ef1d-4b2e-aad2-123456789abc",
          "b4e2d8e1-fg2e-5c3f-bbe3-234567890bcd"
        ]
      }
    ],
    "metadata": {
      "color": "#FF0000",
      "amenities": [
        "whiteboard",
        "projector",
        "wifi"
      ],
      "equipment": [
        "laptop",
        "monitor"
      ]
    },
    "totalBookings": 0
  },
  "status": "PENDING",
  "bookingDate": "2024-01-15T09:00:00.000Z",
  "customer": {
    "id": "a3f1d7d0-ef1d-4b2e-aad2-123456789abc",
    "type": "individual",
    "email": "[email protected]",
    "phone": "+33612345678",
    "name": "John Doe",
    "companyName": "Doe Industries",
    "siren": "732829320",
    "tvaNumber": "FR12732829320",
    "address": "10 Rue de Paris, 75001 Paris, France"
  },
  "slot": {
    "from": "2024-01-15T09:00:00.000Z",
    "to": "2024-01-15T17:00:00.000Z"
  },
  "additionalProducts": [
    {
      "id": "prod_123",
      "quantity": 2
    },
    {
      "id": "prod_456",
      "quantity": 1
    }
  ]
}

Authorizations

Authorization
string
header
required

OAuth2 authentication for Boseat API

Path Parameters

id
string
required

Unique identifier of the booking to update

Example:

"a3f1d7d0-ef1d-4b2e-aad2-123456789abc"

Body

application/json
email
string
required

Email address of the customer. Required for booking confirmation and will be used to send confirmation emails.

phone
string
required

Phone number of the customer in French format. Required for booking confirmation and customer support communications.

Example:

"+33612345678"

status
enum<string>
required

Desired status for the booking. Can be set to CONFIRMED to finalize the booking or CANCEL to cancel it. Only pending bookings can be updated.

Available options:
CANCEL,
CONFIRMED
Example:

"CONFIRMED"

name
string

Full name of the customer. Optional but recommended for personalized communications and booking records.

Example:

"John Doe"

additionalProducts
string[]

Array of additional product IDs to include with this booking. These are supplementary products or services (e.g., catering, equipment) that can be added to the main booking.

Example:
["prod_123", "prod_456"]
paymentEnabled
boolean

Whether to enable payment processing for this booking. If true and payment is required by organization settings, a Stripe checkout session will be created.

Example:

true

successUrl
object

URL where the user will be redirected after successful payment completion. Required if paymentEnabled is true.

Example:

"https://my-aix-coworking.boseat.com/bookings/success"

cancelUrl
object

URL where the user will be redirected if they cancel the payment process. Required if paymentEnabled is true.

Example:

"https://my-aix-coworking.boseat.com/bookings/cancel"

Response

Booking confirmed or updated successfully. If payment is enabled, check the Location header for the Stripe checkout URL.

id
string<uuid>
required

Unique identifier (UUID) of the booking.

Example:

"a3f1d7d0-ef1d-4b2e-aad2-123456789abc"

product
object
required

Product associated with this booking. Contains pricing information, duration rules, and booking conditions that apply to this reservation.

space
object
required

Space that has been reserved. Contains details about the physical location, capacity, and amenities available for this booking.

status
enum<string>
required

Current status of the booking. Possible values: PENDING (awaiting confirmation), CONFIRMED (confirmed and active), CANCEL (cancelled).

Available options:
RESERVED_15_MIN,
PENDING,
REFUNDED,
CANCEL,
CONFIRMED,
PAID
Example:

"PENDING"

bookingDate
string<date-time>
required

Date and time when the booking was created in the system. Format: ISO 8601 date-time.

Example:

"2024-01-15T09:00:00.000Z"

customer
object
required

Customer information for the person or entity who made the booking. Includes contact details and customer type.

slot
object
required

Time slot for the booking, specifying the exact start and end times when the space is reserved.

additionalProducts
object[]

Additional products or services included with this booking. These are supplementary items beyond the main product (e.g., catering, equipment rental, parking).

Example:
[
{ "id": "prod_123", "quantity": 2 },
{ "id": "prod_456", "quantity": 1 }
]