1. Bookings
Bardge API (V3)
  • Introduction
  • Authentication
  • Errors
  • Idempotent Requests
  • Pagination
  • Passes
    • Introduction
    • Get All Reseller Passes
      GET
    • Issue a pass
      POST
    • Update user's pass
      POST
    • Update user's pass expiry
      POST
    • Get User Pass Details
      GET
  • Providers
    • Introduction
    • Get providers
      GET
    • Get providers for a pass
      GET
  • Access Codes
    • Introduction
    • Generate dynamic access code
      POST
  • Bookings
    • Introduction
    • Get class categories
      GET
    • Get classes
      GET
    • Get class with instances
      GET
    • Initiate a class booking
      POST
    • Confirm a class booking
      POST
    • Initiate a spa booking
      POST
    • Confirm a spa booking
      POST
    • Get client bookings
      GET
    • Get booking status
      GET
    • Cancel a booking
      POST
  • Co-pay
    • Introduction
  • Credits
    • Introduction
    • Purchase credits
    • Get credit packages
  • Lookup
    • Introduction
    • Get issuers
    • Initiate a lookup
    • Verify a lookup
    • Get a client
    • Get client credits
  • Schemas
    • PasscodeV3Request
    • PurchaseSpaCoPayV3Request
    • LookupInitiateV3Request
    • ResellerV3PasscodeResponse
    • ErrorDetail
    • ResellerV3ErrorResponse
    • LookupV3Response
    • ResellerV3SpaCoPayPurchaseResponse
    • LookupVerifyV3Request
    • SpaCoPayQuoteV3Request
    • IssuePassV3Request
    • PassRef
    • ResellerV3SpaCoPayQuoteResponse
    • CategoryDetails
    • ResellerV3IssuedPassResponse
    • UpdateIssuedPassExpiryV3Request
    • ResellerV3IssuedPassMessageResponse
    • UpdateLookupEnabledRequest
    • UpdateIssuedPassV3Request
    • PurchaseGymCoPayV3Request
    • PurchaseCoPayPackageV3Request
    • PurchaseCreditsV3Request
    • ResellerV3GymCoPayPurchaseResponse
    • ResellerV3CreditPurchaseResponse
    • ResellerV3CoPayPurchaseResponse
    • RescheduleBookingV3Request
    • RefundInfo
    • PasscodeInfo
    • ResellerV3BookingResponse
    • BookSpaV3Request
    • ResellerV3SpaBookingInitiateResponse
    • BookClassV3Request
    • CopayOption
    • ResellerV3ProviderResponse
    • ResellerV3ClassBookingInitiateResponse
    • ResellerV3ServiceResponse
    • ConfirmClassBookingV3Request
    • ResellerV3SpaResponse
    • AccessCodeV3Request
    • ServicePreview
    • ResellerV3AccessCodeResponse
    • ResellerV3ListResponse
    • ResellerV3AccessCodeSessionResponse
    • ResellerV3AvailabilityResponse
    • ConfirmAccessCodeV3Request
    • ResellerV3ClientResponse
    • CategoryDetail
    • ResellerV3CreditsResponse
    • ResellerV3PassResponse
    • ResellerV3ClassInstanceResponse
    • ResellerV3ClassResponse
    • ResellerV3BookingStatusResponse
  1. Bookings

Initiate a class booking

POST
/v3/api/business/reseller/bookings/class
Validates eligibility for the requested class and returns one of three outcomes:
1.
Booked immediately — the gym tier is covered by the client's pass and visits are available. The booking is created and returned.
2.
Additional visits required (additional_visits_required: true) — the gym tier is covered but the client's visit limit is reached. A session is returned with cost_per_visit. Collect the amount for the desired number of visits from the client and call POST /bookings/class/{sessionId}/confirm with number_of_visits and duration.
3.
Co-pay required (copay_required: true) — the gym tier is not covered by the pass. A session and all available co-pay packages are returned. Collect the co-pay from the client, select a package, and call POST /bookings/class/{sessionId}/confirm with copay_package_id.
Sessions expire after 24 hours. Idempotent — supply Idempotency-Key to safely retry. Alternatively, supply Bardge-Lookup-Token to initiate on behalf of a looked-up client.

Request

Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Header Params

Body Params application/jsonRequired

Examples

Responses

🟢201
*/*
Booking created, additional visits session, or co-pay session
Body*/*

🟠400
🟠401
🟠403
🟠404
🟠409
🔴500
Request Request Example
Shell
JavaScript
Java
Swift
curl --location '/v3/api/business/reseller/bookings/class' \
--header 'Bardge-Lookup-Token: lkpt_abc123' \
--header 'Idempotency-Key: 550e8400-e29b-41d4-a716-446655440000' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
    "class_instance_id": "ci_abc123",
    "client_id": "client_abc123",
    "first_name": "Ada",
    "last_name": "Okafor",
    "user_pass_id": "brgpass_abc123"
}'
Response Response Example
201 - Booked immediately
{
    "object": "class_booking_initiation",
    "copay_required": false,
    "additional_visits_required": false,
    "booking_id": "booking_3b5g9f2d4c8e1a7b",
    "status": "PENDING",
    "class_name": "Morning Yoga",
    "provider_name": "FitZone Lagos",
    "date": "2026-05-20",
    "time": "07:00",
    "scheduled_for": 1747724400,
    "visits_deducted": 1,
    "created": 1747700000,
    "message": "Class booked successfully"
}
Modified at 2026-05-21 13:30:24
Previous
Get class with instances
Next
Confirm a class booking
Built with