Codat · Schema

SyncSetting

Describes how often, and how much history, should be fetched for the given data type when a pull operation is queued.

Unified-API

Properties

Name Type Description
dataType object
fetchOnFirstLink boolean Whether this data type should be queued after a company has authorized a connection.
syncSchedule integer Number of hours after which this data type should be refreshed.
syncOrder integer The sync in which data types are queued for a sync.
syncFromUtc object Date from which data should be fetched. Set this *or* `syncFromWindow`.
syncFromWindow integer Number of months of data to be fetched. Set this *or* `syncFromUTC`.
monthsToSync integer Months of data to fetch, for report data types (`balanceSheet` & `profitAndLoss`) only.
isLocked boolean `True` if the [sync setting](https://docs.codat.io/knowledge-base/advanced-sync-settings) is locked.
View JSON Schema on GitHub

JSON Schema

codat-syncsetting-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/SyncSetting",
  "title": "SyncSetting",
  "description": "Describes how often, and how much history, should be fetched for the given data type when a pull operation is queued.",
  "examples": [
    {
      "dataType": "invoices",
      "fetchOnFirstLink": true,
      "syncSchedule": 24,
      "syncOrder": 0,
      "syncFromUtc": "2020-01-01T12:00:00.000Z",
      "syncFromWindow": 24,
      "monthsToSync": 24,
      "isLocked": true
    }
  ],
  "type": "object",
  "properties": {
    "dataType": {
      "$ref": "#/components/schemas/DataStatus/properties/dataType"
    },
    "fetchOnFirstLink": {
      "type": "boolean",
      "description": "Whether this data type should be queued after a company has authorized a connection."
    },
    "syncSchedule": {
      "type": "integer",
      "example": 24,
      "description": "Number of hours after which this data type should be refreshed."
    },
    "syncOrder": {
      "type": "integer",
      "description": "The sync in which data types are queued for a sync."
    },
    "syncFromUtc": {
      "$ref": "#/components/schemas/DateTime",
      "description": "Date from which data should be fetched. Set this *or* `syncFromWindow`."
    },
    "syncFromWindow": {
      "type": "integer",
      "example": 24,
      "description": "Number of months of data to be fetched. Set this *or* `syncFromUTC`."
    },
    "monthsToSync": {
      "type": "integer",
      "example": 24,
      "description": "Months of data to fetch, for report data types (`balanceSheet` & `profitAndLoss`) only."
    },
    "isLocked": {
      "type": "boolean",
      "description": "`True` if the [sync setting](https://docs.codat.io/knowledge-base/advanced-sync-settings) is locked."
    }
  },
  "required": [
    "dataType",
    "fetchOnFirstLink",
    "syncSchedule",
    "syncOrder"
  ]
}

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/codat-syncsetting"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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.