{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/soldstack-dev/json-schema/soldstack-dev-verdict-response-schema.json",
  "title": "VerdictResponse",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/soldstack-dev-openapi.json#/components/schemas/VerdictResponse",
  "properties": {
    "query": {
      "type": "string",
      "title": "Query",
      "description": "The search as used: lowercased, extra spaces removed."
    },
    "query_note": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Query Note",
      "description": "Only when the search differs from q, as in /v1/sold."
    },
    "source": {
      "type": "string",
      "title": "Source",
      "description": "The marketplace searched."
    },
    "verdict": {
      "type": "string",
      "title": "Verdict",
      "description": "buy, pass or maybe. With no clean comps it is maybe and every number is null.",
      "enum": [
        "buy",
        "pass",
        "maybe"
      ]
    },
    "reason": {
      "type": "string",
      "title": "Reason",
      "description": "One or two plain-English sentences explaining the verdict."
    },
    "cost": {
      "type": "number",
      "title": "Cost",
      "description": "The cost you sent."
    },
    "min_profit": {
      "type": "number",
      "title": "Min Profit",
      "description": "The min_profit used."
    },
    "expected_sale_price": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Expected Sale Price",
      "description": "stats.median, or null with no comps."
    },
    "expected_net_payout": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Expected Net Payout",
      "description": "stats.median_net_payout, or null with no comps."
    },
    "expected_profit": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Expected Profit",
      "description": "expected_net_payout minus cost, or null with no comps."
    },
    "roi": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Roi",
      "description": "expected_profit divided by cost, or null."
    },
    "max_buy": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Max Buy",
      "description": "stats.suggested_max_buy, or null with no comps."
    },
    "days_to_sell": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Days To Sell",
      "description": "stats.median_days_to_sell, or null."
    },
    "confidence": {
      "type": "string",
      "title": "Confidence",
      "description": "cleaning.confidence, repeated.",
      "enum": [
        "high",
        "medium",
        "low"
      ]
    },
    "currency": {
      "type": "string",
      "title": "Currency",
      "default": "USD",
      "description": "USD for poshmark, CAD for poshmark_ca: cost, min_profit and every price are in it, with no conversion."
    },
    "stats": {
      "$ref": "#/$defs/SoldStats",
      "description": "Same as /v1/sold stats."
    },
    "cleaning": {
      "$ref": "#/$defs/Cleaning",
      "description": "Same as /v1/sold cleaning."
    },
    "comps": {
      "items": {
        "$ref": "#/$defs/SoldItem"
      },
      "type": "array",
      "title": "Comps",
      "description": "The clean sales behind the verdict, up to limit (same item shape as /v1/sold items)."
    },
    "removed_items": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/RemovedItem"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Removed Items",
      "description": "Only with include_removed=true."
    },
    "partial_matches": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/PartialMatch"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Partial Matches",
      "description": "Only when cleaning leaves no sales."
    },
    "usage": {
      "anyOf": [
        {
          "$ref": "#/$defs/Usage"
        },
        {
          "type": "null"
        }
      ],
      "description": "This month's lookups after this request."
    }
  },
  "type": "object",
  "required": [
    "query",
    "source",
    "verdict",
    "reason",
    "cost",
    "min_profit",
    "expected_sale_price",
    "expected_net_payout",
    "expected_profit",
    "roi",
    "max_buy",
    "days_to_sell",
    "confidence",
    "stats",
    "cleaning",
    "comps"
  ],
  "$defs": {
    "Cleaning": {
      "properties": {
        "found": {
          "type": "integer",
          "title": "Found",
          "description": "Sold listings the marketplace returned."
        },
        "used": {
          "type": "integer",
          "title": "Used",
          "description": "How many were kept and used for stats (same as stats.count)."
        },
        "removed": {
          "additionalProperties": {
            "type": "integer"
          },
          "type": "object",
          "title": "Removed",
          "description": "Count per removal reason, e.g. off_topic, bundles, kids_sizes, kids_age, filters. Zero counts are left out."
        },
        "item_type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Item Type",
          "description": "The kind of item the comps are about, e.g. bags; mixed when no kind dominates."
        },
        "confidence": {
          "type": "string",
          "title": "Confidence",
          "description": "How far to trust the stats.",
          "enum": [
            "high",
            "medium",
            "low"
          ]
        },
        "confidence_note": {
          "type": "string",
          "title": "Confidence Note",
          "description": "A plain-English reason and tip, ready to show users. Says so when most sales are over a year old."
        },
        "undated": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Undated",
          "description": "Kept sales with no sold date. Only present when above 0 (sources without sold dates)."
        },
        "note": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Note",
          "description": "Only with partial_matches: says those sales are not in the stats."
        },
        "family": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Family",
          "description": "The goods family the search was cleaned as (home, kitchen, electronics, media, toys, kids_gear, pets, beauty, jewelry), or null for clothing, shoes and bags."
        },
        "guarded": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Guarded",
          "description": "Goods only: true when the family hasn't passed its accuracy bar yet, so confidence is held at low."
        },
        "thin": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Thin",
          "description": "Goods only: true when fewer than 6 sales of the actual product are left; confidence is low and confidence_note says how many."
        },
        "relists": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Relists",
          "description": "Goods only: relisted copies of the same listing (same title and price) returned in items but counted once in stats."
        },
        "variants": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/$defs/Variant"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Variants",
          "description": "Goods only, when the search names no model or size: count and median per model or size."
        },
        "facet": {
          "anyOf": [
            {
              "$ref": "#/$defs/Facet"
            },
            {
              "type": "null"
            }
          ],
          "description": "Goods only, when the first page was mostly accessories: the Poshmark subcategory also searched and how many sales it added."
        }
      },
      "type": "object",
      "required": [
        "found",
        "used",
        "removed",
        "item_type",
        "confidence",
        "confidence_note"
      ],
      "title": "Cleaning"
    },
    "Facet": {
      "properties": {
        "path": {
          "type": "string",
          "title": "Path",
          "description": "The Poshmark subcategory, e.g. Electronics > Video Games & Consoles > Consoles."
        },
        "added": {
          "type": "integer",
          "title": "Added",
          "description": "Sales from it that weren't on the first page."
        }
      },
      "type": "object",
      "required": [
        "path",
        "added"
      ],
      "title": "Facet"
    },
    "PartialMatch": {
      "properties": {
        "source": {
          "type": "string",
          "title": "Source",
          "description": "Marketplace the sale came from."
        },
        "id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Id",
          "description": "The marketplace's listing ID."
        },
        "title": {
          "type": "string",
          "title": "Title",
          "description": "Listing title as the seller wrote it."
        },
        "brand": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Brand",
          "description": "Brand, when the seller set one."
        },
        "size": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Size",
          "description": "Size as listed, e.g. 6, M or OS."
        },
        "condition": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Condition",
          "description": "new_with_tags, not_new_with_tags, used_like_new, used_excellent, used_good or used_fair; null when the seller didn't say."
        },
        "price": {
          "type": "number",
          "title": "Price",
          "description": "The price it sold at, in currency."
        },
        "currency": {
          "type": "string",
          "title": "Currency",
          "description": "ISO currency code: USD, or CAD for poshmark_ca."
        },
        "sold_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Sold At",
          "description": "When it sold (ISO 8601)."
        },
        "listed_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Listed At",
          "description": "When it was first listed (ISO 8601)."
        },
        "days_to_sell": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Days To Sell",
          "description": "Days between listing and sale."
        },
        "url": {
          "type": "string",
          "title": "Url",
          "description": "Link to the original listing."
        },
        "image": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Image",
          "description": "Link to the listing's main photo."
        },
        "seller": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Seller",
          "description": "The seller's username. Missing on sales cached before it was recorded."
        },
        "department": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Department",
          "description": "Poshmark department, e.g. Women or Men. Missing on older cached sales."
        },
        "category": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Category",
          "description": "Poshmark category, e.g. Jeans. Missing on older cached sales."
        },
        "match_score": {
          "type": "number",
          "title": "Match Score",
          "description": "Share of the search's words found in the title and brand (0.5-1)."
        }
      },
      "type": "object",
      "required": [
        "source",
        "id",
        "title",
        "brand",
        "size",
        "condition",
        "price",
        "currency",
        "sold_at",
        "listed_at",
        "days_to_sell",
        "url",
        "image",
        "match_score"
      ],
      "title": "PartialMatch"
    },
    "RemovedItem": {
      "properties": {
        "source": {
          "type": "string",
          "title": "Source",
          "description": "Marketplace the sale came from."
        },
        "id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Id",
          "description": "The marketplace's listing ID."
        },
        "title": {
          "type": "string",
          "title": "Title",
          "description": "Listing title as the seller wrote it."
        },
        "brand": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Brand",
          "description": "Brand, when the seller set one."
        },
        "size": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Size",
          "description": "Size as listed, e.g. 6, M or OS."
        },
        "condition": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Condition",
          "description": "new_with_tags, not_new_with_tags, used_like_new, used_excellent, used_good or used_fair; null when the seller didn't say."
        },
        "price": {
          "type": "number",
          "title": "Price",
          "description": "The price it sold at, in currency."
        },
        "currency": {
          "type": "string",
          "title": "Currency",
          "description": "ISO currency code: USD, or CAD for poshmark_ca."
        },
        "sold_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Sold At",
          "description": "When it sold (ISO 8601)."
        },
        "listed_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Listed At",
          "description": "When it was first listed (ISO 8601)."
        },
        "days_to_sell": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Days To Sell",
          "description": "Days between listing and sale."
        },
        "url": {
          "type": "string",
          "title": "Url",
          "description": "Link to the original listing."
        },
        "image": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Image",
          "description": "Link to the listing's main photo."
        },
        "seller": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Seller",
          "description": "The seller's username. Missing on sales cached before it was recorded."
        },
        "department": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Department",
          "description": "Poshmark department, e.g. Women or Men. Missing on older cached sales."
        },
        "category": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Category",
          "description": "Poshmark category, e.g. Jeans. Missing on older cached sales."
        },
        "removed_reason": {
          "type": "string",
          "title": "Removed Reason",
          "description": "Why it was dropped: one of the cleaning.removed keys."
        }
      },
      "type": "object",
      "required": [
        "source",
        "id",
        "title",
        "brand",
        "size",
        "condition",
        "price",
        "currency",
        "sold_at",
        "listed_at",
        "days_to_sell",
        "url",
        "image",
        "removed_reason"
      ],
      "title": "RemovedItem"
    },
    "SoldItem": {
      "properties": {
        "source": {
          "type": "string",
          "title": "Source",
          "description": "Marketplace the sale came from."
        },
        "id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Id",
          "description": "The marketplace's listing ID."
        },
        "title": {
          "type": "string",
          "title": "Title",
          "description": "Listing title as the seller wrote it."
        },
        "brand": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Brand",
          "description": "Brand, when the seller set one."
        },
        "size": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Size",
          "description": "Size as listed, e.g. 6, M or OS."
        },
        "condition": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Condition",
          "description": "new_with_tags, not_new_with_tags, used_like_new, used_excellent, used_good or used_fair; null when the seller didn't say."
        },
        "price": {
          "type": "number",
          "title": "Price",
          "description": "The price it sold at, in currency."
        },
        "currency": {
          "type": "string",
          "title": "Currency",
          "description": "ISO currency code: USD, or CAD for poshmark_ca."
        },
        "sold_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Sold At",
          "description": "When it sold (ISO 8601)."
        },
        "listed_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Listed At",
          "description": "When it was first listed (ISO 8601)."
        },
        "days_to_sell": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Days To Sell",
          "description": "Days between listing and sale."
        },
        "url": {
          "type": "string",
          "title": "Url",
          "description": "Link to the original listing."
        },
        "image": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Image",
          "description": "Link to the listing's main photo."
        },
        "seller": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Seller",
          "description": "The seller's username. Missing on sales cached before it was recorded."
        },
        "department": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Department",
          "description": "Poshmark department, e.g. Women or Men. Missing on older cached sales."
        },
        "category": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Category",
          "description": "Poshmark category, e.g. Jeans. Missing on older cached sales."
        }
      },
      "type": "object",
      "required": [
        "source",
        "id",
        "title",
        "brand",
        "size",
        "condition",
        "price",
        "currency",
        "sold_at",
        "listed_at",
        "days_to_sell",
        "url",
        "image"
      ],
      "title": "SoldItem"
    },
    "SoldStats": {
      "properties": {
        "count": {
          "type": "integer",
          "title": "Count",
          "description": "How many clean sales the stats use (same as cleaning.used). When it is 0, stats has only count."
        },
        "currency": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Currency",
          "description": "Currency of every price: USD, or CAD for poshmark_ca."
        },
        "median": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Median",
          "description": "The middle sold price: the best single 'what it sells for' number."
        },
        "mean": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Mean",
          "description": "The average sold price."
        },
        "p10": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "P10",
          "description": "10% of sales were below this."
        },
        "p90": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "P90",
          "description": "10% of sales were above this."
        },
        "min": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Min",
          "description": "Cheapest sale."
        },
        "max": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Max",
          "description": "Most expensive sale."
        },
        "median_days_to_sell": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Median Days To Sell",
          "description": "Typical days from listing to sale, or null."
        },
        "median_net_payout": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Median Net Payout",
          "description": "What the seller keeps from the median after the marketplace fee."
        },
        "suggested_max_buy": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Suggested Max Buy",
          "description": "A third of median_net_payout: a common most-to-pay rule for resellers."
        },
        "oldest_sold": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Oldest Sold",
          "description": "ISO date of the oldest sale behind the stats, or null when none is dated."
        },
        "newest_sold": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Newest Sold",
          "description": "ISO date of the newest sale behind the stats, or null when none is dated."
        }
      },
      "type": "object",
      "required": [
        "count"
      ],
      "title": "SoldStats"
    },
    "Usage": {
      "properties": {
        "used": {
          "type": "integer",
          "title": "Used",
          "description": "Lookups used this month, after this request."
        },
        "limit": {
          "type": "integer",
          "title": "Limit",
          "description": "Your plan's lookups per month."
        },
        "remaining": {
          "type": "integer",
          "title": "Remaining",
          "description": "limit minus used, never below 0."
        },
        "grace": {
          "type": "integer",
          "title": "Grace",
          "default": 0,
          "description": "Extra lookups allowed past limit before requests are refused: 10% of limit on Growth, 20% on Business (and the retired Scale), 0 on other plans. remaining ignores it."
        },
        "plan": {
          "type": "string",
          "title": "Plan",
          "description": "free, starter, growth or business (scale and pass: retired plans, no longer sold)."
        },
        "resets": {
          "type": "string",
          "title": "Resets",
          "description": "First day of next month (UTC), as an ISO date."
        },
        "charged": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Charged",
          "description": "True when this request used a lookup; false for a cached repeat (also the X-Lookup-Charged header)."
        }
      },
      "type": "object",
      "required": [
        "used",
        "limit",
        "remaining",
        "plan",
        "resets"
      ],
      "title": "Usage"
    },
    "Variant": {
      "properties": {
        "variant": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Variant",
          "description": "The model or size the titles name, e.g. 40oz; null for sales that name none."
        },
        "count": {
          "type": "integer",
          "title": "Count",
          "description": "Sales of this variant."
        },
        "median": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Median",
          "description": "Their median sold price."
        }
      },
      "type": "object",
      "required": [
        "variant",
        "count",
        "median"
      ],
      "title": "Variant"
    }
  }
}