DevMargin · Schema

earned — a month that already happened

Push-rail channels only. Upserted by month, so a corrected figure replaces the earlier one instead of adding to it. The USD value is filled in at the next pull, from that run's exchange rates — this path has no FX source of its own, and the product keeps exactly one per run so every figure traces to the rates it used.

Company

Properties

Name Type Description
channel string
earned object
View JSON Schema on GitHub

JSON Schema

devmargin-app-push-earned-body-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/devmargin-app/json-schema/devmargin-app-push-earned-body-schema.json",
  "title": "earned — a month that already happened",
  "description": "Push-rail channels only. Upserted by month, so a corrected figure\nreplaces the earlier one instead of adding to it.\n\nThe USD value is filled in at the next pull, from that run's exchange\nrates — this path has no FX source of its own, and the product keeps\nexactly one per run so every figure traces to the rates it used.\n",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/devmargin-app-openapi-openapi.yml#/components/schemas/PushEarnedBody",
  "type": "object",
  "properties": {
    "channel": {
      "type": "string",
      "format": "uuid"
    },
    "earned": {
      "type": "object",
      "properties": {
        "month": {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}(-01)?$",
          "description": "`YYYY-MM`. The current month is accepted and recorded as\npartial; a future month is refused.\n"
        },
        "amount": {
          "type": "number",
          "minimum": 0,
          "description": "In `currency`."
        },
        "currency": {
          "type": "string",
          "pattern": "^[A-Z]{3}$"
        },
        "basis": {
          "type": "string",
          "enum": [
            "gross",
            "proceeds"
          ],
          "description": "REQUIRED, with no default on purpose. `gross` is before any\nplatform fee; `proceeds` is what actually reached you. The same\nnumber means different things depending on which, and a\nportfolio total that mixed them would be wrong invisibly.\n"
        }
      },
      "required": [
        "month",
        "amount",
        "currency",
        "basis"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "channel",
    "earned"
  ],
  "additionalProperties": false
}

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/devmargin-app-push-earned-body"
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.