PayPal · Schema
MetricResponse
PayPalBillingCommerceDisputesInvoicesOrderPaymentsPayoutsSubscriptionTokensWebhookAgentic CommercePayment Processing
Properties
| Name | Type | Description |
|---|---|---|
| name | string | Descriptive name of the metric that represents a pricing component of your application. This is primarily used for display purposes in the user interface. |
| code | string | Unique code used to identify the metric within your system. This code is used in API requests to associate events with the correct metric and must be unique across all metrics. Once created, this code |
| type | object | |
| description | string | Optional detailed description of the metric that provides additional context about what the metric measures and how it's used. This information is for internal use and helps document the purpose of th |
| aggregation_type | object | |
| aggregation_field | string | Property name within the event payload that will be used for aggregating usage data. This field specifies which value from the event should be used for calculations. It is required for aggregation typ |
| field_filters | array | |
| id | string | Unique identifier of the metric, automatically generated by the system upon creation. This ID is used internally to track the metric and cannot be modified. |
| created_at | object | The date and time when the metric was created. ISO 8601 format with timezone. |
| updated_at | object | The date and time when the metric was last updated. ISO 8601 format with timezone. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/paypal/json-schema/paypal-metric-response-schema.json",
"title": "MetricResponse",
"x-generated": "2026-11-04",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/paypal-metrics-api-openapi.yml#/components/schemas/MetricResponse",
"type": "object",
"required": [
"id",
"name",
"code",
"aggregation_type",
"created_at"
],
"allOf": [
{
"$ref": "#/$defs/MetricBase"
},
{
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Unique identifier of the metric, automatically generated by the system upon creation. This ID is used internally to track the metric and cannot be modified."
},
"created_at": {
"allOf": [
{
"$ref": "#/$defs/DateTimeWithZone"
}
],
"description": "The date and time when the metric was created. ISO 8601 format with timezone."
},
"updated_at": {
"allOf": [
{
"$ref": "#/$defs/DateTimeWithZone"
}
],
"description": "The date and time when the metric was last updated. ISO 8601 format with timezone."
}
}
}
],
"$defs": {
"DateTimeWithZone": {
"type": "string",
"format": "date-time",
"description": "Date and time in ISO 8601 format."
},
"MetricAggregationType": {
"type": [
"string",
"null"
],
"enum": [
"COUNT",
"SUM",
"MAX",
"COUNT_DISTINCT",
"LATEST"
],
"x-enum-varnames": [
"COUNT",
"SUM",
"MAX",
"COUNT_DISTINCT",
"LATEST"
],
"x-enum-descriptions": [
"Count the number of events",
"Sum the values of a numeric field",
"Find the maximum value of a numeric field",
"Count the number of distinct values",
"Use the latest value"
],
"description": "Aggregation type for the metric"
},
"MetricBase": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Descriptive name of the metric that represents a pricing component of your application. This is primarily used for display purposes in the user interface."
},
"code": {
"type": "string",
"description": "Unique code used to identify the metric within your system. This code is used in API requests to associate events with the correct metric and must be unique across all metrics. Once created, this code cannot be changed."
},
"type": {
"$ref": "#/$defs/MetricType"
},
"description": {
"type": "string",
"description": "Optional detailed description of the metric that provides additional context about what the metric measures and how it's used. This information is for internal use and helps document the purpose of the metric."
},
"aggregation_type": {
"$ref": "#/$defs/MetricAggregationType"
},
"aggregation_field": {
"type": "string",
"description": "Property name within the event payload that will be used for aggregating usage data. This field specifies which value from the event should be used for calculations. It is required for aggregation types like 'SUM', 'MAX', and other types that operate on values, but not required for 'COUNT' aggregation."
},
"field_filters": {
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string",
"description": "Property name within the event payload that will be used for filtering. This allows you to segment usage data based on specific event properties, such as region, tier, or any other dimension you track."
},
"values": {
"type": "array",
"items": {
"type": "string"
},
"description": "Array of specific values that the system should match against the filter key. Only events with matching key-value pairs will be included in the metric calculations. This enables differentiated pricing based on dimensions like region, environment, or other custom properties."
}
},
"required": [
"key",
"values"
]
}
}
}
},
"MetricType": {
"type": "string",
"default": "RECURRING",
"enum": [
"METERED",
"RECURRING"
],
"description": "Type of metric, either 'metered' for usage-based or 'recurring' for fixed periodic charges.",
"x-enum-varnames": [
"METERED",
"RECURRING"
],
"x-enum-descriptions": [
"Usage-based metric that charges based on the amount used.",
"Fixed periodic charge that recurs at specified intervals."
]
}
}
}
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.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/paypal-metric-response"
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.