1. Users
Bardge API
  • Introduction
  • Authentication
  • Errors
  • Idempotent Requests
  • Pagination
  • Users
    • Introduction
    • Update a user
      POST
    • Set a user's client ID
      POST
    • Get a user
      GET
  • Passes
    • Introduction
    • Get All Reseller Passes
      GET
    • Issue a pass
      POST
    • Update user's pass
      POST
    • Update user's pass expiry
      POST
    • Renew a prepaid pass
      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
  • Credits
    • Introduction
    • Purchase credits
    • Get credit packages
    • Get a user's credits
  • Lookup
    • Introduction
    • Initiate a lookup
    • Verify a lookup
    • Get issuers
    • Get a user's credits
  • Webhooks
    • Introduction
    • List Webhook Endpoints
    • Register Webhook Endpoint
    • Delete Webhook Endpoint
  • Embed
    • Introduction
    • Create a hosted session
  • Schemas
    • RegisterWebhookV3Request
    • PasscodeV3Request
    • PurchaseSpaCoPayV3Request
    • RegisterWebhookEndpointRequest
    • WebviewSessionExchangeRequest
    • ErrorDetail
    • ResellerV3PasscodeResponse
    • ResellerV3ErrorResponse
    • ResellerV3WebhookEndpointResponse
    • ResellerV3WebhookResponse
    • LookupInitiateV3Request
    • ResellerV3SpaCoPayPurchaseResponse
    • LookupV3Response
    • SpaCoPayQuoteV3Request
    • PassRef
    • LookupVerifyV3Request
    • ResellerV3SpaCoPayQuoteResponse
    • CategoryDetails
    • IssuePassV3Request
    • RenewPrepaidPassV3Request
    • UpdateLookupEnabledRequest
    • ResellerV3IssuedPassResponse
    • UpdateIssuedPassExpiryV3Request
    • PurchaseCoPayPackageV3Request
    • PurchaseGymCoPayV3Request
    • ResellerV3IssuedPassMessageResponse
    • ResellerV3PassRenewalResponse
    • ResellerV3GymCoPayPurchaseResponse
    • ResellerV3CoPayPurchaseResponse
    • UpdateIssuedPassV3Request
    • RescheduleBookingV3Request
    • PurchaseCreditsV3Request
    • PasscodeInfo
    • WebviewSessionMintRequest
    • RefundInfo
    • BookSpaV3Request
    • ResellerV3CreditPurchaseResponse
    • UpdateClientDetailsV3Request
    • ResellerV3SpaBookingInitiateResponse
    • ResellerV3ProviderResponse
    • ResellerV3ClientResponse
    • BookClassV3Request
    • ResellerV3ServiceResponse
    • SetClientIdV3Request
    • CopayOption
    • ResellerV3SpaResponse
    • ServicePreview
    • ResellerV3ClassBookingInitiateResponse
    • ResellerV3AvailabilityResponse
    • ConfirmClassBookingV3Request
    • ResellerV3AccessCodeSessionResponse
    • ResellerV3BookingResponse
    • ConfirmAccessCodeV3Request
    • CategoryDetail
    • AccessCodeV3Request
    • ResellerV3PassResponse
    • ResellerV3ListResponse
    • ResellerV3CreditsResponse
    • ResellerV3AccessCodeResponse
    • ResellerV3BookingStatusResponse
    • ResellerV3ClassInstanceResponse
    • ResellerV3ClassResponse
  1. Users

Set a user's client ID

POST
/v3/api/business/reseller/clients/set_client_id
Attaches a client ID to an existing Bardge user that does not have one yet — for example a user who signed up directly by email, or one you are migrating over from your previous system.
A client ID here is the enrollee's member ID: the identifier for the individual in your system. It is not your company or reseller ID.
Identify the user with email or phone. Send only one of them — if you send both, email is used. An email address or phone number must resolve to exactly one active user in your account; if it matches none or several, the request is rejected rather than guessed at. A phone number is matched on its last 10 digits, so 08012345678 and +2348012345678 both reach the same user.
Setting a client ID is permanent. If the user already has one, the request is rejected and nothing changes — repeating the call with the same value is a safe no-op. Attaching a client ID never affects the user's existing bookings, passes or credits, and does not change access codes that have already been issued.

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

🟢200
*/*
The user, with the client ID now attached
Body*/*

🟠401
🟠403
🟠404
🟠409
🔴500
Request Request Example
Shell
JavaScript
Java
Swift
curl --location '/v3/api/business/reseller/clients/set_client_id' \
--header 'Idempotency-Key: 550e8400-e29b-41d4-a716-446655440000' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "email": "ada@example.com",
    "phone": "08012345678",
    "client_id": "client_abc123"
}'
Response Response Example
200 - Success
{
    "object": "client",
    "id": "client_abc123",
    "user_id": "usr_10482",
    "first_name": "Ada",
    "last_name": "Okafor",
    "email": "ada@example.com",
    "phone": "08012345678",
    "status": "active",
    "created": 1746700000,
    "message": "Client ID set successfully"
}
Modified at 2026-11-13 09:56:50
Previous
Update a user
Next
Get a user
Built with