Payment Rules
List fields
Changed onLists 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 URLhttps://api.whop.com/api/v1
- AuthHTTP 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, Payment Rule Field[] 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_checkenum value to thedata/items/fieldresponse property for the response status - info
added the new optional
queryrequest parameteraccount_id - info
removed the
address_line1_checkenum value from thedata/items/fieldresponse property for the response status
3 more changes in this revision
- warning