DeltaX Client REST HTTP API
  1. route
DeltaX Client REST HTTP API
  • Webhook Integration Documentation
  • trip
    • Get Trip by ID
      GET
    • Update Trip
      PUT
    • Create Incidence
      POST
    • List Trips
      GET
  • route
    • List Routes
      GET
    • Get Route by ID
      GET
    • List Warehouses
      GET
    • Get Warehouse by ID
      GET
    • List Window Availability
      GET
  • company
    • List Transport Companies
      GET
    • Get Transport Company by ID
      GET
  • fleet
    • List Transport Units
      GET
    • Get Transport Unit by ID
      GET
    • List Truckers
      GET
    • Get Trucker by ID
      GET
    • List Dollies
      GET
    • Get Dolly by ID
      GET
  • rates
    • List Rates
      GET
  • Schemas
    • Schemas
      • IncidenceCreate
      • TripUpdate
      • TripUpdateResponse
      • ClientTripUpdate
      • ClientIncidence
      • IncidenceCreateResponse
      • Trip
      • TripResponse
      • TripsListResponse
      • PaginationInfo
      • Route
      • RouteResponse
      • RoutesListResponse
      • Warehouse
      • WarehouseResponse
      • WarehousesListResponse
      • TransportCompany
      • TransportCompanyResponse
      • TransportCompaniesListResponse
      • TransportUnit
      • TransportUnitResponse
      • TransportUnitsListResponse
      • Trucker
      • TruckerResponse
      • TruckersListResponse
      • Dolly
      • DollyResponse
      • DolliesListResponse
      • WindowAvailability
      • WindowAvailabilityResponse
    • Response
      • Success
      • SuccessCreated
      • InternalServerError
      • BadRequest
      • NotFound
      • Unauthenticated
      • TripUpdateSuccess
      • IncidenceCreateSuccess
      • TripSuccess
      • TripsListSuccess
      • RouteSuccess
      • RoutesListSuccess
      • WarehouseSuccess
      • WarehousesListSuccess
      • TransportCompanySuccess
      • TransportCompaniesListSuccess
      • TransportUnitSuccess
      • TransportUnitsListSuccess
      • TruckerSuccess
      • TruckersListSuccess
      • DollySuccess
      • DolliesListSuccess
      • WindowAvailabilitySuccess
      • Unauthorized
  1. route

List Window Availability

GET
/windowAvailability
Retrieve window availability information with scheduled trips data for specified date range. Returns windows with their scheduled trips within the date range, ordered by window order ascending. Supports filtering by warehouse ObjectId and pagination.

Request

Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Query Params

Responses

🟢200OK
application/json
Window availability has been successfully retrieved with pagination
Body

🟠400Bad Request
🟠401Unauthorized
🟠403Forbidden
🟠404Not Found
🔴500Internal Server Error
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://fmsapi.deltax.la/clients/windowAvailability?warehouseId=507f1f77bcf86cd799439018&startDate=2024-01-15T00:00:00.000Z&endDate=2024-01-22T00:00:00.000Z&page=1&size=20' \
--header 'Authorization: Bearer <token>'
Response Response Example
200 - Success
{
    "message": "Window availability retrieved successfully",
    "data": {
        "windows": [
            {
                "_id": "507f1f77bcf86cd799439022",
                "order": 1,
                "weekDay": [
                    "Monday",
                    "Tuesday",
                    "Wednesday",
                    "Thursday",
                    "Friday"
                ],
                "startTime": "08:00",
                "endTime": "17:00",
                "durationMins": 540,
                "repetition": "weekly",
                "simpleLoad": true,
                "simpleLoadCount": 5,
                "simpleUnLoad": true,
                "simpleUnLoadCount": 3,
                "simpleLoadUnLoad": false,
                "simpleLoadUnLoadCount": 0,
                "simpleExpeditionTypes": "TRUCK",
                "fullLoad": true,
                "fullLoadCount": 2,
                "fullUnLoad": true,
                "fullUnLoadCount": 2,
                "fullLoadUnLoad": true,
                "fullLoadUnLoadCount": 1,
                "fullExpeditionTypes": "FULL_TRUCK",
                "scheduledTrips": [
                    {
                        "assignmentNumber": "0017228764",
                        "loadingDate": "2024-01-15T10:30:00.000Z"
                    },
                    {
                        "assignmentNumber": "0017228765",
                        "loadingDate": "2024-01-16T14:00:00.000Z"
                    }
                ]
            },
            {
                "_id": "507f1f77bcf86cd799439023",
                "order": 2,
                "weekDay": [
                    "Saturday"
                ],
                "startTime": "09:00",
                "endTime": "14:00",
                "durationMins": 300,
                "repetition": "weekly",
                "simpleLoad": true,
                "simpleLoadCount": 3,
                "simpleUnLoad": true,
                "simpleUnLoadCount": 2,
                "simpleLoadUnLoad": false,
                "simpleLoadUnLoadCount": 0,
                "simpleExpeditionTypes": "TRUCK",
                "fullLoad": false,
                "fullLoadCount": 0,
                "fullUnLoad": false,
                "fullUnLoadCount": 0,
                "fullLoadUnLoad": false,
                "fullLoadUnLoadCount": 0,
                "fullExpeditionTypes": null,
                "scheduledTrips": []
            }
        ],
        "pagination": {
            "page": 1,
            "size": 20,
            "totalWindows": 15,
            "totalPages": 1,
            "hasNextPage": false,
            "hasPreviousPage": false
        }
    }
}
Modified at 2025-11-21 22:26:35
Previous
Get Warehouse by ID
Next
List Transport Companies
Built with