Skip to main content

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, eventId, 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 consentToken is available before calling these methods.

1. Customer Status

Required Parameters

  • status (string) – Customer status ("Active" or "Inactive")
  • uid (string) – User identity

Return Parameters

  • status (string) – Current status of the user or operation

Code Example

    let statusString = isActive ? "Active" : "Inactive"
 Quepass.UpdateCustomerStatus(status: statusString, uid: uid) { success, response in
            print("Customer status updated")
             
            }

2. Customer Life Cycle

Required Parameters

  • uid (string) – User identity
  • status (string) – Customer status ("Active" or "Inactive")
  • from (string) – Start timestamp of the lifecycle update
  • to (string) – End timestamp of the lifecycle update

Return Parameters

  • status (string) – Current status of the user or operation

Code Example

    let status = isActive ? "Active" : "Inactive"
        
        Quepass.UpdateCustomerLifeCycle(uid: uid, status: status, from: from, to: to) { success, response in
            DispatchQueue.main.async {
                
                guard success else {
                    let errorMsg = response.data?["message"] as? String ?? "Failed to update lifecycle."
                    return
                }
                
                // Convert dictionary to JSON string if needed
                if let dataDict = response.data,
                   let jsonData = try? JSONSerialization.data(withJSONObject: dataDict, options: [.prettyPrinted]),
                   let jsonString = String(data: jsonData, encoding: .utf8) {
                    print("Server Response: \(jsonString)")
                }
                
               print("Lifecycle Updated Successfully!")
 
            }
        }

Ensure a valid consentToken is provided before calling these methods.