PayPal · Schema

AlertInput

PayPalBillingCommerceDisputesInvoicesOrderPaymentsPayoutsSubscriptionTokensWebhookAgentic CommercePayment Processing

Properties

Name Type Description
type object
code string The unique code to identify the alert.
metric_code string The code of the metric associated with the alert. Required for metric-specific alert types (METRIC_CURRENT_USAGE_AMOUNT and METRIC_CURRENT_USAGE_UNITS).
name string The name of the alert.
thresholds array List of thresholds that will trigger this alert. At least one threshold is required.
View JSON Schema on GitHub

JSON Schema

paypal-alert-input-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/paypal/json-schema/paypal-alert-input-schema.json",
  "title": "AlertInput",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/paypal-alerts-api-openapi.yml#/components/schemas/AlertInput",
  "type": "object",
  "required": [
    "type",
    "code",
    "thresholds"
  ],
  "properties": {
    "type": {
      "$ref": "#/$defs/AlertType"
    },
    "code": {
      "type": "string",
      "description": "The unique code to identify the alert."
    },
    "metric_code": {
      "type": "string",
      "description": "The code of the metric associated with the alert. Required for metric-specific alert types (METRIC_CURRENT_USAGE_AMOUNT and METRIC_CURRENT_USAGE_UNITS)."
    },
    "name": {
      "type": "string",
      "description": "The name of the alert."
    },
    "thresholds": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AlertThreshold"
      },
      "description": "List of thresholds that will trigger this alert. At least one threshold is required."
    }
  },
  "$defs": {
    "AlertThreshold": {
      "type": "object",
      "required": [
        "value"
      ],
      "properties": {
        "code": {
          "type": "string",
          "description": "Identifier for this threshold. Used to distinguish between different thresholds."
        },
        "value": {
          "type": "string",
          "pattern": "^[0-9]+\\.?[0-9]*$",
          "description": "A value that should trigger this alert. Must be a positive numeric string that can include a decimal point."
        },
        "recurring": {
          "type": "boolean",
          "description": "When true, enables retriggering of alerts at specified intervals after the last non-recurring threshold is exceeded. For example, with non-recurring thresholds at 500 and 1000, and a recurring threshold of 200, alerts will fire at 500, 1000, then every 200 thereafter (1200, 1400, etc.). Only one recurring threshold permitted per alert."
        }
      }
    },
    "AlertType": {
      "type": "string",
      "enum": [
        "CURRENT_USAGE_AMOUNT",
        "METRIC_CURRENT_USAGE_AMOUNT",
        "METRIC_CURRENT_USAGE_UNITS",
        "LIFETIME_USAGE_AMOUNT"
      ],
      "description": "Type of alert",
      "x-enum-varnames": [
        "CURRENT_USAGE_AMOUNT",
        "METRIC_CURRENT_USAGE_AMOUNT",
        "METRIC_CURRENT_USAGE_UNITS",
        "LIFETIME_USAGE_AMOUNT"
      ],
      "x-enum-descriptions": [
        "Alert based on current usage amount",
        "Alert based on metric current usage amount",
        "Alert based on metric current usage units",
        "Alert based on lifetime usage amount"
      ]
    }
  }
}

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/paypal-alert-input"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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