The get customer status endpoint allows for the retrieval of the current status of a customer. After a customer is onboarded their data will pass through several KYC (know-your-customer) vendor systems aimed at preventing money laundering and fraud. The status endpoint will provide information based on the response of those checks, and if any additional identification verification is required.
The request allows the newCustomerTag parameter as a string. When provided, Avenu's API will query the Customer Account and Customer Sub-ledger Event to retrieve the Customer Account Status.
The customer's new customer tag. This value is set in during onboarding prior to an account number being associated with the customer.
customerAccountNumber
The Avenu customer account number is returned only after onboarding finalization (status code: ENABLED)
status
The customer's status code.
See Below
statusInfo
Additional information associated with status code.
idScanUrl
URL for serving iFrame implementation of KYC ID scan and liveliness.
The status field will change depending on the value of accountStatus returned by the query. The following table illustrates possible response values and behavior. If a status of PENDING is returned, then the Avenu API is still awaiting a response from the KYC vendors and you should check back soon for an updated status.
Customer Status Codes
Status
Has Account Number?
Description
PENDING
no
Account is pending.
DISABLED
no
Account is disabled. No payments can be made from/to this account.
ENABLED
YES
Account is enabled
ID_SCAN
no
Customer needs to provide ID scan. statusInfo field contains the eKYC session ID.
FAILED
no
As a result of an issue with the ID Scan (see table below for vendor responses and next steps)
REVIEW
no
The customer is being manually reviewed by the compliance team to determine onboarding outcome. statusInfo contains the eKYC session ID
ERROR
no
Unknown App Error
eKYC vendor response (after a customer submits ID images) and next steps
eKYC Vendor Response (to Avenu) for ID Scan
Avenu Customer Status
Next step in onboarding flow
Abandoned session
FAILED
Restart onboarding from /onboard/v1/customer
Timeout
FAILED
Restart onboarding from /onboard/v1/customer
Scan error
ID_SCAN
Resubmit ID images via /onboard/v1/customer/idScansor for iFrame URL please restart onboarding from /onboard/v1/customer
ID not readable
ID_SCAN
Resubmit ID images via /onboard/v1/customer/idScansor for iFrame URL please restart onboarding from /onboard/v1/customer
Failure
FAILED
Restart onboarding from /onboard/v1/customer
How accountStatus can affect Avenu Customer Status