Slash · Schema

SpendingConstraint

A constraint that can be applied to a CardGroupSpendingRule

CompanyBankingPaymentsFinancial ServicesFintechCorporate CardsBusiness BankingInvoicingExpense ManagementTreasuryFDX

Properties

Name Type Description
merchantCategoryRule objectnull
merchantRule objectnull
spendingRule objectnull
countryRule objectnull
merchantCategoryCodeRule objectnull
View JSON Schema on GitHub

JSON Schema

slash-spending-constraint-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/slash/main/json-schema/slash-spending-constraint-schema.json",
  "title": "SpendingConstraint",
  "description": "A constraint that can be applied to a CardGroupSpendingRule",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/slash-card-api-openapi.yml#/components/schemas/SpendingConstraint",
  "type": "object",
  "properties": {
    "merchantCategoryRule": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "merchantCategories": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "restriction": {
          "$ref": "#/$defs/Restriction",
          "x-entrypoint": {
            "virtualPath": "schemas/Restriction",
            "sourcePath": "schemas/Restriction.yaml",
            "title": "Restriction",
            "origin": "./src/publicApi"
          }
        }
      },
      "required": [
        "merchantCategories",
        "restriction"
      ]
    },
    "merchantRule": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "merchants": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "restriction": {
          "$ref": "#/$defs/Restriction",
          "x-entrypoint": {
            "virtualPath": "schemas/Restriction",
            "sourcePath": "schemas/Restriction.yaml",
            "title": "Restriction",
            "origin": "./src/publicApi"
          }
        }
      },
      "required": [
        "merchants",
        "restriction"
      ]
    },
    "spendingRule": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "utilizationLimit": {
          "type": "object",
          "properties": {
            "timezone": {
              "type": "string",
              "description": "IANA timezone string. Limits always reset at midnight of the timezone specified. If no timezone is specified, then UTC time is used."
            },
            "limitAmount": {
              "$ref": "#/$defs/Money",
              "x-entrypoint": {
                "virtualPath": "schemas/Money",
                "sourcePath": "schemas/Money.yaml",
                "title": "Money",
                "origin": "./src/publicApi"
              }
            },
            "preset": {
              "type": "string",
              "enum": [
                "daily",
                "weekly",
                "monthly",
                "yearly",
                "collective"
              ]
            },
            "startDate": {
              "type": "string",
              "description": "Format ISO-8601. A day that equals today or the past. This is optional.If the `preset` is \"daily\", this value is ignored. If the `preset` is \"weekly\", \"monthly\" or \"yearly\", then the this value is used to compute when the limit should start limit."
            }
          },
          "required": [
            "limitAmount",
            "preset"
          ]
        },
        "utilizationLimitV2": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "timezone": {
                "type": "string",
                "description": "IANA timezone string. Limits always reset at midnight of the timezone specified. If no timezone is specified, then UTC time is used."
              },
              "limitAmount": {
                "$ref": "#/$defs/Money",
                "x-entrypoint": {
                  "virtualPath": "schemas/Money",
                  "sourcePath": "schemas/Money.yaml",
                  "title": "Money",
                  "origin": "./src/publicApi"
                }
              },
              "preset": {
                "type": "string",
                "enum": [
                  "daily",
                  "weekly",
                  "monthly",
                  "yearly",
                  "collective"
                ]
              },
              "startDate": {
                "type": "string",
                "description": "Format ISO-8601. A day that equals today or the past. This is optional.If the `preset` is \"daily\", this value is ignored. If the `preset` is \"weekly\", \"monthly\" or \"yearly\", then the this value is used to compute when the limit should start limit."
              }
            },
            "required": [
              "limitAmount",
              "preset"
            ]
          }
        },
        "transactionSizeLimit": {
          "type": "object",
          "properties": {
            "minimum": {
              "$ref": "#/$defs/Money",
              "x-entrypoint": {
                "virtualPath": "schemas/Money",
                "sourcePath": "schemas/Money.yaml",
                "title": "Money",
                "origin": "./src/publicApi"
              }
            },
            "maximum": {
              "$ref": "#/$defs/Money",
              "x-entrypoint": {
                "virtualPath": "schemas/Money",
                "sourcePath": "schemas/Money.yaml",
                "title": "Money",
                "origin": "./src/publicApi"
              }
            }
          }
        }
      }
    },
    "countryRule": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "countries": {
          "description": "A 2 digit country code",
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "restriction": {
          "$ref": "#/$defs/Restriction",
          "x-entrypoint": {
            "virtualPath": "schemas/Restriction",
            "sourcePath": "schemas/Restriction.yaml",
            "title": "Restriction",
            "origin": "./src/publicApi"
          }
        }
      },
      "required": [
        "countries",
        "restriction"
      ]
    },
    "merchantCategoryCodeRule": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "merchantCategoryCodes": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "restriction": {
          "$ref": "#/$defs/Restriction",
          "x-entrypoint": {
            "virtualPath": "schemas/Restriction",
            "sourcePath": "schemas/Restriction.yaml",
            "title": "Restriction",
            "origin": "./src/publicApi"
          }
        }
      },
      "required": [
        "merchantCategoryCodes",
        "restriction"
      ]
    }
  },
  "x-entrypoint": {
    "virtualPath": "schemas/SpendingConstraint",
    "sourcePath": "schemas/SpendingConstraint.yaml",
    "title": "SpendingConstraint",
    "origin": "./src/publicApi"
  },
  "$defs": {
    "Money": {
      "type": "object",
      "description": "Represents a monetary value",
      "properties": {
        "amountCents": {
          "type": "integer",
          "description": "The amount in cents"
        }
      },
      "required": [
        "amountCents"
      ],
      "x-entrypoint": {
        "virtualPath": "schemas/Money",
        "sourcePath": "schemas/Money.yaml",
        "title": "Money",
        "origin": "./src/publicApi"
      },
      "title": "Money"
    },
    "Restriction": {
      "type": "string",
      "enum": [
        "allowlist",
        "blacklist"
      ],
      "x-entrypoint": {
        "virtualPath": "schemas/Restriction",
        "sourcePath": "schemas/Restriction.yaml",
        "title": "Restriction",
        "origin": "./src/publicApi"
      },
      "title": "Restriction"
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/slash-spending-constraint"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.