Create a Consumer User Event
POST Consumer User Events
/events/consumer/user
endpoint allows you to operate on the Consumer User Events entity.
User events are created after the initial POST /consumer/users
call (which creates a user) and are used to:
- Update the STATE and KYC Status of the user, using the
userStateDetails
orkycStatusDetails
field - Update the user details, using the
updatedConsumerUserAttributes
field.
If you have neither of the above two use cases, you do not need to use user events.
Payload
Each user event needs three mandatory fields:
timestamp
- the timestamp of when the event was created or occured in your systemuserId
- The ID of the transaction for which this event is generated.
In order to make individual events retrievable, you also need to pass in a unique eventId
to the request body.
Headers
x-api-key
Query parameters
allowUserTypeConversion
Boolean string whether Flagright should allow a Consumer user event to be applied to a Business user with the same user ID. This will converts a Business user to a Consumer user.
Allowed values:
lockKycRiskLevel
Boolean string whether Flagright should lock the KYC risk level for the user.
Allowed values:
lockCraRiskLevel
Boolean string whether Flagright should lock the CRA risk level for the user.
Allowed values:
Request
timestamp
Timestamp of the event
userId
Transaction ID the event pertains to
eventId
Unique event ID
reason
Reason for the event or a state change
eventDescription
Event description
updatedConsumerUserAttributes
Model for User details
Response
Created
userId
Unique user ID
createdTimestamp
Timestamp when userId is created
activatedTimestamp
Timestamp when user was activated
userDetails
Model for consumer user personal details
userStateDetails
kycStatusDetails
employmentStatus
occupation
legalDocuments
User’s legal identity documents - See Document Model for details
contactDetails
Model for business user contact information details
employmentDetails
Details of User's employment
transactionLimits
Model for transaction limits for a given user
expectedIncome
Model for expected income details
riskLevel
Allowed values:
kycRiskLevel
Allowed values:
acquisitionChannel
Model for User acquisition channel
reasonForAccountOpening
sourceOfFunds
userSegment
Allowed values:
pepStatus
sanctionsStatus
adverseMediaStatus
linkedEntities
savedPaymentDetails
attachments
Uploaded user's attachment
executedRules
hitRules
riskScoreDetails