Payment Rules

Lists the payment attributes a rule condition can read, with the operators and values each one accepts. Small and returned in full on one page.

get/payment_rules/fields

Request

  • Base URL
    https://api.whop.com/api/v1
  • Auth
    HTTP bearer

Query parameters

account_id, string

The account to list fields for. Defaults to the account the request is acting for.

Headers

Api-Version-Date, string
Example:2026-11-30

Pins the request to a dated API version.

Response

The fields a condition can read, with the operators and values each one accepts

object required
data, PaymentRuleField[] required
page_info, object required

Example response

{
  "data": [
    {
      "actions": [
        "allow"
      ],
      "field": "risk_score",
      "maximum": 100,
      "operators": [
        "eq"
      ],
      "options": [
        {
          "label": "Abkhazia",
          "value": "AB"
        }
      ],
      "stage": "before_authorization",
      "type": "integer"
    }
  ],
  "page_info": {
    "start_cursor": "WyJjdXJzb3IiLDFd"
  }
}

Changes

    • warning

      added the new avs_check enum value to the data/items/field response property for the response status

    • info

      added the new optional query request parameter account_id

    • info

      removed the address_line1_check enum value from the data/items/field response property for the response status

    3 more changes in this revision