{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/freeport-gg/json-schema/freeport-gg-me-schema.json",
  "title": "Me",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/freeport-gg-api-openapi.json#/components/schemas/Me",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "A prefixed ULID"
    },
    "handle": {
      "type": "string"
    },
    "display_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "rank": {
      "type": "string",
      "enum": [
        "skiff",
        "sloop",
        "brigantine",
        "frigate",
        "galleon",
        "flagship"
      ]
    },
    "rank_level": {
      "type": "integer",
      "description": "1 to 6, lowest first. The rank this month’s sales hold, and what a sale costs."
    },
    "currency": {
      "type": "string",
      "description": "The currency your account is paid in: your listings are priced in it, and `month_sales` is in it."
    },
    "month_sales": {
      "type": "string",
      "pattern": "^\\d+(\\.\\d+)?$",
      "description": "A decimal string in the row's currency. Never a float."
    },
    "tier": {
      "type": "string",
      "enum": [
        "new",
        "standard",
        "trusted"
      ]
    },
    "trading_status": {
      "type": "string",
      "description": "`active`, or `suspended`: reads keep working, writes that start something are refused."
    },
    "holiday_mode": {
      "type": "boolean"
    },
    "selling": {
      "$ref": "#/$defs/SellingState"
    },
    "selling_by_lane": {
      "type": "object",
      "properties": {
        "currency": {
          "$ref": "#/$defs/LaneSelling"
        },
        "item": {
          "$ref": "#/$defs/LaneSelling"
        },
        "account": {
          "$ref": "#/$defs/LaneSelling"
        },
        "service": {
          "$ref": "#/$defs/LaneSelling"
        },
        "topup": {
          "$ref": "#/$defs/LaneSelling"
        },
        "giftcard": {
          "$ref": "#/$defs/LaneSelling"
        }
      },
      "required": [
        "currency",
        "item",
        "account",
        "service",
        "topup",
        "giftcard"
      ],
      "additionalProperties": false,
      "description": "The platform’s own switch over each category, by category."
    },
    "reliability": {
      "type": "string",
      "enum": [
        "good",
        "at_risk",
        "restricted"
      ],
      "description": "The worst that your record of answering and delivering paid orders holds you to in any category: see `reliability_by_lane`. The figures and the orders behind them are on the seller dashboard."
    },
    "reliability_by_lane": {
      "type": "object",
      "properties": {
        "currency": {
          "type": "string",
          "enum": [
            "good",
            "at_risk",
            "restricted"
          ]
        },
        "item": {
          "type": "string",
          "enum": [
            "good",
            "at_risk",
            "restricted"
          ]
        },
        "account": {
          "type": "string",
          "enum": [
            "good",
            "at_risk",
            "restricted"
          ]
        },
        "service": {
          "type": "string",
          "enum": [
            "good",
            "at_risk",
            "restricted"
          ]
        },
        "topup": {
          "type": "string",
          "enum": [
            "good",
            "at_risk",
            "restricted"
          ]
        },
        "giftcard": {
          "type": "string",
          "enum": [
            "good",
            "at_risk",
            "restricted"
          ]
        }
      },
      "required": [
        "currency",
        "item",
        "account",
        "service",
        "topup",
        "giftcard"
      ],
      "additionalProperties": false,
      "description": "What your record holds you to in each category, judged on that category’s orders alone. `restricted` in a category limits how many of its orders you may have open at once and refuses new listings there with `selling_restricted`, until its figures recover; a restriction in any category also stops your rank rising."
    },
    "presence": {
      "type": "string",
      "enum": [
        "online",
        "away",
        "offline"
      ]
    },
    "payout_hold_days": {
      "type": "integer",
      "description": "The days your track record asks a sale to wait before its proceeds can be withdrawn. A category can ask for longer: see `payout_holds`."
    },
    "payout_holds": {
      "type": "object",
      "properties": {
        "currency": {
          "type": "integer"
        },
        "item": {
          "type": "integer"
        },
        "account": {
          "type": "integer"
        },
        "service": {
          "type": "integer"
        },
        "topup": {
          "type": "integer"
        },
        "giftcard": {
          "type": "integer"
        }
      },
      "required": [],
      "additionalProperties": false,
      "description": "What a sale completing today waits in each category, in days: the longer of `payout_hold_days` and the category’s own. A category that is not open for selling is left out. An order already completed keeps the date it was given."
    },
    "qualifying_orders": {
      "type": "integer"
    }
  },
  "required": [
    "id",
    "handle",
    "display_name",
    "rank",
    "rank_level",
    "currency",
    "month_sales",
    "tier",
    "trading_status",
    "holiday_mode",
    "selling",
    "selling_by_lane",
    "reliability",
    "reliability_by_lane",
    "presence",
    "payout_hold_days",
    "payout_holds",
    "qualifying_orders"
  ],
  "additionalProperties": false,
  "$defs": {
    "LaneSelling": {
      "type": "object",
      "properties": {
        "paused": {
          "type": "boolean",
          "description": "True while the platform is offering nothing of yours in this category."
        },
        "reason": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "order_limit"
          ]
        }
      },
      "required": [
        "paused",
        "reason"
      ],
      "additionalProperties": false,
      "description": "The platform’s own switch over one category. `order_limit`: you are restricted in this category and have as many of its orders open as you may; it lifts by itself when one is delivered, and your other categories are not affected. `account.lane_selling_changed` carries the same facts, with the category, when they change. A pause of the whole account is `selling`, and is not repeated here."
    },
    "SellingState": {
      "type": "object",
      "properties": {
        "paused": {
          "type": "boolean",
          "description": "True while the platform is offering nothing of yours to buyers."
        },
        "reason": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "missed_orders",
            "declines",
            "order_limit",
            "sales_limit"
          ]
        },
        "resume_after": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      },
      "required": [
        "paused",
        "reason",
        "resume_after"
      ],
      "additionalProperties": false,
      "description": "The platform’s own switch over everything you sell, beside `holiday_mode`, which is yours. `missed_orders`: paid orders ran out without an answer, and a person resumes from the seller dashboard, not before `resume_after`; a key cannot. `declines`: you declined a burst of paid orders (three inside 24 hours, unless the seller standards say otherwise), the account is flagged for our review, and a person resumes from the seller dashboard the same way. `sales_limit`: your account is new, and its orders over the last thirty days have come to what a new account may sell; it lifts by itself as those orders pass thirty days and as your account builds a record, or when we review it. `order_limit` was this limit on open orders before it became a category’s: it is now in `selling_by_lane`, and an account paused for it before then is returned within a minute. `account.selling_changed` carries the same facts when they change."
    }
  }
}