> ## 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/payment-conditions



## OpenAPI

````yaml /api-reference/ruleengine.openapi.json get /realms/{realmId}/organizations/{organizationId}/business-policies/payment-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/payment-conditions:
    get:
      tags:
        - Business Policies
      summary: >-
        /realms/{realmId}/organizations/{organizationId}/business-policies/payment-conditions
      operationId: >-
        getRealmsByRealmIdOrganizationsByOrganizationIdBusinessPoliciesPaymentConditions
      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:
                      - PAYMENT
                  subjects:
                    type: array
                    items:
                      type: string
                    description: The payment subjects a PAYMENT 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 payment 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`: date fields also accept the
                            `DATE_WITHIN(n)` window form, and some text fields
                            accept `LLM_EVALUATE`, neither of which a filter
                            builder renders as a plain operator.
                        viewOperator:
                          type: array
                          items:
                            type: string
                          description: >-
                            The operators a filter builder should offer. A
                            subset of `operators`.
                        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: object
                          properties:
                            PIX:
                              type: string
                              enum:
                                - always
                                - conditional
                                - never
                              description: >-
                                Whether a field is present on a given payment
                                subject.
                            BOLETO:
                              type: string
                              enum:
                                - always
                                - conditional
                                - never
                              description: >-
                                Whether a field is present on a given payment
                                subject.
                            WALLET_TRANSFER_REQUEST:
                              type: string
                              enum:
                                - always
                                - conditional
                                - never
                              description: >-
                                Whether a field is present on a given payment
                                subject.
                          required:
                            - PIX
                            - BOLETO
                            - WALLET_TRANSFER_REQUEST
                        availabilityNote:
                          type: string
                          description: >-
                            pt-BR — when the field is `conditional`, says under
                            what conditions.
                        dateKind:
                          type: object
                          properties:
                            PIX:
                              type: string
                              enum:
                                - CALENDAR_DATE
                                - INSTANT
                                - CLIENT_DAY
                              description: >-
                                What day a date field's stored value NAMES.


                                - `CALENDAR_DATE` — a day on a calendar with no
                                meaningful time of day (a   boleto's due date, a
                                PIX cobv's due date). It is stored at midnight
                                UTC, so   the day it names is its **UTC** day.

                                - `INSTANT` — a real moment in time (a PIX QR
                                code's expiry). The day it falls   on is its
                                **America/Sao_Paulo** day.

                                - `CLIENT_DAY` — a custom-field DATE value: the
                                day the payer named, read as   the leading
                                `YYYY-MM-DD` of the stored string with no
                                timezone conversion.
                            BOLETO:
                              type: string
                              enum:
                                - CALENDAR_DATE
                                - INSTANT
                                - CLIENT_DAY
                              description: >-
                                What day a date field's stored value NAMES.


                                - `CALENDAR_DATE` — a day on a calendar with no
                                meaningful time of day (a   boleto's due date, a
                                PIX cobv's due date). It is stored at midnight
                                UTC, so   the day it names is its **UTC** day.

                                - `INSTANT` — a real moment in time (a PIX QR
                                code's expiry). The day it falls   on is its
                                **America/Sao_Paulo** day.

                                - `CLIENT_DAY` — a custom-field DATE value: the
                                day the payer named, read as   the leading
                                `YYYY-MM-DD` of the stored string with no
                                timezone conversion.
                            WALLET_TRANSFER_REQUEST:
                              type: string
                              enum:
                                - CALENDAR_DATE
                                - INSTANT
                                - CLIENT_DAY
                              description: >-
                                What day a date field's stored value NAMES.


                                - `CALENDAR_DATE` — a day on a calendar with no
                                meaningful time of day (a   boleto's due date, a
                                PIX cobv's due date). It is stored at midnight
                                UTC, so   the day it names is its **UTC** day.

                                - `INSTANT` — a real moment in time (a PIX QR
                                code's expiry). The day it falls   on is its
                                **America/Sao_Paulo** day.

                                - `CLIENT_DAY` — a custom-field DATE value: the
                                day the payer named, read as   the leading
                                `YYYY-MM-DD` of the stored string with no
                                timezone conversion.
                          required:
                            - PIX
                            - BOLETO
                            - WALLET_TRANSFER_REQUEST
                          description: >-
                            Only for `type: "date"` — which day the stored value
                            names, per subject.
                        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 an identity custom-field definition
                            (`customFieldConditionSpec.ts`) — never on a static
                            catalog row. The discriminator a filter builder
                            groups on (`customField !== undefined`). `field` is
                            `<entity prefix><slug>`; `entity` names which
                            related entity's map the value is read from.
                      required:
                        - field
                        - type
                        - operators
                        - viewOperator
                        - viewType
                        - label
                        - description
                        - availability
                      description: One authorable condition field.
                required:
                  - context
                  - subjects
                  - logic
                  - operators
                  - fields
                description: '`GET .../business-policies/payment-conditions` response.'
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````