Payment Rules

List payment rules

Changed on

Lists the payment rules on an account.

get/payment_rules

Request

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

Query parameters

account_id, string

Only return rules belonging to this account. Defaults to the account the request is acting for.

status, 'active' | 'inactive' | 'deleted'

Only return rules with this status.

action, 'allow' | 'block' | 'review' | 'enforce_3ds'

Only return rules that take this action.

order, 'created_at'

The field to sort by.

direction, 'asc' | 'desc'

The sort direction.

first, integer

Number of results to return from the start of the range.

after, string

Return results after this cursor. Use page_info.end_cursor from the previous response to fetch the next page.

last, integer

Number of results to return from the end of the range.

before, string

Return results before this cursor. Use page_info.start_cursor from the previous response to fetch the previous page.

Headers

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

Pins the request to a dated API version.

Response

A list of payment rules

object required
data, PaymentRule[] required
page_info, object required

Example response

{
  "data": [
    {
      "account_id": "biz_xxxxxxxxxxxxxx",
      "action": "block",
      "conditions": {
        "all": [
          {
            "field": "amount_in_usd",
            "operator": "gte"
          }
        ]
      },
      "created_at": "2026-01-01T12:00:00.000Z",
      "id": "prule_xxxxxxxxxxxxxx",
      "metadata": {},
      "name": "Block high risk",
      "status": "active",
      "updated_at": "2026-01-01T12:00:00.000Z"
    }
  ],
  "page_info": {
    "start_cursor": "WyJjdXJzb3IiLDFd"
  }
}

Changes

    • warning

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

    • info

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

    • info

      removed the postal_code_check enum value from the data/items/conditions/all/items/field response property for the response status