post https://sandbox.pismolabs.io/rules/v1/customers//flex-controls
Creates flex control for customer. You use flex controls to restrict financial operations. For example, you can set spending and usage limits. See Flexible transaction controls for more information.
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 the- max_limit. The- limit_durationand- reset_periodparameters are optional, but they are linked with the behavior of- max_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 a Customer flex control created event.
NOTE: This endpoint requires an account-specific access token.