Get activity bookings

GET /1/activities/{id}/bookings

Get activity bookings

Path parameters

  • id string Required

    The activity id.

Responses

  • 200 application/json

    The bookings for this activity.

    Hide response attribute Show response attribute object
    • bookings array[object]
      Hide bookings attributes Show bookings attributes object
      • id string Required
      • user object Required
        Hide user attributes Show user attributes object
        • id string Required
        • nickname string Required
        • fullName string
        • email string Required
        • language string Required
        • startDate string Required
        • imageUrl string
        • waitingListValue number Required
        • notificationsEnabled boolean Required
        • notifyDaysBefore array[integer] Required
        • private boolean Required
        • yourFriendship object
          Hide yourFriendship attributes Show yourFriendship attributes object
          • id string Required
          • status string Required
          • date string Required
          • muted boolean
        • theirFriendship object
          Hide theirFriendship attributes Show theirFriendship attributes object
          • id string Required
          • status string Required
          • date string Required
          • muted boolean
      • activity object Required
        Hide activity attributes Show activity attributes object
        • id string Required
        • name string Required
        • date string Required
        • timeZoneId string Required
        • priceInCents integer
        • currency string
        • location string Required
        • refundThresholdInSeconds integer
        • address object
          Hide address attributes Show address attributes object
          • name string
          • addressLine1 string
          • postalCode string
          • city string Required
          • countryCode string Required
          • latitude number Required
          • longitude number Required
        • showOnMap boolean
        • organizer object Required
          Hide organizer attributes Show organizer attributes object
          • id string Required
          • nickname string Required
          • fullName string
          • email string Required
          • language string Required
          • startDate string Required
          • imageUrl string
          • waitingListValue number Required
          • notificationsEnabled boolean Required
          • notifyDaysBefore array[integer] Required
          • private boolean Required
          • yourFriendship object
            Hide yourFriendship attributes Show yourFriendship attributes object
            • id string Required
            • status string Required
            • date string Required
            • muted boolean
          • theirFriendship object
            Hide theirFriendship attributes Show theirFriendship attributes object
            • id string Required
            • status string Required
            • date string Required
            • muted boolean
        • participants array[object] Required
          Hide participants attributes Show participants attributes object
          • id string Required
          • nickname string Required
          • fullName string
          • email string Required
          • language string Required
          • startDate string Required
          • imageUrl string
          • waitingListValue number Required
          • notificationsEnabled boolean Required
          • notifyDaysBefore array[integer] Required
          • private boolean Required
          • yourFriendship object
            Hide yourFriendship attributes Show yourFriendship attributes object
            • id string Required
            • status string Required
            • date string Required
            • muted boolean
          • theirFriendship object
            Hide theirFriendship attributes Show theirFriendship attributes object
            • id string Required
            • status string Required
            • date string Required
            • muted boolean
        • bookingId string
        • clubs array[object] Required
          Hide clubs attributes Show clubs attributes object
          • id string Required
          • name string Required
          • summary string Required
          • private boolean Required
          • headerUrl string
          • membership object
            Hide membership attributes Show membership attributes object
            • id string Required
            • user object Required
              Hide user attributes Show user attributes object
              • id string Required
              • nickname string Required
              • fullName string
              • email string Required
              • language string Required
              • startDate string Required
              • imageUrl string
              • waitingListValue number Required
              • notificationsEnabled boolean Required
              • notifyDaysBefore array[integer] Required
              • private boolean Required
              • yourFriendship object
                Hide yourFriendship attributes Show yourFriendship attributes object
                • id string Required
                • status string Required
                • date string Required
                • muted boolean
              • theirFriendship object
                Hide theirFriendship attributes Show theirFriendship attributes object
                • id string Required
                • status string Required
                • date string Required
                • muted boolean
            • role string Required
            • startDate string Required
          • chatId string
          • request object
            Hide request attributes Show request attributes object
            • id string Required
            • user object Required
              Hide user attributes Show user attributes object
              • id string Required
              • nickname string Required
              • fullName string
              • email string Required
              • language string Required
              • startDate string Required
              • imageUrl string
              • waitingListValue number Required
              • notificationsEnabled boolean Required
              • notifyDaysBefore array[integer] Required
              • private boolean Required
              • yourFriendship object
                Hide yourFriendship attributes Show yourFriendship attributes object
                • id string Required
                • status string Required
                • date string Required
                • muted boolean
              • theirFriendship object
                Hide theirFriendship attributes Show theirFriendship attributes object
                • id string Required
                • status string Required
                • date string Required
                • muted boolean
            • clubId string Required
            • date string Required
          • timeZoneId string
          • location object
            Hide location attributes Show location attributes object
            • city string
            • countryCode string
            • latitude number
            • longitude number
        • chatId string
      • date string Required
      • refundThresholdInSeconds integer Required
      • amountInCents integer
      • applicationFeeInCents integer
      • transactionFeeInCents integer
      • currency string
      • paid boolean
