Affise · Schema
offer_caps_structure
Cap item structure
Affiliate MarketingPerformance MarketingConversionPublishersAnalyticsAttribution
Properties
| Name | Type | Description |
|---|---|---|
| period | string | Possible values: hour (if enabled), day, month, all |
| type | string | Possible values: budget, conversions, clicks, impressions |
| value | number | The integer value for the type of conversion and the float value for the budget type. |
| goals | array | Array[string]. Either specifies goal value or is empty. Empty field requires 'goal_type' values of 'all'/'each'. |
| goal_type | string | [string]. Values: 'all' , 'each', 'exact'. 'goals' field is mandatory to be specified for 'exact' value. |
| affiliates | array | Array[integer]. Either specifies affiliate ID or is empty filed. Empty field requires 'affiliate_type' values of 'all'/'each'. |
| affiliate_type | string | [string]. Values: 'all' , 'each', 'exact'. 'affiliates' field is mandatory to be specified for 'exact' value. |
| country | array | Array[string]. Values: Country codes. |
| country_type | string | [string]. Values: 'all' , 'each', 'exact'. 'country' field is mandatory to be specified for 'exact' value. |
| sub_number | integer | [integer]. Possible values: 2. |
| sub_value | array |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/affise/main/json-schema/affise-offer-caps-structure-schema.json",
"title": "offer_caps_structure",
"description": "Cap item structure",
"x-generated": "2026-10-27",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/affise-admin-offers-api-openapi.yml#/components/schemas/offer_caps_structure",
"type": "object",
"properties": {
"period": {
"type": "string",
"enum": [
"hour",
"day",
"month",
"all"
],
"description": "Possible values: hour (if enabled), day, month, all"
},
"type": {
"type": "string",
"enum": [
"budget",
"conversions",
"clicks",
"impressions"
],
"description": "Possible values: budget, conversions, clicks, impressions"
},
"value": {
"type": "number",
"description": "The integer value for the type of conversion and the float value for the budget type."
},
"goals": {
"type": "array",
"items": {
"type": "string"
},
"description": "Array[string]. Either specifies goal value or is empty. Empty field requires 'goal_type' values of 'all'/'each'."
},
"goal_type": {
"type": "string",
"enum": [
"all",
"each",
"exact"
],
"description": "[string]. Values: 'all' , 'each', 'exact'. 'goals' field is mandatory to be specified for 'exact' value."
},
"affiliates": {
"type": "array",
"items": {
"type": "integer"
},
"description": "Array[integer]. Either specifies affiliate ID or is empty filed. Empty field requires 'affiliate_type' values of 'all'/'each'."
},
"affiliate_type": {
"type": "string",
"enum": [
"all",
"each",
"exact"
],
"description": "[string]. Values: 'all' , 'each', 'exact'. 'affiliates' field is mandatory to be specified for 'exact' value."
},
"country": {
"type": "array",
"items": {
"type": "string"
},
"description": "Array[string]. Values: Country codes."
},
"country_type": {
"type": "string",
"enum": [
"all",
"each",
"exact"
],
"description": "[string]. Values: 'all' , 'each', 'exact'. 'country' field is mandatory to be specified for 'exact' value."
},
"sub_number": {
"type": "integer",
"description": "[integer]. Possible values: 2.",
"enum": [
2
]
},
"sub_value": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
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/affise-offer-caps-structure"
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. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.