{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/merchantflow-ai/json-schema/merchantflow-ai-account-schema.json",
  "title": "Account",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/merchantflow-ai-openapi.json#/components/schemas/Account",
  "type": "object",
  "properties": {
    "store": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "platform": {
          "type": [
            "string",
            "null"
          ]
        },
        "shop_domain": {
          "type": [
            "string",
            "null"
          ]
        },
        "currency": {
          "type": "string"
        },
        "timezone": {
          "type": "string"
        },
        "connected_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      }
    },
    "connection": {
      "type": "object",
      "properties": {
        "client_id": {
          "type": "string"
        },
        "scopes": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "granted_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      }
    },
    "data_availability": {
      "type": "object",
      "properties": {
        "history_days": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Null means unlimited history on this store's plan."
        },
        "available_from": {
          "type": [
            "string",
            "null"
          ]
        },
        "last_sync_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "stale": {
          "type": "boolean"
        }
      }
    },
    "rate_limits": {
      "type": "object",
      "properties": {
        "burst_per_minute": {
          "type": "integer"
        },
        "per_hour": {
          "type": "integer"
        },
        "per_day": {
          "type": "integer"
        },
        "max_concurrent": {
          "type": "integer"
        }
      }
    }
  }
}