GET /1/activities/{id}/bookings
curl \
 --request GET 'https://api.localsporthero.com/1/activities/{id}/bookings'
Response examples (200)
{
  "bookings": [
    {
      "id": "85362399-38e1-4255-87a0-f3f984ed16d9",
      "user": {
        "id": "1ab474d5-e1fa-4340-ba6a-5642e720ea6a",
        "nickname": "Stevertje",
        "fullName": "Stefan de Jong",
        "email": "stefandejong@gmail.com",
        "language": "nl",
        "startDate": "2022-05-02T11:00:00.000Z",
        "imageUrl": "https://example.org/image.jpg",
        "waitingListValue": 0,
        "notificationsEnabled": true,
        "notifyDaysBefore": [
          -1,
          1
        ],
        "private": false,
        "yourFriendship": {
          "id": "85362399-38e1-4255-87a0-f3f984ed16d9",
          "status": "requested, accepted or blocked",
          "date": "2022-05-02T11:00:00.000Z",
          "muted": false
        },
        "theirFriendship": {
          "id": "85362399-38e1-4255-87a0-f3f984ed16d9",
          "status": "requested, accepted or blocked",
          "date": "2022-05-02T11:00:00.000Z",
          "muted": false
        }
      },
      "activity": {
        "id": "85362399-38e1-4255-87a0-f3f984ed16d9",
        "name": "Knalluh met balluh!",
        "date": "2022-05-02T11:00:00.000Z",
        "timeZoneId": "Europe/Amsterdam",
        "priceInCents": 600,
        "currency": "EUR",
        "location": "Lyra Park in De Lier",
        "refundThresholdInSeconds": 7200,
        "address": {
          "name": "Sportpark Lyra",
          "addressLine1": "Heimond 12",
          "postalCode": "1234AB",
          "city": "Pijnacker",
          "countryCode": "NL",
          "latitude": 51.924419,
          "longitude": 4.477733
        },
        "showOnMap": true,
        "organizer": {
          "id": "1ab474d5-e1fa-4340-ba6a-5642e720ea6a",
          "nickname": "Stevertje",
          "fullName": "Stefan de Jong",
          "email": "stefandejong@gmail.com",
          "language": "nl",
          "startDate": "2022-05-02T11:00:00.000Z",
          "imageUrl": "https://example.org/image.jpg",
          "waitingListValue": 0,
          "notificationsEnabled": true,
          "notifyDaysBefore": [
            -1,
            1
          ],
          "private": false,
          "yourFriendship": {
            "id": "85362399-38e1-4255-87a0-f3f984ed16d9",
            "status": "requested, accepted or blocked",
            "date": "2022-05-02T11:00:00.000Z",
            "muted": false
          },
          "theirFriendship": {
            "id": "85362399-38e1-4255-87a0-f3f984ed16d9",
            "status": "requested, accepted or blocked",
            "date": "2022-05-02T11:00:00.000Z",
            "muted": false
          }
        },
        "participants": [
          {
            "id": "1ab474d5-e1fa-4340-ba6a-5642e720ea6a",
            "nickname": "Stevertje",
            "fullName": "Stefan de Jong",
            "email": "stefandejong@gmail.com",
            "language": "nl",
            "startDate": "2022-05-02T11:00:00.000Z",
            "imageUrl": "https://example.org/image.jpg",
            "waitingListValue": 0,
            "notificationsEnabled": true,
            "notifyDaysBefore": [
              -1,
              1
            ],
            "private": false,
            "yourFriendship": {
              "id": "85362399-38e1-4255-87a0-f3f984ed16d9",
              "status": "requested, accepted or blocked",
              "date": "2022-05-02T11:00:00.000Z",
              "muted": false
            },
            "theirFriendship": {
              "id": "85362399-38e1-4255-87a0-f3f984ed16d9",
              "status": "requested, accepted or blocked",
              "date": "2022-05-02T11:00:00.000Z",
              "muted": false
            }
          }
        ],
        "bookingId": "cc939b96-9be4-43b5-a0d5-4881cc18250b",
        "clubs": [
          {
            "id": "df2cd71c-d006-4a46-8e2a-d09503273f07",
            "name": "Arco's Angels",
            "summary": "Een leuke club helden op sokken bij elkaar.",
            "private": false,
            "headerUrl": "https://example.org/image.jpg",
            "membership": {
              "id": "85362399-38e1-4255-87a0-f3f984ed16d9",
              "user": {
                "id": "1ab474d5-e1fa-4340-ba6a-5642e720ea6a",
                "nickname": "Stevertje",
                "fullName": "Stefan de Jong",
                "email": "stefandejong@gmail.com",
                "language": "nl",
                "startDate": "2022-05-02T11:00:00.000Z",
                "imageUrl": "https://example.org/image.jpg",
                "waitingListValue": 0,
                "notificationsEnabled": true,
                "notifyDaysBefore": [
                  -1,
                  1
                ],
                "private": false,
                "yourFriendship": {
                  "id": "85362399-38e1-4255-87a0-f3f984ed16d9",
                  "status": "requested, accepted or blocked",
                  "date": "2022-05-02T11:00:00.000Z",
                  "muted": false
                },
                "theirFriendship": {
                  "id": "85362399-38e1-4255-87a0-f3f984ed16d9",
                  "status": "requested, accepted or blocked",
                  "date": "2022-05-02T11:00:00.000Z",
                  "muted": false
                }
              },
              "role": "user or admin",
              "startDate": "2022-05-02T11:00:00.000Z"
            },
            "chatId": "df2cd71c-d006-4a46-8e2a-d09503273f05",
            "request": {
              "id": "85362399-38e1-4255-87a0-f3f984ed16d9",
              "user": {
                "id": "1ab474d5-e1fa-4340-ba6a-5642e720ea6a",
                "nickname": "Stevertje",
                "fullName": "Stefan de Jong",
                "email": "stefandejong@gmail.com",
                "language": "nl",
                "startDate": "2022-05-02T11:00:00.000Z",
                "imageUrl": "https://example.org/image.jpg",
                "waitingListValue": 0,
                "notificationsEnabled": true,
                "notifyDaysBefore": [
                  -1,
                  1
                ],
                "private": false,
                "yourFriendship": {
                  "id": "85362399-38e1-4255-87a0-f3f984ed16d9",
                  "status": "requested, accepted or blocked",
                  "date": "2022-05-02T11:00:00.000Z",
                  "muted": false
                },
                "theirFriendship": {
                  "id": "85362399-38e1-4255-87a0-f3f984ed16d9",
                  "status": "requested, accepted or blocked",
                  "date": "2022-05-02T11:00:00.000Z",
                  "muted": false
                }
              },
              "clubId": "85362399-38e1-4255-87a0-f3f984ed16d9",
              "date": "2022-05-02T11:00:00.000Z"
            },
            "timeZoneId": "Europe/Amsterdam",
            "location": {
              "city": "Pijnacker",
              "countryCode": "NL",
              "latitude": 51.924419,
              "longitude": 4.477733
            }
          }
        ],
        "chatId": "df2cd71c-d006-4a46-8e2a-d09503273f05"
      },
      "date": "2022-05-02T11:00:00.000Z",
      "refundThresholdInSeconds": 7200,
      "amountInCents": 1039,
      "applicationFeeInCents": 100,
      "transactionFeeInCents": 39,
      "currency": "eur",
      "paid": false
    }
  ]
}