medianfi-com · Schema

AttributionResult

FinanceBookkeepingArtificial IntelligenceStartupsAccounting

Properties

Name Type Description
period string
channels array
totals object
reallocation object
sources array
hasConnectedSource boolean
View JSON Schema on GitHub

JSON Schema

medianfi-com-attribution-result-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/medianfi-com/json-schema/medianfi-com-attribution-result-schema.json",
  "title": "AttributionResult",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/medianfi-com-attribution-api-openapi.yml#/components/schemas/AttributionResult",
  "type": "object",
  "properties": {
    "period": {
      "type": "string",
      "enum": [
        "mtd",
        "t90"
      ]
    },
    "channels": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AttributionChannel"
      }
    },
    "totals": {
      "$ref": "#/$defs/AttributionTotals"
    },
    "reallocation": {
      "oneOf": [
        {
          "$ref": "#/$defs/AttributionReallocation"
        },
        {
          "type": "null"
        }
      ]
    },
    "sources": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AttributionMarketingSource"
      }
    },
    "hasConnectedSource": {
      "type": "boolean"
    }
  },
  "required": [
    "period",
    "channels",
    "totals",
    "sources",
    "hasConnectedSource"
  ],
  "$defs": {
    "AttributionChannel": {
      "type": "object",
      "description": "A per-channel attribution row. Organic channels have zero spend and a null roas.",
      "properties": {
        "id": {
          "type": "string"
        },
        "channel": {
          "type": "string"
        },
        "source": {
          "type": [
            "string",
            "null"
          ]
        },
        "medium": {
          "type": [
            "string",
            "null"
          ]
        },
        "paid": {
          "type": "boolean"
        },
        "spendCents": {
          "type": "integer"
        },
        "leads": {
          "type": "integer"
        },
        "clients": {
          "type": "integer"
        },
        "firstYearValueCents": {
          "type": "integer"
        },
        "cacCents": {
          "type": [
            "integer",
            "null"
          ]
        },
        "roas": {
          "type": [
            "number",
            "null"
          ]
        },
        "matched": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AttributionMatchedClient"
          }
        }
      },
      "required": [
        "id",
        "channel",
        "paid",
        "spendCents",
        "clients",
        "matched"
      ]
    },
    "AttributionMarketingSource": {
      "type": "object",
      "properties": {
        "provider": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "connectedAt": {
          "type": [
            "string",
            "null"
          ]
        },
        "lastSyncedAt": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "provider",
        "status"
      ]
    },
    "AttributionMatchedClient": {
      "type": "object",
      "description": "A per-customer acquisition row (ad click and analytics visitor joined to booked revenue).",
      "properties": {
        "client": {
          "type": "string"
        },
        "campaign": {
          "type": [
            "string",
            "null"
          ]
        },
        "gclid": {
          "type": [
            "string",
            "null"
          ]
        },
        "gaClientId": {
          "type": "string"
        },
        "signedOn": {
          "type": [
            "string",
            "null"
          ]
        },
        "firstValueCents": {
          "type": "integer"
        },
        "ltvCents": {
          "type": "integer"
        }
      },
      "required": [
        "client",
        "gaClientId",
        "firstValueCents",
        "ltvCents"
      ]
    },
    "AttributionReallocation": {
      "type": "object",
      "description": "Budget-reallocation insight; present only when best and worst paid channels differ.",
      "properties": {
        "fromChannel": {
          "type": "string"
        },
        "toChannel": {
          "type": "string"
        },
        "fromRoas": {
          "type": "number"
        },
        "toRoas": {
          "type": "number"
        },
        "suggestedShiftCents": {
          "type": "integer"
        },
        "projectedBlendedRoasDelta": {
          "type": "number"
        }
      },
      "required": [
        "fromChannel",
        "toChannel",
        "suggestedShiftCents"
      ]
    },
    "AttributionTotals": {
      "type": "object",
      "description": "KPI-strip totals. paybackMonths and avgClientLtvCents are estimates (see economicsBasis).",
      "properties": {
        "spendCents": {
          "type": "integer"
        },
        "clients": {
          "type": "integer"
        },
        "blendedCacCents": {
          "type": [
            "integer",
            "null"
          ]
        },
        "ltvCac": {
          "type": [
            "number",
            "null"
          ]
        },
        "paidRoas": {
          "type": [
            "number",
            "null"
          ]
        },
        "paybackMonths": {
          "type": [
            "number",
            "null"
          ]
        },
        "avgClientLtvCents": {
          "type": "integer"
        },
        "economicsBasis": {
          "type": "string"
        }
      },
      "required": [
        "spendCents",
        "clients",
        "avgClientLtvCents",
        "economicsBasis"
      ]
    }
  }
}

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/medianfi-com-attribution-result"
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.