Payment Rules

Retrieve a payment rule

Changed on

Retrieves a payment rule.

get/payment_rules/{id}

Request

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

Path parameters

id, string required

The payment rule ID.

Headers

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

Pins the request to a dated API version.

Response

The requested rule

PaymentRule required
account_id, string required

Account ID, prefixed biz_.

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

What this account's rule requests when every condition matches. One applicable account-rule action wins, in this order: allow, block, review, enforce_3ds. An allow overrides this account's other rules, never Whop's own fraud controls. A review requests authorization without capture for an eligible card payment through Whop Payments. Off-session renewals require off_session_payment_rules to be enabled. Automatic capture is scheduled for 48 hours after authorization. Capture or void the payment before then to decide sooner. Capture may complete later or fail. Review is skipped for unsupported methods, numbered invoice payments, and payments already configured for manual capture. An enforce_3ds is skipped when the account rule cannot apply a challenge. Other 3DS requirements still apply. A rule on avs_check or cvv_check accepts block or review. Whop authorizes a freshly entered card first. When the rule matches the bank's result, block voids and declines the payment. A review holds it for you to capture or void, with the same automatic capture.

conditions, PaymentRuleConditions required

The conditions a payment is matched against. Up to 10 conditions, and 8 KiB once serialized.

created_at, string required

When the rule was created, as an ISO 8601 timestamp.

deleted_at, string nullable required

When the rule was deleted, as an ISO 8601 timestamp. null unless status is deleted.

id, string required

Payment rule ID, prefixed prule_.

metadata, object required

Custom string-to-string values for your integration. Maximum 50 keys, 40 characters per key, 500 characters per value.

name, string required

A name for this rule. Up to 255 characters.

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

Whether the rule is applied to payments. A deleted rule is kept so the payments it already decided still name it.

updated_at, string required

When the rule was last changed, as an ISO 8601 timestamp.

Example response

{
  "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"
}

Changes

    • warning

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

    • info

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

    • info

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