Slot

This page describes the Slot type.

Fields

Required fields

Property

Expected Type

Description

type

Text

Must always be present and set to "type": "Slot"

duration

Duration

The duration of the slot given in [ISO8601] format.

Example

"duration": "PT1H"

facilityUse

URL

URI to the FacilityUse that has this offer

Example

"facilityUse": "https://example.com/facility-use/1"

offers

Array of Offer

An array of schema:Offer that include the price of booking.

Example

"offers": { "type": "Offer", "identifier": "OX-AD", "name": "Adult", "price": 7.5, "priceCurrency": "GBP", "url": "https://profile.everyoneactive.com/booking?Site=0140&Activities=1402CBP20150217&Culture=en-GB" }

remainingUses

Integer

The remaining available courts or pitches at this time. Must be 0 or 1 for an IndividualFacilityUse.

Example

"remainingUses": 5

startDate

DateTime - or - Date

The start date and time of the slot. Can be specified as a schema:Date or schema:DateTime

Example

"startDate": "2018-01-27T12:00:00Z"

Required options

While these properties are marked as optional/recommended in the Modelling Specification, one of these must be provided when surfacing a slot through an RPDE feed to ensure that the slots can be processed correctly by data consumers.

Property

Expected Type

Description

id

URL

A unique url based identifier for the record

Example

"id": "https://example.com/slot/12345"

identifier

Text - or - PropertyValue - or - Array of PropertyValue - or - Integer

A local non-URI identifier for the resource

Example

"identifier": "SB1234"

Property

Expected Type

Description

id

URL

A unique url based identifier for the record

Example

"id": "https://example.com/slot/12345"

maximumUses

Integer

The maximum available courts or pitches at this time. Must be 0 or 1 for an IndividualFacilityUse.

Example

"maximumUses": 16

Optional fields

Property

Expected Type

Description

endDate

DateTime - or - Date

The end date and time of the slot. Can be specified as a schema:Date or schema:DateTime

It is recommended that publishers provide either an schema:endDate or a schema:duration for an slot.

Example

"endDate": "2018-01-27T12:00:00Z"

identifier

Text - or - PropertyValue - or - Array of PropertyValue - or - Integer

A local non-URI identifier for the resource

Example

"identifier": "SB1234"

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution License (CC-BY V4.0), and code samples are licensed under the MIT License, for anyone to access, use and share; using attribution "OpenActive".