PolicyRules
Type: object
Required means required within its containing object, when that object is present. Union/conditional constraints remain defined by the JSON Schema below.
| Field | Type | Presence | Description / constraints |
|---|---|---|---|
capabilities | object | Optional | Additional properties allowed |
capabilities.allow | Array of string | Optional | — |
capabilities.block | Array of string | Optional | — |
capabilities.require_approval | Array of string | Optional | — |
categories | object | Optional | Additional properties follow the schema below |
destinations | object | Optional | Additional properties allowed |
destinations.allowlist | Array of string | Optional | — |
destinations.default | allow, require_approval, block | Optional | — |
destinations.denylist | Array of string | Optional | — |
destinations.international | allow, require_approval, block | Optional | — |
destinations.new_recipients | allow, require_approval, block | Optional | — |
destinations.premium_rate | allow, require_approval, block | Optional | — |
hours | anyOf: object; null | Optional | — |
purchases | object | Optional | Additional properties allowed |
purchases.merchant_denylist | Array of string | Optional | — |
purchases.monthly_limit_cents | anyOf: integer; null | Optional | — |
purchases.new_merchants | allow, require_approval, block | Optional | — |
purchases.over_limit | require_approval, block | Optional | — |
purchases.per_purchase_limit_cents | anyOf: integer; null | Optional | — |
spend | object | Optional | Additional properties allowed |
spend.monthly_limit_cents | anyOf: integer; null | Optional | — |
spend.per_action_limit_cents | anyOf: integer; null | Optional | — |
JSON Schema
json
{
"additionalProperties": true,
"properties": {
"capabilities": {
"additionalProperties": true,
"properties": {
"allow": {
"items": {
"type": "string"
},
"type": "array"
},
"block": {
"items": {
"type": "string"
},
"type": "array"
},
"require_approval": {
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"categories": {
"additionalProperties": {
"enum": [
"allow",
"require_approval",
"block"
],
"type": "string"
},
"type": "object"
},
"destinations": {
"additionalProperties": true,
"properties": {
"allowlist": {
"items": {
"examples": [
"+12125550101"
],
"pattern": "^\\+[1-9][0-9]{6,14}$",
"type": "string"
},
"type": "array"
},
"default": {
"enum": [
"allow",
"require_approval",
"block"
],
"type": "string"
},
"denylist": {
"items": {
"examples": [
"+12125550101"
],
"pattern": "^\\+[1-9][0-9]{6,14}$",
"type": "string"
},
"type": "array"
},
"international": {
"enum": [
"allow",
"require_approval",
"block"
],
"type": "string"
},
"new_recipients": {
"enum": [
"allow",
"require_approval",
"block"
],
"type": "string"
},
"premium_rate": {
"enum": [
"allow",
"require_approval",
"block"
],
"type": "string"
}
},
"type": "object"
},
"hours": {
"anyOf": [
{
"additionalProperties": true,
"properties": {
"timezone": {
"type": "string"
},
"windows": {
"items": {
"additionalProperties": true,
"properties": {
"days": {
"items": {
"maximum": 6,
"minimum": 0,
"type": "integer"
},
"type": "array"
},
"end": {
"type": "string"
},
"start": {
"type": "string"
}
},
"type": "object"
},
"type": "array"
}
},
"type": "object"
},
{
"type": "null"
}
]
},
"purchases": {
"additionalProperties": true,
"properties": {
"merchant_denylist": {
"items": {
"type": "string"
},
"type": "array"
},
"monthly_limit_cents": {
"anyOf": [
{
"minimum": 1,
"type": "integer"
},
{
"type": "null"
}
]
},
"new_merchants": {
"enum": [
"allow",
"require_approval",
"block"
],
"type": "string"
},
"over_limit": {
"enum": [
"require_approval",
"block"
],
"type": "string"
},
"per_purchase_limit_cents": {
"anyOf": [
{
"minimum": 1,
"type": "integer"
},
{
"type": "null"
}
]
}
},
"type": "object"
},
"spend": {
"additionalProperties": true,
"properties": {
"monthly_limit_cents": {
"anyOf": [
{
"minimum": 1,
"type": "integer"
},
{
"type": "null"
}
]
},
"per_action_limit_cents": {
"anyOf": [
{
"minimum": 1,
"type": "integer"
},
{
"type": "null"
}
]
}
},
"type": "object"
}
},
"type": "object"
}