v1
latestOpenAPI 3.1.0Copyright Pismo2026-07-247702,7523.1 MBAccount flex controls
Create account flex control
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 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 an Account flex control created event.
NOTE: This endpoint requires an account-specific access token.
post/v1/accounts/{accountId}/flex-controls
Path parameters
accountIdnumber required
Example:9999999
Account ID
Request body
Example request
{
"type": "authentication",
"processing_codes": {
"credit": "219803",
"debit": "219803"
},
"name": "Paul Bearer",
"beneficiary_id": "8497225d-2096-4b92-990e-f73bd21bc48c",
"override_controls": [
"spending-limit-id-1",
"spending-limit-id-2"
],
"currency_code": "840",
"time_zone": "America/Sao_Paulo",
"max_limit": 1000,
"limit_duration": "P1M",
"reset_datetime": "2022-03-08T21:19:55Z",
"reset_period": {
"week_day": "monday",
"time": "3:00AM",
"utc_time": "3:00AM"
},
"conditions": [
{
"type": "MERCHANT_NAME_LIST",
"operator": "eq",
"data": "10"
}
],
"deny_code": "ERR_VAL_BALANCE",
"response_code": "00",
"custom_code": "FLB",
"active": true
}Response
OK. Successful flex control creation.
Example response
{
"id": "9cbdadc-860b-4275-a5cd-d9d892fd3869",
"deny_code": "ERR_VAL_BALANCE",
"name": "Paul Bearer",
"type": "authentication",
"rule_reference_id": "purchase-1M",
"beneficiary_id": "8497225d-2096-4b92-990e-f73bd21bc48c",
"override_controls": [
"spending-limit-id-1",
"spending-limit-id-2"
],
"description": "This flex control restricts the max value to be spent every 24 hours",
"processing_codes": {
"credit": "219803",
"debit": "219803"
},
"currency_code": "840",
"time_zone": "America/Sao_Paulo",
"max_limit": 1000,
"available_limit": 300,
"conditions": [
{
"type": "MERCHANT_NAME_LIST",
"operator": "eq",
"data": "10"
}
],
"limit_duration": "P1M",
"reset_period": {
"week_day": "monday",
"time": "3:00AM",
"utc_time": "3:00AM"
},
"reset_datetime": "2022-03-08T21:19:55Z",
"active": true,
"customized": true,
"response_code": "00",
"custom_code": "FLB"
}