Business User Events

Create a Business User Event

POST

POST Business User Events

/events/business/user endpoint allows you to operate on the Business User Events entity.

User events are created after the initial POST /business/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 updatedBusinessUserAttributes 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.

Query parameters

allowUserTypeConversionenumOptional
Boolean string whether Flagright should allow a Business user event to be applied to a Consumer user with the same user ID. This will converts a Consumer user to a Business user.
Allowed values: truefalse

Request

This endpoint expects an object.
timestamp
doubleRequired
Timestamp of the event
userId
stringRequired
Transaction ID the event pertains to
eventId
stringOptional
Unique event ID
reason
stringOptional
Reason for the event or a state change
eventDescription
stringOptional
Event description
updatedBusinessUserAttributes
objectOptional
Model for a business user - optional fields

Response

This endpoint returns an object
userId
string
Unique user ID for the user
createdTimestamp
double
Timestamp when the user was created
legalEntity
object
Model for business user legal entity details
activatedTimestamp
doubleOptional
Timestamp when the user was activated
userStateDetails
objectOptional
kycStatusDetails
objectOptional
shareHolders
list of objectsOptional
Shareholders (beneficiaries) of the company that hold at least 25% ownership. Can be another company or an individual
directors
list of objectsOptional
Director(s) of the company. Must be at least one
transactionLimits
objectOptional
Model for transaction limits for a given user
riskLevel
enumOptional
Allowed values: VERY_HIGHHIGHMEDIUMLOWVERY_LOW
allowedPaymentMethods
list of enumsOptional
linkedEntities
objectOptional
acquisitionChannel
enumOptional
Model for User acquisition channel
savedPaymentDetails
list of unionsOptional
mccDetails
objectOptional
tags
list of objectsOptional
Additional information that can be added via tags
executedRules
list of objectsOptional
Model for list of executed rules
hitRules
list of objectsOptional
Model for list of hit rules
riskScoreDetails
objectOptional

Errors