Skip to content
ReppREST reference · v2

Bookings

The account's space bookings from 30 days ago on, soonest first: a business's spaces' bookings, or the trainer's own.

A business sees who booked; a trainer sees whose space it is. The API never sends a phone number.

GEThttps://api.dev.repp.co.il/v1/bookingsKey

Request

curl "https://api.dev.repp.co.il/v1/bookings?side=business" \
  -H "Authorization: Bearer $REPP_API_KEY"

Response

200 · application/json
{
  "items": [
    {
      "id": "c2d3e4f5-a6b7-4c8d-9e0f-1a2b3c4d5e6f",
      "space": {
        "id": "b1c2d3e4-f5a6-4b7c-8d9e-0f1a2b3c4d5e",
        "name": "מתחם הקומה השנייה"
      },
      "business_name": "סטודיו נועה",
      "trainer_name": "יוסי לוי",
      "date": "2026-12-02",
      "start_time": "11:00",
      "end_time": "13:00",
      "weekly": true,
      "status": "pending",
      "amount": 180,
      "created_at": "2026-11-28T19:20:00+00:00"
    }
  ]
}
Query parameters
NameTypeDefaultDescription
sideRequiredone of: business, trainer—Which side of the account: business or trainer.
Response fields (14)
Response fields
FieldTypeDescription
itemsarray of BookingFrom 30 days ago on, soonest first.
items[].idstringIdentifier.
items[].spaceobjectThe space.
items[].space.idstringIdentifier.
items[].space.namestringThe space's name.
items[].business_namestringThe business whose space it is.
items[].trainer_namestring, nullableThe trainer who booked (for a business), or null.
items[].datestringA date in Israel, YYYY-MM-DD.
items[].start_timestringA time of day in Israel, HH:MM, 24 hours.
items[].end_timestringA time of day in Israel, HH:MM, 24 hours.
items[].weeklybooleanPart of a weekly booking: the same hour every week.
items[].statusone of: pending, confirmed, declined, cancelledpending: waits for the business's yes. confirmed. declined: the business said no or it ran out. cancelled.
items[].amountintegerThe rent for these hours, in whole shekels.
items[].created_atstringAn exact moment, ISO 8601 with its offset.
Errors
StatusCodeMeaning
400bad_parameterA parameter is not one the endpoint accepts. The message names it.
401missing_keyThe endpoint needs a key and no Authorization header came.
401bad_keyThe key is not one of ours, was revoked, or its account was closed or blocked.
403not_a_businessThe endpoint is for businesses and the key's account has none.
403not_a_trainerThe endpoint is for trainers and the key's account has no trainer profile.
429too_many_requestsOver the rate limit. Wait the seconds in Retry-After (60) and go on.
500server_errorSomething failed on our side. Try again shortly.