Documentation Index
Fetch the complete documentation index at: https://docs.quepass.com/llms.txt
Use this file to discover all available pages before exploring further.
This step retrieves profile and related information using the UID and consentToken returned after a successful journey. These values are used to call SDK methods to fetch user profile data after login, registrant details after event check-in, download the KYC certificate, and retrieve SDK capability information such as the installed SDK version. Ensure that a valid UID and consentToken are provided before calling these methods.
1. Customer Status
Required Parameters
- uid (string) – User identity
- status (string) – User status (Inactive/Active)
Return Parameters
- JsonElement (object) – Represents a JSON value, which can be an object, array, string, number, boolean, or null.
Code Example
QuePass.toggleCustomerStatus(
eventId = null,
uid = uid,
status = customerStatus,/Inactive/Active
) { result ->
Log.e("toggleCustomerStatus Response : ", Gson().toJson(result))
Log.e("toggleCustomerStatus : ", "Failed : Response: $result")
// ALWAYS switch to Main thread for UI
context.lifecycleScope.launch(Dispatchers.Main) {
when (result) {
is ApiFunctionsResult.Loading -> {
Log.e("toggleCustomerStatus", "Loading...")
context.showLoader = true
}
is ApiFunctionsResult.Success -> {
context.showLoader = false
Log.e("toggleCustomerStatus", "Success : Response : ${Gson().toJson(result)}")
// result.message?.let { showMessage(context, it) }
}
is ApiFunctionsResult.Failure -> {
Log.e("toggleCustomerStatus : ", "Failed : Response: ${result.errors?.toString()}")
context.showLoader = false
val message = result.errors.safeErrorMessage()
showMessage(context, message)
}
}
}
}
2. Customer Life Cycle
Required Parameters
- uid (string) – User identity
- status (string) – Status of the user (Inactive/Active)
- from (string) – Start date/time or range start
- to (string) – End date/time or range end
Return Parameters
- JsonElement (object) – Represents a JSON value, which can be an object, array, string, number, boolean, or null.
Code Example
QuePass.setCustomerLifeCycle(eventId = null, uid = uid, status = customerStatus, dateFrom = fromDate, dateTo = toDate) { result ->
Log.e("setCustomerLifeCycle:", "Response: $result")
context.lifecycleScope.launch(Dispatchers.Main) {
when(result) {
is ApiFunctionsResult.Loading -> {
Log.e("setCustomerLifeCycle", "Loading...")
context.showLoader = true
}
is ApiFunctionsResult.Success -> {
context.showLoader = false
Log.e("setCustomerLifeCycle", "Success: ${Gson().toJson(result)}")
// result.message?.let { showMessage(context, it) }
}
is ApiFunctionsResult.Failure -> {
context.showLoader = false
showMessage(context, result.errors.safeErrorMessage())
}
}
}
}
Ensure a valid UID and consentToken are provided before calling these methods.