v1
latestOpenAPI 3.1.0Copyright Pismo2026-07-247702,7523.1 MBCustomer flex controls
Create customer flex control
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_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 the max_limit. The limit_duration and reset_period parameters 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 conditions array.
- the required values for attribute, operator, and value in 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.
post/v1/customers/{customerId}/flex-controls
Path parameters
customerIdnumber required
Example:9999999
Customer ID
Request body
Example request
{
"type": "authentication",
"processing_codes": {
"credit": "219803",
"debit": "219803"
},
"rule_reference_id": "purchase-1M",
"name": "Paul Bearer",
"account_id": 500000,
"currency_code": "840",
"max_limit": 1000,
"max_transactions": 10,
"max_amount": 100000,
"limit_duration": "P1M",
"reset_datetime": "2022-03-08T21:19:55Z",
"time_zone": "America/Sao_Paulo",
"reset_period": {
"week_day": "monday",
"time": "3:00AM",
"utc_time": "3:00AM"
},
"reset_strategy": {
"reset_trigger": {
"authentication_method": [
"password",
"sms",
"email"
]
}
},
"conditions": [
{
"type": "MERCHANT_NAME_LIST",
"operator": "eq",
"data": "10"
}
],
"active": true,
"deny_code": "ERR_VAL_BALANCE",
"response_code": "00",
"custom_code": "FLB",
"card_mode": "credit"
}Response
OK. Successful flex control creation.
Example response
{
"id": "89cbdadc-860b-4275-a5cd-d9d892fd3869",
"type": "authentication",
"processing_codes": {
"credit": "219803",
"debit": "219803"
},
"rule_reference_id": "purchase-1M",
"name": "Paul Bearer",
"account_id": 8988000,
"customer_id": 99999999,
"card_ids": [
11111,
22222
],
"currency_code": "840",
"max_limit": 1000,
"max_transactions": 10,
"max_amount": 100000,
"limit_duration": "P1M",
"reset_datetime": "2022-03-08T21:19:55Z",
"time_zone": "America/Sao_Paulo",
"reset_period": {
"week_day": "monday",
"time": "3:00AM",
"utc_time": "3:00AM"
},
"reset_strategy": {
"reset_trigger": {
"authentication_method": [
"password",
"sms",
"email"
]
}
},
"available_limit": 300,
"conditions": [
{
"attribute": "balance",
"operator": "gt",
"value": "10000"
}
],
"active": true,
"deny_code": "ERR_VAL_BALANCE",
"response_code": "00",
"custom_code": "FLB",
"card_mode": "credit",
"customized": true
}