Get Bookings

Endpoint

GET /bookings

Authentication

Required: Authorization header with valid token

Query Parameters

ParameterTypeRequiredDescriptionExample
contractIdstringNoFilter by contract ID550e8400-e29b-41d4-a716-446655440000
entityIdstringNoFilter by entity ID (equipment/inventory)123e4567-e89b-12d3-a456-426614174000
searchstringNoSearch in contract title and contract number (case-insensitive)Contract-2024
statusesstringNoFilter by booking status (comma-separated: RESERVED, PLANNED, IN_PROGRESS, COMPLETED)RESERVED,IN_PROGRESS
clientIdsstringNoFilter by client IDs (comma-separated)clientId1,clientId2
bookingIdsstringNoFilter by specific booking IDs (comma-separated)uuid1,uuid2
startDatedate-timeNoFilter bookings that start on or after this date2024-01-01T00:00:00Z
endDatedate-timeNoFilter entities that end on or before this date2024-12-31T23:59:59Z
startDateGtedate-timeNoFilter entities where startDate is more than or equal to this date2024-06-01T00:00:00Z
startDateLtedate-timeNoFilter entities where startDate is less than or equal to this date2024-06-01T00:00:00Z
endDateGtedate-timeNoFilter entities where endDate is greater than or equal to this date2024-06-01T00:00:00Z
endDateLtedate-timeNoFilter entities where endDate is less than or equal to this date2024-06-01T00:00:00Z
overlapStartDatedate-timeNoStart of overlap range. Use together with overlapEndDate2024-04-01T00:00:00Z
overlapEndDatedate-timeNoEnd of overlap range. Use together with overlapStartDate2024-04-30T23:59:59Z
invoiceStartDatedate-timeNoBilling period start date for invoice filtering2024-01-01T00:00:00Z
invoiceEndDatedate-timeNoBilling period end date for invoice filtering2024-03-31T23:59:59Z
updatedAfterdate-timeNoFilter bookings updated on or after this date2024-01-01T00:00:00Z
warehouseIdstringNoFilter bookings that have this warehouseId in their warehouseDistribution with quantity > 0123e4567-e89b-12d3-a456-426614174000
hasFinalReturnbooleanNoFilter entities by whether all warehouse returns are partial.false
sortBystringNoField to sort by (contractName, startDate, endDate, updatedAt)updatedAt
sortDirectionstringNoSort direction (ASC or DESC, default: ASC)DESC
pagenumberNoPage number (default: 1)1
limitnumberNoItems per page (default: 20)20
expandstringNoExpand entity with passed comma separated relation entitiesreleases,contract,attachedProducts

Response

Success (200)

{
  "content": [
    "BookingEntity"
  ],
  "total": "number"
}

Response Field Descriptions:

  • content - Array of booking objects (BookingEntity Schema)
  • total - Total number of bookings matching the query criteria

Error

See Error Schema documentation

Example Usage

Bash

curl -X GET "https://integration-api.ram.syniotec.com/master-data/v1/booking-management/bookings" \
 -H "Authorization: Bearer YOUR_TOKEN"