Skip to main content
GET
List an organization's payment policy conditions
This is the catalog a PAYMENT policy’s conditions are checked against on create and update: a field that is not listed here (except a card’s custom field, below), an operator a field does not accept, or a value of the wrong type is refused. Build your policy editor from it. subjects are the payments a PAYMENT policy governs: Pix payments (PIX), boleto payments (BOLETO) and wallet transfer requests (WALLET_TRANSFER_REQUEST). Each field says on which of them it is present (availability); a condition on a field the payment does not carry is false. operators describes every operator and the kind of value it takes; viewOperator and viewType say which operators to offer and which input to render for each field. The fixed fields come first, followed by one field for each active custom field of the organization on transactions (customFields.<slug>), wallets (wallet.customFields.<slug>), vehicles (vehicle.customFields.<slug>) and users (requester.customFields.<slug>) — text, number, boolean, date and selection fields; file and customer fields cannot be used in a condition. A condition on a card’s custom field (card.customFields.<slug>) is also accepted but not listed: no payment carries a card, so it never matches. Labels and descriptions are in Portuguese. Any member of the organization can read the catalog.

Path Parameters

realmId
string<uuid>
required

ID of your realm.

Format: UUID

organizationId
string<uuid>
required

ID of the organization. Its active custom fields are added to the catalog.

Format: UUID

Response

Successful response

The condition catalog of PAYMENT business policies.

context
enum<string>
required

Always PAYMENT.

Available options:
PAYMENT
Example:

"PAYMENT"

subjects
string[]
required

The payments a PAYMENT policy governs — the values of the subjectType field.


Example: ["PIX","BOLETO","WALLET_TRANSFER_REQUEST"]

logic
string[]
required

The values conditions.logic and each group's logic accept.


Example: ["AND","OR"]

operators
object[]
required

Every operator, with the kind of value it takes.

fields
object[]
required

The fields a condition can test: the fixed fields, then one per active custom field of the organization (text, number, boolean, date and selection custom fields only). A condition on a card's custom field is accepted too, but not listed.