{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/revolut/main/json-schema/revolut-merchant-controls-schema-schema.json",
  "title": "MerchantControlsSchema",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/revolut-card-invitations-api-openapi.yml#/components/schemas/MerchantControlsSchema",
  "type": "object",
  "required": [
    "control_type",
    "merchant_ids"
  ],
  "properties": {
    "control_type": {
      "type": "string",
      "enum": [
        "block",
        "allow"
      ],
      "description": "The type of control to apply."
    },
    "merchant_ids": {
      "type": "array",
      "minItems": 1,
      "maxItems": 20,
      "description": "The list of IDs of merchants to which the control applies.\n\n:::tip\nTo find merchant IDs, check transaction details (→ `merchant.id`).\nYou can fetch transaction details for a [specific transaction](https://developer.revolut.com/docs/api/business#get-transaction#response) or for [all transactions](https://developer.revolut.com/docs/api/business#get-transactions#response).\n:::",
      "items": {
        "type": "string",
        "format": "uuid"
      }
    }
  }
}