---
updatedAt: 2026-05-12T17:47:03.000Z
agentTools:
  siteIndex: https://developers.pismo.io/llms.txt
  projectIndex: https://developers.pismo.io/pismo-docs/llms.txt
---

# Get account customers' flex controls

Get flex controls for all customers related to an account.

NOTE: This endpoint requires an account-specific access token.


# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Core platform - Flex controls",
    "version": "1.0.0",
    "description": "Flex controls API",
    "contact": {
      "name": "API Support",
      "url": "https://developers.pismo.io/support/"
    },
    "license": {
      "name": "Copyright Pismo"
    }
  },
  "servers": [
    {
      "url": "https://sandbox.pismolabs.io/rules",
      "description": "Sandbox API server for testing"
    }
  ],
  "components": {
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "Account access token. Tokens can expire quickly, which can result in an \"Unauthorized\" error.",
        "bearerFormat": "JWT"
      }
    },
    "schemas": {
      "AccountCustomerFlexControlsResponse": {
        "type": "object",
        "description": "Flex control response",
        "properties": {
          "customer_id": {
            "type": "integer",
            "format": "int64",
            "description": "Customer ID",
            "example": 99999999
          },
          "controls": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomerFlexControlsResponse"
            }
          }
        }
      },
      "Active": {
        "type": "boolean",
        "example": true,
        "default": true,
        "description": "If not specified, defaults to 'true'. If set to 'false', the flex control is skipped during evaluation."
      },
      "AvailableLimit": {
        "type": "integer",
        "format": "int64",
        "description": "Represents the remaining limit for the flex control. Its meaning depends on the flex control `type`.\n  * For `spending_limit` controls, `available_limit` is the remaining spending amount.\n  * For `usage_limit` controls, `available_limit` is the remaining number of transactions allowed.\n\nThe `available_limit` is calculated by: `max_limit` - `current_spend_limit`. The `current_spend_limit`, an internal field, is the total amount of all approved transactions in the `limit_duration` period. It is reset by the evaluation flow when a new transaction is evaluated in the new period according to the `reset_period`.\n\nWhen `available_limit` is set in a PATCH request via [Update account flex control](ref:patch-v1-accounts-flex-control) or [Update customer flex control](ref:patch-v1-customers-flex-control), it resets `current_spend_limit`. In this case, `available_limit` cannot be greater than `max_limit`.\n\nFor spending limits, note that `available_limit` is an integer. Since global currencies vary in the number of digits that are allowed after the decimal point, you must convert the actual maximum spending limit into an integer value to use in this field. To do this, use the following formula:\n\nvalue = floatNumber * 10^x,\nwhere x is the number of digits for the currency as defined in ISO 4217.\n\nFor example, if you want to set the value 499.99 for BRL currency transactions, you must set 49999 = 499.99 * 10^2.\n\nOn the other hand, the Japanese money system doesn't use fractions of a yen (the Japanese currency). So, to set the value at 4999 yen, you must set 4999 = 4999.0 * 10^0 = 4999.0 * 1. (In other words, the value doesn't change.)\n",
        "example": 300
      },
      "AvailableAmount": {
        "type": "integer",
        "format": "int64",
        "description": "The remaining amount allowed for authorizations under the current flex control. This value decreases with each successful authorization and resets based on the defined reset strategy. Valid only for flex controls with the `type` of `cumulative_limit`.\n",
        "example": 100000
      },
      "AvailableTransactions": {
        "type": "integer",
        "format": "int64",
        "description": "The remaining number of transactions allowed for authorizations under the current flex control. This value decreases with each successful authorization and resets based on the defined reset strategy. Valid only for flex controls with the `type` of `cumulative_limit`.\n",
        "example": 10
      },
      "CardMode": {
        "type": "string",
        "enum": [
          "credit",
          "debit"
        ],
        "example": "credit",
        "description": "Specifies the operational mode of the card.\n"
      },
      "Condition": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Condition ID",
            "example": "b4930a4d-e2c4-4fdc-9803-c83dec3a30d1"
          },
          "attribute": {
            "type": "string",
            "description": "Attribute to evaluate in the condition.\n* `amount`: Numeric value that indicates the amount of the operation performed by the user\n* `balance`: Maximum balance amount allowed in an account. Due to fiscal restrictions in some countries, the user cannot have more than a certain amount in the account. When the balance value is defined, the control validates any process of entering money into that account, evaluates the account balance at the time of the transaction, and denies any inflow of money above the amount defined in the balance value.\n* `country_code`: Three-letter country code (ISO 3166-1) indicating the location where the transaction is initiated or processed.\n* `entry_mode`: A code used to establish the mode of purchase. Valid only for card network operations. For a control to be valid, it must be a code defined by the entire Field 22 (Visa) or DE 22 (Mastercard) or as specified by each card network.\n    * Visa: Field 22 contains a 4-digit code indicating the method used to enter the account number and card expiration date (positions 1 and 2) and, if an electronic terminal is used, the capability of the terminal to capture online PINs (position 3) and the last digit (position 4) equal to 0 (unused) for transactions processed through VisaNet. This field is fixed-length with three subfields.\n    * Mastercard: DE 22 contains a 3-digit code indicating the method used to enter the account number and card expiration date (positions 1 and 2) and, if an electronic terminal is used, the capability of the terminal to capture online PINs (position 3).\n* `is_device_registered`: Boolean that indicates whether the device used for the operation is registered according to the financial institution's security policies.\n* `is_password_present`: Boolean that indicates whether a valid password is present in the evaluation request. Valid only for card network operations.\n* `is_pin_validated_offline`: Boolean that indicates whether the pin was validated offline in the evaluation request. This is commonly used for offline PIN verification scenarios. Valid only for card network operations.\n* `is_physical_card_present`: Boolean that indicates whether a physical card is present in the evaluation request. Valid only for card network operations. Digital wallet transactions are treated as physical card transactions. To exclude digital wallet transactions, combine this condition with `is_token_present` as `true`.\n* `is_tra_exemption_requested`: Boolean that indicates whether a TRA (Transaction Risk Assessment) exemption is requested for the transaction. Valid only for card network operations.\n* `merchant_category_code`: Merchant Category Code (MCC) is a four-digit number used to describe a merchant's primary business activities. Valid only for card network operations. For a control to be valid, you must enter a code specified by the Mastercard/Visa card network.\n* `merchant_id`: Merchant ID. Valid only for card network operations. For a control to be valid, you must enter a code specified by the Mastercard/Visa card network.\n* `month_day`: Day of the month when the operation is performed. Commonly used to limit operations on holidays. The format is MMM-DD. For example, enter January 25 as \"JAN-25\".\n* `number_of_installments`: Number of installments in the operation\n* `time_now`: Restriction window used to establish the time when the operation is performed, defined in the Coordinated Universal Time (UTC 0) zone. For example, a 10:59 PM-06:59 AM window specifies restrictions that apply from 11 PM to 7 AM in the UTC 0 time.\n* `week_day`: Day of the week when the operation occurs. Use the full lowercase weekday name. Valid values: sunday, monday, tuesday, wednesday, thursday, friday, saturday.\n* `authentication_method`:  Determine whether restrictions should be applied for specific authentication methods. For a control to be valid, it must be a code defined by the Field 60.8/Positions 9-10 for Visa operations or as specified by each card network. Valid only for card network operations.\n* `is_token_present`: Boolean that indicates whether a token card is present in the evaluation request. Valid only for card network operations.\n* `initiation_mode`: Payment initiation mode. Valid only for card network operations.\n   - `moto`: Payments made through mail order or telephone.\n   - `mit`: Merchant-initiated transactions.\n* `acquirer_country_code`: Three-letter country code (ISO 3166-1) representing the location of the acquiring bank or financial institution. Valid only for card network operations.\n* `is_cavv_present`: Boolean indicating that the CAVV field is present. CAVV stands for cardholder authentication verification value. Valid only for card network operations.\n* `avr`: String indicating that the transaction is a card network Account Verification Request (AVR) transaction. AVR transactions differ from standard authorizations in that they are typically zero-value and are used for card network verification flows. Currently, the only supported value for this attribute is `mtt`, which is the Mobility & Transport Transaction (MTT) type.\n* `operation_type`: Type of operation being performed. Allowed values are:\n  - `debit` - debit transaction\n  - `credit` - credit transaction\n  - `none` -  transaction that doesn't have a financial impact on the account balance, even though an authorization event occurs. These transactions still exist in the authorization flow, but they don't generate balance movement. AVR (Account Verification Request) is one example of this type of transaction with a zero‑amount authorization.\n",
            "enum": [
              "balance",
              "amount",
              "merchant_category_code",
              "week_day",
              "month_day",
              "time_now",
              "entry_mode",
              "merchant_id",
              "country_code",
              "number_of_installments",
              "is_physical_card_present",
              "is_device_registered",
              "is_tra_exemption_requested",
              "is_pin_validated_offline",
              "authentication_method",
              "is_token_present",
              "initiation_mode",
              "acquirer_country_code",
              "is_cavv_present",
              "avr",
              "operation_type"
            ]
          },
          "operator": {
            "type": "string",
            "enum": [
              "eq",
              "neq",
              "lt",
              "lte",
              "gt",
              "gte",
              "in",
              "nin",
              "bt",
              "in_group",
              "not_in_group"
            ],
            "description": "Condition type evaluation\n* eq - equal to value\n* neq - not equal to value\n* lt - lower than value\n* lte - lower than or equal to value\n* gt - greater than value\n* gte - greater than or equal to value\n* in - includes value\n* nin - does not include value\n* bt - between two values\n* in_group - in attribute group\n* not_in_group - not in attribute group\n"
          },
          "value": {
            "type": "string",
            "description": "Value to compare",
            "example": "10000"
          }
        },
        "required": [
          "attribute",
          "operator",
          "value"
        ]
      },
      "CurrencyCode": {
        "type": "string",
        "example": "BRL",
        "description": "Flex control currency code (ISO 4217). Defines the precision used for monetary values such as `max_limit`, `available_limit`, and `condition.value`.\n"
      },
      "CustomCode": {
        "type": "string",
        "description": "Alphanumeric three-character custom code. This can be an alternative custom code. When the platform denies a control evaluation, it returns the custom code that provides the precise reason for the denial by the anti-fraud solution.\n",
        "minLength": 1,
        "maxLength": 3,
        "example": "A1B"
      },
      "CustomerFlexControlsResponse": {
        "type": "object",
        "description": "Flex control response.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Flex control ID is auto-generated at creation time.\n",
            "format": "uuid",
            "example": "89cbdadc-860b-4275-a5cd-d9d892fd3869"
          },
          "type": {
            "$ref": "#/components/schemas/CustomerType"
          },
          "processing_codes": {
            "$ref": "#/components/schemas/ProcessingCodes"
          },
          "rule_reference_id": {
            "type": "string",
            "example": "purchase-1M",
            "description": "ID of program-level flex control. Only present in generic flex controls created for the entire program."
          },
          "name": {
            "$ref": "#/components/schemas/Name"
          },
          "account_id": {
            "type": "integer",
            "example": 8988000,
            "format": "int64",
            "description": "Account ID"
          },
          "customer_id": {
            "type": "integer",
            "format": "int64",
            "description": "Customer ID",
            "example": 99999999
          },
          "card_ids": {
            "type": "array",
            "description": "Card ID list",
            "items": {
              "type": "number",
              "format": "int64"
            },
            "example": [
              11111,
              22222
            ]
          },
          "currency_code": {
            "$ref": "#/components/schemas/CurrencyCode"
          },
          "max_limit": {
            "$ref": "#/components/schemas/MaxLimit"
          },
          "max_transactions": {
            "$ref": "#/components/schemas/MaxTransactions"
          },
          "max_amount": {
            "$ref": "#/components/schemas/MaxAmount"
          },
          "available_amount": {
            "$ref": "#/components/schemas/AvailableAmount"
          },
          "available_transactions": {
            "$ref": "#/components/schemas/AvailableTransactions"
          },
          "limit_duration": {
            "$ref": "#/components/schemas/LimitDuration"
          },
          "reset_datetime": {
            "$ref": "#/components/schemas/ResetDatetime"
          },
          "time_zone": {
            "$ref": "#/components/schemas/TimeZone"
          },
          "reset_period": {
            "$ref": "#/components/schemas/ResetPeriod"
          },
          "reset_strategy": {
            "$ref": "#/components/schemas/ResetStrategy"
          },
          "available_limit": {
            "$ref": "#/components/schemas/AvailableLimit"
          },
          "conditions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Condition"
            },
            "example": [
              {
                "attribute": "balance",
                "operator": "gt",
                "value": "10000"
              }
            ]
          },
          "active": {
            "$ref": "#/components/schemas/Active"
          },
          "deny_code": {
            "$ref": "#/components/schemas/DenyCode"
          },
          "response_code": {
            "$ref": "#/components/schemas/ResponseCode"
          },
          "custom_code": {
            "$ref": "#/components/schemas/CustomCode"
          },
          "evaluation_order": {
            "$ref": "#/components/schemas/EvaluationOrder"
          },
          "card_mode": {
            "$ref": "#/components/schemas/CardMode"
          },
          "customized": {
            "$ref": "#/components/schemas/Customized"
          }
        },
        "required": [
          "id",
          "type",
          "account_id"
        ]
      },
      "Customized": {
        "type": "boolean",
        "example": true,
        "description": "Indicates whether the flex control is updated at the account level or customer level (`true`) or managed at the program level (`false`).\n\nTo revert a customized flex control back to program-level management, call [Update account flex control](ref:patch-v1-accounts-flex-control) or [Update customer flex control](ref:patch-v1-customers-flex-control) and set `customized` as `false`.\n"
      },
      "DenyCode": {
        "type": "string",
        "description": "Deny code related to restriction.\nThis code is returned when the evaluation does not meet the conditions.\n",
        "example": "ERR_VAL_BALANCE"
      },
      "ErrorDetail": {
        "type": "object",
        "description": "Error detail.",
        "properties": {
          "location": {
            "type": "string",
            "example": "payload.entity_type",
            "description": "Identifies where the request is causing an error."
          },
          "message": {
            "type": "string",
            "description": "Description of error",
            "example": "`entity_type` should be `legal_person` or `natural_person`"
          }
        }
      },
      "ErrorResponse": {
        "type": "object",
        "description": "Error response",
        "properties": {
          "message": {
            "type": "string",
            "description": "Error description"
          },
          "error_code": {
            "type": "string",
            "description": "Error code ID",
            "deprecated": true
          },
          "code": {
            "description": "Error code ID",
            "type": "string"
          }
        }
      },
      "ErrorResponseWithDetails": {
        "type": "object",
        "description": "Error response",
        "properties": {
          "message": {
            "type": "string",
            "description": "Error description"
          },
          "details": {
            "type": "array",
            "description": "Provides more information about the error message.",
            "items": {
              "$ref": "#/components/schemas/ErrorDetail"
            }
          },
          "error_code": {
            "type": "string",
            "description": "Error code ID",
            "deprecated": true
          },
          "code": {
            "type": "string",
            "description": "Error code ID"
          }
        }
      },
      "EvaluationOrder": {
        "type": "integer",
        "format": "int64",
        "description": "Order in which the control is evaluated. If this value is not provided, the control is evaluated after the controls with the configured `evaluation_order` value.\n",
        "minimum": 1,
        "maximum": 99
      },
      "GetAllAccountCustomerFlexControlsResponse": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/AccountCustomerFlexControlsResponse"
        }
      },
      "LimitDuration": {
        "type": "string",
        "description": "Flex control limit period duration (ISO 8601 format).\nFor example, if a flex control sets a spending limit of $500, and `limit_duration` is set to one month (`P1M`), then the user cannot spend more than $500 from the account in any one month period.\n",
        "example": "P1M"
      },
      "MaxAmount": {
        "type": "integer",
        "minimum": 1,
        "format": "int64",
        "description": "Maximum accumulated amount allowed. Once met or exceeded, subsequent transactions are declined by the evaluation control flow. Valid only for flex controls with the `type` of `cumulative_limit`.\nNote that the value must be calculated as follows.\n\nvalue = floatNumber × 10^X, where X is the number of digits after the decimal separator for the currency defined in ISO 4217.\n\nFor example, if you want to set the value 499.99 for USD currency transactions, where the number of decimal places is 2, you must set the value to `49999` (499.99 × 10²).\n\nIf you want to set the value 499 for JPY currency transactions, where the number of decimal places is 0, you must set the value to `499` (499.0 × 10^0 = 499.0 × 1 - in other words, the value doesn't change).\n",
        "example": 100000
      },
      "MaxLimit": {
        "type": "integer",
        "minimum": 1,
        "format": "int64",
        "description": "Defines the maximum limit for the control. Its meaning depends on the flex control `type`.\n  * For `spending_limit` controls, `max_limit` represents the maximum spending amount allowed.\n  * For `usage_limit` controls, `max_limit` represents the maximum number of transactions allowed.\n\nOnce met or exceeded, any subsequent transactions are declined by evaluation control flow.\n\nFor spending limits, note that this value is an integer. Since global currencies vary in the number of digits that are allowed after the decimal point, you must convert the actual maximum spending limit into an integer value to use in this field. To do this, use the following formula.\n\nvalue = floatNumber × 10^X, where X is the number of digits after the decimal separator for the currency as defined in ISO 4217.\n\nFor example, if you want to set the value 499.99 for BRL currency transactions, where the number of decimal places is 2, you must set it to `49999` (499.99 × 10²).\n\nIf you want to set the value 499 for JPY currency transactions, where the number of decimal places is 0, you must set it to `4999` (4999.0 × 10^0 = 4999.0 × 1 - in other words, the value doesn't change.)\n\nThis field is **REQUIRED** for flex controls with the `type` of `spending_limit` and `usage_limit`, and it does not apply to flex controls with the `type` of `restriction` and `cumulative_limit`.\n",
        "example": 1000
      },
      "MaxTransactions": {
        "type": "integer",
        "minimum": 1,
        "format": "int64",
        "description": "Maximum number of transactions allowed. Once met or exceeded, subsequent transactions are declined by the evaluation control flow. Valid only for flex controls with the `type` of `cumulative_limit`.\n",
        "example": 10
      },
      "Name": {
        "type": "string",
        "description": "Flex control name",
        "example": "Purchase 1M limit"
      },
      "ProcessingCodes": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "Processing codes list for evaluating flex control conditions. If the value is empty, the flex control applies to any processing code.\n",
        "example": [
          "07000",
          "07001"
        ]
      },
      "ResetDatetime": {
        "type": "string",
        "format": "date-time",
        "description": "The exact date and time of the next reset for the flex control's spending window, in RFC-3339 format. This value is response-only: it is calculated by the platform and is never accepted in requests.\n\nWhen `reset_period` is defined, the reset follows the configured schedule (for example, `month_day: 10` resets on the 10th day of every month). When `reset_period` is omitted, the reset occurs at the control's creation date and time plus `limit_duration`.\n\nThis value is recalculated whenever an authorization is evaluated. If no authorizations have been processed since the last reset, it may still point to a reset datetime that has already passed.\n\nThis field is returned only for flex controls with the `type` of `spending_limit` or `usage_limit`.\n",
        "example": "2022-03-08T21:19:55Z"
      },
      "ResetPeriod": {
        "type": "object",
        "description": "Enables the specification of reset periods for accumulators based on the duration in `limit_duration`. When this field is set, it must follow the RFC 3339 pattern from ISO 8601. When `reset_period` changes, the `avaliable_limit` is reset.\n",
        "properties": {
          "month_day": {
            "type": "number",
            "description": "Month day to reset. Can only be used when `limit_duration` is monthly or yearly (in the yearly case, it must be combined with the `month` parameter).",
            "minimum": 1,
            "maximum": 28
          },
          "month": {
            "type": "number",
            "description": "Numeric day of the month to reset the flex control. Can only be used when `limit_duration` is yearly.",
            "minimum": 1,
            "maximum": 12
          },
          "week_day": {
            "type": "string",
            "description": "Week day to reset. Can only be used when `limit_duration` is weekly.",
            "example": "monday",
            "enum": [
              "monday",
              "tuesday",
              "wednesday",
              "thursday",
              "friday",
              "saturday",
              "sunday"
            ]
          },
          "time": {
            "type": "string",
            "description": "Time to reset flex control in time zone defined by control. Include only hours, minutes, and AM/PM. For example, `11:00PM` for 11PM or `00:00AM` for midnight. You can use `12` in hours as an alternative to `00` (for example,`12:59AM` is the same as `00:59AM`).\n",
            "example": "3:00AM"
          },
          "utc_time": {
            "type": "string",
            "deprecated": true,
            "description": "*Note: This field has been deprecated, use `time` instead.*\nTime to reset the flex control in the UTC 0 time. Include only hours, minutes, and AM/PM. For example, `11:00PM` for 11PM or `00:00AM` for midnight. You can use `12` in hours as an alternative to `00` (for example,`12:59AM` is the same as `00:59AM`).\n",
            "example": "3:00AM"
          }
        }
      },
      "ResetStrategy": {
        "type": "object",
        "description": "The strategy to reset the accumulators. Valid only for flex controls with the `type` of `cumulative_limit`.",
        "properties": {
          "reset_trigger": {
            "type": "object",
            "description": "Trigger that resets the accumulators",
            "properties": {
              "is_password_present": {
                "type": "boolean",
                "description": "Indicates whether the client entered a password.\n\nWhen the cardholder completes an authorization, the control accumulators for transactions and/or amount are reset if the transaction's `is_password_present` matches the configured trigger value.\n"
              },
              "is_pin_validated_offline": {
                "type": "boolean",
                "description": "Indicates whether the pin was validated offline, triggering a reset of the accumulator when true"
              },
              "authentication_method": {
                "type": "array",
                "description": "Indicates which authentication methods should trigger a reset of the flex-control accumulator.",
                "items": {
                  "type": "string",
                  "format": "text"
                },
                "example": [
                  "05"
                ]
              }
            }
          }
        }
      },
      "ResponseCode": {
        "type": "string",
        "description": "Alphanumeric two-character response code. This can be the standard card network response code. When the platform denies a transaction, it returns the response code that provides the precise reason for the denial by the card network.\n",
        "minLength": 2,
        "maxLength": 2,
        "example": "57"
      },
      "TimeZone": {
        "type": "string",
        "description": "IANA Time Zone database, such as \"America/New_York\".\nThis attribute is used to evaluate the flex control using the desired time zone for condition attributes such as `week_day`, `month_day`, `time_now`, and `reset_period`.\nIf `time_zone` is empty, the control is evaluated using the UTC time zone.\n",
        "example": "America/Sao_Paulo"
      },
      "CustomerType": {
        "type": "string",
        "enum": [
          "spending_limit",
          "usage_limit",
          "restriction",
          "cumulative_limit"
        ],
        "description": "Flex control scope\n  * `usage_limit`: Cumulative flex control that increases by one until `max_limit`\n  * `spending_limit`: Cumulative flex control that increases by the current transaction's `amount` until `max_limit`\n  * `cumulative_limit`: Cumulative flex control that increases by one transaction or by transaction amount until a condition is met, applies only to flex controls with associated `card_ids`, and requires a `reset_strategy`\n  * `restriction`: Restriction flex control that only validates specified conditions\n"
      }
    },
    "examples": {
      "ERUL0001": {
        "description": "Internal server error example.",
        "value": {
          "message": "internal server error",
          "error_code": "RULREP0500",
          "code": "ERUL0001"
        }
      },
      "ERUL0801": {
        "description": "error validating request header example",
        "value": {
          "message": "error validating request header",
          "error_code": "RULVAL0400",
          "details": [
            {
              "location": "header.x-tenant",
              "message": "missing x-tenant"
            }
          ],
          "code": "ERUL0801"
        }
      },
      "ERUL0802": {
        "description": "Error validating request path example",
        "value": {
          "message": "error validating request path",
          "error_code": "RULVAL0400",
          "details": [
            {
              "location": "path.param.accountId",
              "message": "accountId must be a valid integer"
            }
          ],
          "code": "ERUL0802"
        }
      },
      "ERUL0804": {
        "description": "Customer's spending limits not found for account",
        "value": {
          "message": "Customer's spending limits not found for account",
          "error_code": "RULVAL0400",
          "code": "ERUL0804"
        }
      }
    }
  },
  "tags": [
    {
      "name": "Account flex controls",
      "description": "API endpoints for managing account flex controls."
    }
  ],
  "paths": {
    "/v1/accounts/{accountId}/customers/flex-controls": {
      "get": {
        "operationId": "get-v1-accounts-customers-flex-controls",
        "summary": "Get account customers' flex controls",
        "description": "Get flex controls for all customers related to an account.\n\nNOTE: This endpoint requires an account-specific access token.\n",
        "tags": [
          "Account flex controls"
        ],
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "accountId",
            "description": "Account ID",
            "in": "path",
            "required": true,
            "schema": {
              "type": "number",
              "example": 500000
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK. Customer's flex controls for the account were found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetAllAccountCustomerFlexControlsResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad request. Validation error on request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseWithDetails"
                },
                "examples": {
                  "error validating request header": {
                    "$ref": "#/components/examples/ERUL0801"
                  },
                  "error validating request path": {
                    "$ref": "#/components/examples/ERUL0802"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found. No customer's flex controls were found for the account.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "customer's spending limits not found for account": {
                    "$ref": "#/components/examples/ERUL0804"
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "internal server error": {
                    "$ref": "#/components/examples/ERUL0001"
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
```