> ## Documentation Index
> Fetch the complete documentation index at: https://developers.portao3.com.br/llms.txt
> Use this file to discover all available pages before exploring further.

# /realms/{realmId}/organizations/{organizationId}/business-policies/spend-review-conditions



## OpenAPI

````yaml /api-reference/ruleengine.openapi.json get /realms/{realmId}/organizations/{organizationId}/business-policies/spend-review-conditions
openapi: 3.0.3
info:
  title: Ruleengine
  version: 1.0.0
  description: >-
    Portão 3 ruleengine API. Generated by tools/openapi from code (routes +
    security) and the hand-written spec (request/response bodies). Confidence
    tiers: generated:typed=25 copied:manual=0 unknown=0.
servers:
  - url: https://api.ruleengine.v2.portao3.com.br/
    description: production
  - url: https://api.ruleengine.dev.3pers.com.br/
    description: development
security:
  - bearerAuth: []
tags:
  - name: Business Policies
  - name: Policy Evaluations
  - name: Policy Requests
paths:
  /realms/{realmId}/organizations/{organizationId}/business-policies/spend-review-conditions:
    get:
      tags:
        - Business Policies
      summary: >-
        /realms/{realmId}/organizations/{organizationId}/business-policies/spend-review-conditions
      operationId: >-
        getRealmsByRealmIdOrganizationsByOrganizationIdBusinessPoliciesSpendReviewConditions
      parameters:
        - name: realmId
          in: path
          required: true
          schema:
            type: string
        - name: organizationId
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  context:
                    type: string
                    enum:
                      - SPEND_REVIEW
                  subjects:
                    type: array
                    items:
                      type: string
                    description: The subject types a SPEND_REVIEW policy can govern.
                  logic:
                    type: array
                    items:
                      type: string
                    description: >-
                      The boolean operators available for `conditions.logic` and
                      each group.
                  operators:
                    type: array
                    items:
                      type: object
                      properties:
                        operator:
                          type: string
                        valueKind:
                          type: string
                          enum:
                            - single
                            - array
                            - none
                            - criteria-string
                          description: >-
                            `single` — one scalar value; `array` — a non-empty
                            array of values; `none` — no value at all (the
                            parameter is baked into the operator);
                            `criteria-string` — a natural-language sentence.
                        label:
                          type: string
                          description: pt-BR display label.
                        description:
                          type: string
                          description: >-
                            pt-BR description, including the operator's
                            pitfalls.
                      required:
                        - operator
                        - valueKind
                        - label
                        - description
                      description: One operator, and what kind of value it takes.
                  fields:
                    type: array
                    items:
                      type: object
                      properties:
                        field:
                          type: string
                          description: Dot path into the evaluated transaction body.
                        type:
                          type: string
                          enum:
                            - integer
                            - number
                            - string
                            - boolean
                            - enum
                            - date
                          description: How a field's condition value is typed on the wire.
                        unit:
                          type: string
                          enum:
                            - centavos
                          description: >-
                            Present on integer money fields: the amount is in
                            centavos.
                        enumValues:
                          type: array
                          items:
                            type: string
                          description: 'The allowed values, for `type: "enum"`.'
                        operators:
                          type: array
                          items:
                            type: string
                          description: >-
                            Every operator this field accepts — a superset of
                            `viewOperator`.
                        viewOperator:
                          type: array
                          items:
                            type: string
                          description: The operators a filter builder should offer.
                        viewType:
                          anyOf:
                            - type: object
                              properties:
                                type:
                                  type: string
                                  enum:
                                    - MONEY
                              required:
                                - type
                            - type: object
                              properties:
                                type:
                                  type: string
                                  enum:
                                    - NUMBER
                                prefix:
                                  type: string
                                suffix:
                                  type: string
                              required:
                                - type
                            - type: object
                              properties:
                                type:
                                  type: string
                                  enum:
                                    - TEXT
                              required:
                                - type
                            - type: object
                              properties:
                                type:
                                  type: string
                                  enum:
                                    - BOOLEAN
                              required:
                                - type
                            - type: object
                              properties:
                                type:
                                  type: string
                                  enum:
                                    - DATE
                              required:
                                - type
                            - type: object
                              properties:
                                type:
                                  type: string
                                  enum:
                                    - MULTI_SELECT
                                options:
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      id:
                                        type: string
                                      label:
                                        type: string
                                        description: pt-BR display label.
                                      icon:
                                        type: string
                                    required:
                                      - id
                                      - label
                                    description: >-
                                      One selectable value of a multi-select
                                      field.
                                  description: Static options, for enum-backed fields.
                                dynamicOptions:
                                  type: string
                                  enum:
                                    - WALLETS
                                    - CURRENCIES
                                    - USERS
                                  description: Option source the client resolves itself.
                              required:
                                - type
                          description: How to render the value input.
                        label:
                          type: string
                          description: pt-BR display label.
                        description:
                          type: string
                          description: >-
                            pt-BR description — a tooltip for the field,
                            including its pitfalls.
                        availability:
                          type: string
                          enum:
                            - always
                            - conditional
                          description: >-
                            `always` — every transaction carries it;
                            `conditional` — see `availabilityNote`.
                        availabilityNote:
                          type: string
                          description: >-
                            pt-BR — when the field is `conditional`, says under
                            what conditions it exists.
                        dateKind:
                          type: string
                          enum:
                            - CALENDAR_DATE
                            - INSTANT
                            - CLIENT_DAY
                          description: >-
                            Only for `type: "date"` — which day the stored value
                            names.
                        customField:
                          type: object
                          properties:
                            id:
                              type: string
                            slug:
                              type: string
                              description: >-
                                The stable client-facing key `field` is `<entity
                                prefix><slug>` of.
                            type:
                              type: string
                              description: >-
                                The identity `CustomFieldType` this row was
                                built from.
                            required:
                              type: boolean
                            mask:
                              type: string
                            entity:
                              type: string
                              description: >-
                                Which related entity's map the value is read
                                from — "transaction" is the payment's own root
                                map.
                            location:
                              type: string
                              description: >-
                                The identity custom-field location this row was
                                grounded against.
                          required:
                            - id
                            - slug
                            - type
                            - required
                            - entity
                            - location
                          description: >-
                            Present ONLY on a row generated per organization
                            from a custom-field definition — never on a static
                            catalog row. `field` is `<entity prefix><slug>`.
                      required:
                        - field
                        - type
                        - operators
                        - viewOperator
                        - viewType
                        - label
                        - description
                        - availability
                      description: >-
                        One field a SPEND_REVIEW business policy may condition
                        on.
                required:
                  - context
                  - subjects
                  - logic
                  - operators
                  - fields
                description: '`GET .../business-policies/spend-review-conditions` response.'
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````