AffiliateRail · Schema
Report
AffiliatesSoftware-as-a-ServiceMarketingPaymentsAffiliateSoftwareCompany
Properties
| Name | Type | Description |
|---|---|---|
| object | string | |
| dimension | string | |
| currency | string | ISO-4217 |
| from | string | ISO-8601, UTC |
| to | string | ISO-8601, UTC |
| rows | array | |
| totals | object | |
| previous_period | object | |
| delta | object | |
| drill_down_config | object |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/affiliaterail-com/json-schema/affiliaterail-com-report-schema.json",
"title": "Report",
"x-generated": "2026-11-10",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/affiliaterail-com-reports-api-openapi.yml#/components/schemas/Report",
"type": "object",
"properties": {
"object": {
"type": "string",
"enum": [
"report"
]
},
"dimension": {
"type": "string",
"enum": [
"partner",
"link",
"product",
"group",
"tag",
"period"
]
},
"currency": {
"type": "string",
"minLength": 3,
"maxLength": 3,
"description": "ISO-4217"
},
"from": {
"type": "string",
"format": "date-time",
"description": "ISO-8601, UTC"
},
"to": {
"type": "string",
"format": "date-time",
"description": "ISO-8601, UTC"
},
"rows": {
"type": "array",
"items": {
"$ref": "#/$defs/ReportRow"
}
},
"totals": {
"allOf": [
{
"$ref": "#/$defs/ReportRow"
},
{
"description": "The true totals for the filter, computed without the grouping. Includes direct sales, so revenue matches the dashboard headline."
}
]
},
"previous_period": {
"$ref": "#/$defs/ReportPeriod"
},
"delta": {
"$ref": "#/$defs/ReportDelta"
},
"drill_down_config": {
"$ref": "#/$defs/DrillDownConfig"
}
},
"required": [
"object",
"dimension",
"currency",
"from",
"to",
"rows",
"totals",
"previous_period",
"delta",
"drill_down_config"
],
"$defs": {
"CountDelta": {
"type": [
"object",
"null"
],
"properties": {
"absolute": {
"type": "integer",
"description": "current minus previous"
},
"change_bps": {
"type": [
"integer",
"null"
],
"description": "The change as basis points of the previous value: +2083 = +20.83%. Null when the previous period was zero."
}
},
"required": [
"absolute",
"change_bps"
]
},
"DrillDownConfig": {
"type": "object",
"properties": {
"field": {
"type": "string"
},
"filter_type": {
"type": "string"
},
"value_prop": {
"type": "string"
}
},
"required": [
"field",
"filter_type",
"value_prop"
],
"description": "How a row's `key` becomes a filter on the report and list endpoints"
},
"MoneyDelta": {
"type": "object",
"properties": {
"absolute_minor": {
"type": "integer",
"description": "current minus previous, integer minor units in the report's currency"
},
"change_bps": {
"type": [
"integer",
"null"
],
"description": "The change as basis points of the previous value: +2083 = +20.83%. Null when the previous period was zero."
}
},
"required": [
"absolute_minor",
"change_bps"
]
},
"ReportDelta": {
"type": [
"object",
"null"
],
"properties": {
"clicks": {
"$ref": "#/$defs/CountDelta"
},
"leads": {
"$ref": "#/$defs/CountDelta"
},
"customers": {
"$ref": "#/$defs/CountDelta"
},
"sales": {
"$ref": "#/$defs/CountDelta"
},
"refunded": {
"$ref": "#/$defs/CountDelta"
},
"revenue": {
"$ref": "#/$defs/MoneyDelta"
},
"commissions": {
"$ref": "#/$defs/MoneyDelta"
}
},
"required": [
"clicks",
"leads",
"customers",
"sales",
"refunded",
"revenue",
"commissions"
],
"description": "Totals against the previous period, basis points and all integers. Null when `compare=none`."
},
"ReportPeriod": {
"type": [
"object",
"null"
],
"properties": {
"from": {
"type": "string",
"format": "date-time",
"description": "ISO-8601, UTC"
},
"to": {
"type": "string",
"format": "date-time",
"description": "ISO-8601, UTC"
},
"rows": {
"type": "array",
"items": {
"$ref": "#/$defs/ReportRow"
}
},
"totals": {
"$ref": "#/$defs/ReportRow"
}
},
"required": [
"from",
"to",
"rows",
"totals"
],
"description": "The window of the same length immediately before `from`, in the same response, so no chart needs a second round trip. Null when `compare=none`."
},
"ReportRow": {
"type": "object",
"properties": {
"key": {
"type": [
"string",
"null"
],
"description": "The grouping value: an id, a product name, an ISO day, or `direct`. Null is \"none\"."
},
"label": {
"type": "string"
},
"clicks": {
"type": [
"integer",
"null"
]
},
"leads": {
"type": [
"integer",
"null"
]
},
"customers": {
"type": "integer"
},
"sales": {
"type": "integer"
},
"refunded": {
"type": "integer"
},
"revenue_minor": {
"type": "integer",
"description": "Integer minor units (cents, pence). Never a float, never a string."
},
"commissions_minor": {
"type": "integer",
"description": "Integer minor units (cents, pence). Never a float, never a string."
},
"conversion_bps": {
"type": [
"integer",
"null"
],
"description": "customers / clicks in basis points; null with no clicks"
},
"refund_bps": {
"type": [
"integer",
"null"
]
}
},
"required": [
"key",
"label",
"clicks",
"leads",
"customers",
"sales",
"refunded",
"revenue_minor",
"commissions_minor",
"conversion_bps",
"refund_bps"
]
}
}
}
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/affiliaterail-com-report"
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.