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 or kycStatusDetails 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 system
  • userId - 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-keystringRequired

Query parameters

allowUserTypeConversionenumOptional
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:
lockKycRiskLevelenumOptional
Boolean string whether Flagright should lock the KYC risk level for the user.
Allowed values:
lockCraRiskLevelenumOptional
Boolean string whether Flagright should lock the CRA risk level for the user.
Allowed values:

Request

timestampdoubleRequired>=315529200000<=4133890801000
Timestamp of the event
userIdstringRequired>=1 character
Transaction ID the event pertains to
eventIdstringOptional
Unique event ID
reasonstringOptional
Reason for the event or a state change
eventDescriptionstringOptional
Event description
updatedConsumerUserAttributesobjectOptional
Model for User details

Response

Created
userIdstring>=1 character
Unique user ID
createdTimestampdouble>=315529200000<=4133890801000
Timestamp when userId is created
activatedTimestampdouble or null>=315529200000<=4133890801000
Timestamp when user was activated
userDetailsobject or null
Model for consumer user personal details
userStateDetailsobject or null
kycStatusDetailsobject or null
employmentStatusenum or null
occupationstring or null
legalDocumentslist of objects or null

User’s legal identity documents - See Document Model for details

contactDetailsobject or null
Model for business user contact information details
employmentDetailsobject or null
Details of User's employment
transactionLimitsobject or null
Model for transaction limits for a given user
expectedIncomeobject or null
Model for expected income details
riskLevelenum or null
Allowed values:
kycRiskLevelenum or null
Allowed values:
acquisitionChannelenum or null
Model for User acquisition channel
reasonForAccountOpeninglist of strings or null
sourceOfFundslist of enums or null
userSegmentenum or null
Allowed values:
pepStatuslist of objects or null
sanctionsStatusboolean or null
adverseMediaStatusboolean or null
linkedEntitiesobject or null
savedPaymentDetailslist of objects or null
tagslist of objects or null
Additional information that can be added via tags
attachmentslist of objects or null
Uploaded user's attachment
executedRuleslist of objects or null
hitRuleslist of objects or null
riskScoreDetailsobject or null

Errors