A user is an individual enrollee registered under your reseller account — the person who holds a pass, books sessions, and checks in at providers. The Users section lets you retrieve a user record, read their credit balance, keep their contact details in step with your own records, and attach a client ID to a user that does not have one yet.What you can do#
Retrieve a user by client ID, email address or phone number
Retrieve a user's credit balance and recent transactions
Update a user's contact details
Attach a client ID to a user that does not have one
Key concepts#
Every user is reachable by four identifiers, and all four are accepted wherever an endpoint takes a client ID — except Get a user and Set a user's client ID, which do not accept a user_id:| Identifier | Origin | Notes |
|---|
id | Assigned by you | The enrollee's member ID in your system. Unique within your account. Not always present |
user_id | Assigned by Bardge | Stable and always present, e.g. usr_10482. Not accepted by Get a user or Set a user's client ID |
| Email address | The user's own | Convenient when you hold no Bardge identifier. Must match exactly one active user in your account |
| Phone number | The user's own | Matched on its last 10 digits, so local and international forms are interchangeable. Must match exactly one user |
A client ID is the identifier for the individual in your system — it is not your company or reseller ID. Users who signed up directly by email, or who are being migrated from a previous system, may have no client ID at all; their email address or phone number is how you reach them until one is attached.Looking a user up by email or phoneAn email address or phone number goes in the same path position as a client ID, and must be URL-encoded there — @ becomes %40 and + becomes %2B:GET /v3/api/business/reseller/clients/client_abc123
GET /v3/api/business/reseller/clients/ada%40example.com
GET /v3/api/business/reseller/clients/%2B2348012345678
Phone numbers are compared on their last 10 digits, so 08012345678, +2348012345678 and 234 801 234 5678 all reach the same user and you do not need to know which form Bardge holds.A client ID is always tried first. If the value you send happens to be both a valid client ID and a valid phone number, the client ID wins.An email address or phone number must resolve to exactly one active user in your account:| Matches | Result |
|---|
| One | 200 — the user is returned |
| None | 404 — no such user in your account |
| Several | 409 ambiguous_email or 409 ambiguous_phone — use the client ID, or user_id where accepted |
A malformed email address is rejected with 422 invalid_email, and a phone number with fewer than 10 digits with 422 invalid_phone.Updating a user is a partial operation: only the fields you send are changed, and anything you omit is left exactly as it was. Sending a field with a blank value is rejected rather than clearing the stored value.Email addresses must be unique within your account, and phone numbers are unique across Bardge — a collision is rejected with 409 conflict, and a malformed value with 422 invalid_email or 422 invalid_phone. Supply calling_code alongside a phone number so its length can be validated; it defaults to +234 when omitted. The label field replaces the user's existing labels rather than adding to them.A request that sets every field to the value already stored is accepted and returns the unchanged user with the message No changes applied.The client ID is the anchor for the record and cannot be changed by an update. To give a user their first client ID, use the set-client-ID endpoint instead.Setting a client ID is permanentIdentify the user with email or phone, sending only one of the two — 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 the request is a 404, and if it matches several it is rejected with 409 ambiguous_email or 409 ambiguous_phone rather than guessed at. Phone numbers are matched on their last 10 digits, exactly as they are when you retrieve a user.Client IDs are set once and cannot be changed:| Situation | Result |
|---|
| User has no client ID | 200 — the client ID is attached |
| User already has this exact client ID | 200 — no change made, safe to retry |
| User already has a different client ID | 409 client_id_already_set |
| Client ID is already held by another user | 409 client_id_taken |
Attaching a client ID never affects the user's existing bookings, passes or credits, and does not invalidate access codes that have already been issued.Both write endpoints accept an Idempotency-Key header. A replayed request returns the original response with X-Idempotent-Replayed: true; reusing a key with a different request body is rejected with 409 conflict.Passes — issue a pass to a user once their record exists
Credits — purchase credits that top up the balance returned here
Bookings — list the bookings a user has made
Access Codes — generate a check-in code for a user's visit
Modified at 2026-10-26 10:24:05