post https://api-sandbox.pismolabs.io/rules/v1/accounts//flex-controls
Creates flex control for account. You use flex controls to restrict financial operations. For example, you can set spending and usage limits. For more information, refer to Flexible transaction controls.
To create a cumulative condition, the type
can be:
spending_limit
to restrict the maximum total amount that can be transacted during an specific period.usage_limit
to evaluate the quantity of transactions. The cumulative control type must also specify themax_limit
. Thelimit_duration
andreset_period
parameters are optional, but they are linked with the behavior ofmax_limit
.
To create a restriction condition, set type
as restriction
.
To restrict an operation, the restriction control must specify:
- at least one condition in the
conditions
array. - the required values for
attribute
,operator
, andvalue
in the condition.
Once you create the control, you can't change its type.
This endpoint generates an account_spending_limit_created-1 event.
NOTE: This endpoint requires an account-specific access token.