---
title: "Get availabilities of an on-demand service."
method: POST
path: "/availabilities/on-demand-services"
tags: ["Availabilities", "On-Demand Services"]
---

# Get availabilities of an on-demand service.

`POST /availabilities/on-demand-services`

## Request

- Base URL: `https://s3p-osdm.cloud.sqills.com`
- URL: `https://s3p-osdm.cloud.sqills.com/availabilities/on-demand-services`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://login.microsoftonline.com/tbd`

Get availabilities of an on-demand services.

## Query parameters

- `contextId` string, required
- `contextType` 'OFFER' | 'BOOKING', required
- `resourceId` string, required
- `resourceType` 'FARE' | 'RESERVATION', required

## Headers

- `Requestor` string
- `Accept-Language` string
- `traceparent` string
- `tracestate` string

## Request body

- ContinuousServiceAvailabilityScope: search parameter so get available pick-up places for continuous on-demand services.
  - `geoLocation` GeoPosition2: WGS84 coordinates position. Provided by OJP.
    - `longitude` number, double, required: Longitude from Greenwich Meridian. -180 (West) to +180 (East). Decimal degrees. eg 2.356.
    - `latitude` number, double, required: Latitude from equator. -90 (South) to +90 (North). Decimal degrees. e.g. 56.356.
  - `vehicleType` string: [On-Demand Vehicle Type Code List](https://osdm.io/spec/catalog-of-code-lists/#OnDemandVehicleType)

## Response `200`

pick up places

- ContinuousServicesAvailabilityResponse
  - `pickUpPlaces` ContinuousServicePickUpPlace2[], required: list of pick-up places for on-demand vehicles. The list might include more or other pick up places than mentioned originally in the trip specification.
    - `id` string: id of the pick-up place
    - `description` string, required: description of the pick-up place
    - `name` string: name of the pick-up place
    - `accessDescription` string: description on how to access the on-demand vehicle
    - `geoPosition` GeoPosition2, required: WGS84 coordinates position. Provided by OJP.
      - `longitude` number, double, required: Longitude from Greenwich Meridian. -180 (West) to +180 (East). Decimal degrees. eg 2.356.
      - `latitude` number, double, required: Latitude from equator. -90 (South) to +90 (North). Decimal degrees. e.g. 56.356.
    - `availableVehicles` ContinuousServiceVehicleAvailability2[], required
      - `vehicleDescription` string, required
      - `vehicleType` string, required: [On-Demand Vehicle Type Code List](https://osdm.io/spec/catalog-of-code-lists/#OnDemandVehicleType)
      - `availableVehicles` integer, required: number of available vehicles
    - `preAllocationTimeLimit` string, duration: Duration for which the vehicle can be blocked until the usage starts.
    - `processIndication` ContinuousServiceProcessIndication2[]: Machine readable indications on how the on-demand process should be handled.
    - `estimatedVehicleArrivalAtPickUp` string, date-time: Time until when the vehicle is expected to arrive at the pick-up place (taxi,..)
    - `estimatedUserArrivalAtPickUp` string, date-time: Time until when the user of the service is expected to arrive at the pick-up place.

## Other responses

- `400`: Bad Request (400)
- `401`: Unauthorized (401)
- `403`: Forbidden (403)
- `404`: Not Found (404)
- `415`: Unsupported Media Type (415)
- `500`: Internal Server Error (500)
- `501`: Not Implemented (501)
- `503`: Service Unavailable (503)
- `default`: default error response

## Changes

- **2026-10-22** `4b5d9b1df9c9`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/unioninternationalcheminsdefer/apis/uic-90918-10-osdm/changes/availabilities/on-demand-services/post.md)

---

[API](https://skmtc.dev/unioninternationalcheminsdefer/apis/uic-90918-10-osdm.md) - [All operations](https://skmtc.dev/unioninternationalcheminsdefer/apis/uic-90918-10-osdm/llms.txt) - [OpenAPI document](https://skmtc.dev/unioninternationalcheminsdefer/apis/uic-90918-10-osdm/revisions/f2e631e1357c?raw)
