Booking

Retrieves the collection of Booking resources.

Retrieves the collection of Booking resources.

get/bookings

Request

  • Base URL: https://api.spash.com
  • URL: https://api.spash.com/bookings
  • Auth: one of:
    • API key in header Authorization
    • HTTP bearer

Query parameters

pageinteger

The collection page number

itemsPerPageinteger

The number of items per page

paginationboolean

Enable or disable pagination

statusstring
status[]string[]
referencestring
reference[]string[]
idinteger
id[]integer[]
competition.sportCenter.idinteger
competition.sportCenter.id[]integer[]
competition.idinteger
competition.id[]integer[]
order[status]'asc' | 'desc'
order[createdAt]'asc' | 'desc'
order[updatedAt]'asc' | 'desc'
createdAt[before]string
createdAt[strictly_before]string
createdAt[after]string
createdAt[strictly_after]string
updatedAt[before]string
updatedAt[strictly_before]string
updatedAt[after]string
updatedAt[strictly_after]string

Response

Booking collection

idinteger
status'created' | 'payment_success' | 'payment_error'
validationType'manual' | 'stripe' nullable
createdAtstring date-time
updatedAtstring date-time
referencestring

Example response

[
  {
    "status": "created",
    "player": {
      "createdAt": "CURRENT_TIMESTAMP",
      "updatedAt": "CURRENT_TIMESTAMP"
    },
    "competition": {
      "sessionDuration": 3000,
      "breakDuration": 300,
      "status": "not_played",
      "sportCenter": {
        "coordinates": [
          0,
          0
        ],
        "visible": true,
        "timeZone": "Europe/Paris",
        "durationChoices": [
          3600,
          5400,
          7200
        ],
        "language": "en",
        "distanceUnite": "km",
        "country": {
          "currency": "EUR"
        },
        "tags": [
          {
            "createdAt": "CURRENT_TIMESTAMP",
            "updatedAt": "CURRENT_TIMESTAMP"
          }
        ],
        "createdAt": "CURRENT_TIMESTAMP",
        "updatedAt": "CURRENT_TIMESTAMP"
      },
      "createdAt": "CURRENT_TIMESTAMP",
      "updatedAt": "CURRENT_TIMESTAMP"
    },
    "team": {
      "primaryColor": "#FFFFFF",
      "secondaryColor": "#FFFFFF",
      "createdAt": "CURRENT_TIMESTAMP",
      "updatedAt": "CURRENT_TIMESTAMP"
    },
    "createdAt": "CURRENT_TIMESTAMP",
    "updatedAt": "CURRENT_TIMESTAMP"
  }
]

Changes

No recorded changes to this operation across all 1 revision of this API.