Update Booking

Updates an existing booking with new information.

Endpoint

PATCH /bookings/{id}

Authentication

Required: Authorization header with valid token

Path Parameters

ParameterTypeRequiredDescription
idstringYesBooking unique identifier

Request Body

All fields are optional. Only include the fields you want to update.

{
  "startDate": "2024-01-01T08:00:00Z",
  "endDate": "2024-01-10T17:00:00Z",
  "entityId": "uuid",
  "status": "IN_PROGRESS",
  "changePrice": true,
  "normalUsage": 10,
  "normalPrice": 100.00,
  "exceptionalUsagePrice": 150.00,
  "periodType": "CALENDAR_DAYS",
  "normalUsageType": "DAY",
  "externalId": "external-booking-123",
  "pickUpAddress": "123 Warehouse St, City",
  "deliveryAddress": "456 Construction Site, City",
  "selfPickUp": false,
  "quantity": 5.5,
  "additionalInformation": "Updated booking information",
  "billingStatus": "PARTIALLY_BILLED"
}

Fields descriptions see here

Response

BookingEntity Schema

Error

Error Schema

Example Usage

Update booking dates and status

curl -X PATCH "https://integration-api.ram.syniotec.com/master-data/v1/booking-management/bookings/123e4567-e89b-12d3-a456-426614174000" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "startDate": "2024-01-05T08:00:00Z",
    "endDate": "2024-01-15T17:00:00Z",
  }'