GET https://sudomain.cobot.me/api/booking_credits

This returns the number of remaining booking credits for a member.

Authentication required:
yes, additionally user must be a space member
Scope required
read_booking_credits
GET https://co-up.cobot.me/api/booking_credits

{
  "<resource_id>": {
    "total_hours": "10",
    "total_amount": "50.0",
    "hours_remaining": "8.5",
    "amount_remaining": "50.0",
    "resource_name": "Room",
    "price_per_hour": "15.0"
  }
}
GET https://subdomain.cobot.me/api/memberships/:membership_id/booking_credits

This returns the number of remaining booking credits for a member.

Authentication required:
yes, additionally user must be a space admin
Scope required
read_booking_credits
GET https://co-up.cobot.me/api/memberships/4305876/booking_credits

Response:

{
  "<resource_id>": {
    "total_hours": "10",
    "total_amount": "50.0",
    "hours_remaining": "8.5",
    "amount_remaining": "50.0",
    "resource_name": "Room",
    "price_per_hour": "15.0"
  }
}

back to index