{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/flipzi-io/json-schema/flipzi-io-sold-sale-schema.json",
  "title": "SoldSale",
  "description": "One completed eBay sale. A sale, not a valuation: there is no confidence\nscore or methodology version because nothing was computed.\n",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/flipzi-io-openapi.yml#/components/schemas/SoldSale",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "Stable id of this sale record."
    },
    "sold_date": {
      "type": "string",
      "format": "date"
    },
    "marketplace": {
      "type": "string",
      "enum": [
        "ebay_uk",
        "ebay_us",
        "ebay_au",
        "ebay_ca",
        "ebay_de",
        "ebay_fr",
        "ebay_it",
        "ebay_es"
      ]
    },
    "grade": {
      "type": "string"
    },
    "finish": {
      "type": "string",
      "enum": [
        "standard",
        "reverse_holo",
        "first_edition"
      ],
      "description": "The finish this sale was matched to."
    },
    "condition": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "nm",
        "lp",
        "mp",
        "hp",
        "dmg"
      ],
      "description": "The condition the listing title states, for an ungraded sale. `null`\nwhen it states none, when the card is graded, or on a plan without\nthe `condition` capability. `hp` and `dmg` sales are not in the\n`RAW` price; see *Condition*.\n"
    },
    "language": {
      "type": "string"
    },
    "language_source": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "explicit",
        "inferred"
      ],
      "description": "`explicit`: the title named the language. `inferred`: it did not, and\nthe sale counts under its site's own language, as the comps do.\n"
    },
    "price_cents": {
      "type": [
        "integer",
        "null"
      ],
      "description": "`native.price_minor` converted into the requested currency at the rate\nnamed in `fx`. `null` when no rate exists.\n"
    },
    "price_formatted": {
      "type": [
        "string",
        "null"
      ]
    },
    "native": {
      "type": "object",
      "description": "The sale as it was paid, in the site's own minor units (GBP pence, AUD\ncents). Do not compare these across marketplaces; compare `price_cents`.\n",
      "properties": {
        "currency": {
          "type": "string"
        },
        "price_minor": {
          "type": "integer"
        },
        "shipping_minor": {
          "type": [
            "integer",
            "null"
          ]
        },
        "total_minor": {
          "type": [
            "integer",
            "null"
          ]
        },
        "listed_minor": {
          "type": [
            "integer",
            "null"
          ],
          "description": "The asking price of a best-offer sale whose accepted amount is\nknown; `price_minor` is then the accepted amount. `null` on every\nother sale. 1.30.0.\n"
        }
      }
    },
    "fx": {
      "type": [
        "object",
        "null"
      ],
      "description": "The rate `price_cents` was converted at — the latest stored rate, the\nsame basis as `/marketplaces`. `null` when no conversion was needed.\n",
      "properties": {
        "rate": {
          "type": "number"
        },
        "rate_date": {
          "type": "string",
          "format": "date"
        }
      }
    },
    "format": {
      "type": "string",
      "enum": [
        "auction",
        "fixed_price"
      ],
      "description": "`fixed_price` covers Buy It Now and accepted Best Offers."
    },
    "bid_count": {
      "type": [
        "integer",
        "null"
      ]
    },
    "best_offer_accepted": {
      "type": "boolean",
      "description": "The sale closed by an accepted best offer. See `price_confirmed` for\nwhether the price is the accepted amount or the listed one.\n"
    },
    "price_confirmed": {
      "type": "boolean",
      "description": "`false` only for a best-offer sale priced at the listed price\nbecause its accepted amount is unknown: the buyer may have paid\nless. The accepted amount comes from eBay's price data on ebay.com,\nebay.co.uk and ebay.de. 1.30.0.\n"
    },
    "title": {
      "type": "string"
    },
    "listing": {
      "type": "object",
      "properties": {
        "ebay_item_id": {
          "type": "string"
        },
        "url": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        }
      }
    },
    "match": {
      "type": "object",
      "description": "How the sale was tied to this card.",
      "properties": {
        "verdict": {
          "type": [
            "string",
            "null"
          ],
          "description": "`exact` is the strictest verdict; `likely` and `llm` are\nprogressively weaker. Filter on it when certainty matters more\nthan depth.\n"
        },
        "confidence": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 0,
          "maximum": 100
        }
      }
    }
  }
}