post https://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_limitto restrict the maximum total amount that can be transacted during an specific period.usage_limitto evaluate the quantity of transactions. The cumulative control type must also specify themax_limit. Thelimit_durationandreset_periodparameters 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
conditionsarray. - the required values for
attribute,operator, andvaluein the condition.
Once you create the control, you can't change its type.
This endpoint generates an Account flex control created event.
NOTE: This endpoint requires an account-specific access token.