{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/resollo-com/json-schema/resollo-com-product-detail-schema.json",
  "title": "ProductDetail",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/resollo-com-openapi.yml#/components/schemas/ProductDetail",
  "allOf": [
    {
      "$ref": "#/$defs/ProductSearchItem"
    },
    {
      "type": "object",
      "required": [
        "unit",
        "guarantee",
        "min_price",
        "offers_enabled",
        "attributes",
        "semantic_profile",
        "image_urls",
        "shipment_prices",
        "shipment_prices_currency",
        "seller"
      ],
      "properties": {
        "unit": {
          "type": [
            "string",
            "null"
          ]
        },
        "guarantee": {
          "type": [
            "string",
            "null"
          ]
        },
        "min_price": {
          "type": [
            "number",
            "null"
          ],
          "description": "Auction reserve price, if applicable."
        },
        "offers_enabled": {
          "type": "boolean",
          "description": "Whether the seller accepts negotiated offers on this (fixed-price only) listing."
        },
        "attributes": {
          "type": [
            "object",
            "null"
          ],
          "description": "Free-form AI-extracted structured attributes (e.g. brand)."
        },
        "semantic_profile": {
          "type": [
            "object",
            "null"
          ],
          "description": "AI-generated semantic descriptors (suitable_for, target_audience, key_strengths, etc.)."
        },
        "image_urls": {
          "type": "array",
          "items": {
            "type": "string",
            "format": "uri"
          }
        },
        "shipment_prices": {
          "type": [
            "object",
            "null"
          ],
          "description": "Shipping cost estimate per shipment method (courier, postal, locker), each with `local` and `international` text ranges such as \"1000-3000\", in `shipment_prices_currency` (not converted). Empty when the listing only offers personal pickup."
        },
        "shipment_prices_currency": {
          "type": "string",
          "description": "Currency of the `shipment_prices` ranges. Always equal to `price.currency` (the listing's own currency), even when `converted_price` is in another currency."
        },
        "seller": {
          "$ref": "#/$defs/SellerDetail"
        }
      }
    }
  ],
  "$defs": {
    "Category": {
      "type": "object",
      "required": [
        "id",
        "key",
        "name_en"
      ],
      "properties": {
        "id": {
          "type": "integer",
          "description": "Raw `category_id` from the listing (may be a subcategory id)."
        },
        "key": {
          "type": "string",
          "description": "Stable top-level category key (e.g. `ELECTRONICS`). `UNKNOWN` if unrecognized."
        },
        "name_en": {
          "type": "string"
        }
      }
    },
    "Condition": {
      "type": "object",
      "required": [
        "value",
        "key",
        "name_en"
      ],
      "properties": {
        "value": {
          "type": "integer"
        },
        "key": {
          "type": "string"
        },
        "name_en": {
          "type": "string"
        }
      }
    },
    "Money": {
      "type": "object",
      "required": [
        "amount",
        "currency"
      ],
      "properties": {
        "amount": {
          "type": "number"
        },
        "currency": {
          "type": "string",
          "description": "ISO 4217 currency code."
        }
      }
    },
    "ProductSearchItem": {
      "type": "object",
      "required": [
        "id",
        "name",
        "description",
        "category",
        "condition",
        "price",
        "converted_price",
        "listing_type",
        "auction_ends_at",
        "quantity_available",
        "image_url",
        "seller",
        "url",
        "created_at"
      ],
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "name": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "category": {
          "$ref": "#/$defs/Category"
        },
        "condition": {
          "$ref": "#/$defs/Condition"
        },
        "price": {
          "allOf": [
            {
              "$ref": "#/$defs/Money"
            }
          ],
          "description": "The seller's native listed price/currency -- never converted, so it always reflects the actual listing."
        },
        "converted_price": {
          "oneOf": [
            {
              "$ref": "#/$defs/Money"
            },
            {
              "type": "null"
            }
          ],
          "description": "Price converted to the resolved `currency`, when a conversion rate is available."
        },
        "listing_type": {
          "type": "string",
          "enum": [
            "fixed_price",
            "auction"
          ]
        },
        "auction_ends_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "quantity_available": {
          "type": "integer"
        },
        "image_url": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "seller": {
          "$ref": "#/$defs/SellerSummary"
        },
        "url": {
          "type": "string",
          "format": "uri",
          "description": "Canonical (original listing language) product page URL."
        },
        "created_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      }
    },
    "SellerDetail": {
      "allOf": [
        {
          "$ref": "#/$defs/SellerSummary"
        },
        {
          "type": "object",
          "required": [
            "avatar_url",
            "city",
            "stripe_connect_active",
            "accepted_payment_methods",
            "accepted_shipment_methods"
          ],
          "properties": {
            "avatar_url": {
              "type": "string",
              "description": "Public URL of the seller's uploaded avatar, or a deterministic generated placeholder (`/api/avatar/<id>`) when they haven't uploaded one. Never null."
            },
            "city": {
              "type": [
                "string",
                "null"
              ]
            },
            "stripe_connect_active": {
              "type": "boolean",
              "description": "Whether the seller has a fully active Stripe Connect account, i.e. whether online card payment through Resollo (payment method `stripe`) is available."
            },
            "accepted_payment_methods": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "cash",
                  "card",
                  "bank",
                  "paypal",
                  "stripe"
                ]
              },
              "description": "`card` means paying by card directly to the seller (e.g. on handover), not online; online card payment is `stripe` and needs `stripe_connect_active`. Informational only. Reflects the seller's currently configured payment methods. The platform may further restrict this to Stripe-only at actual checkout time for certain seller subscription plans (e.g. commission-based plans). Authoritative payment negotiation is out of scope for this endpoint and belongs to a future phase-2 transaction API."
            },
            "accepted_shipment_methods": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "personal",
                  "courier",
                  "postal",
                  "locker"
                ]
              }
            }
          }
        }
      ]
    },
    "SellerSummary": {
      "type": "object",
      "required": [
        "id",
        "alias",
        "is_verified",
        "country_code",
        "region_code"
      ],
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "alias": {
          "type": [
            "string",
            "null"
          ]
        },
        "is_verified": {
          "type": "boolean",
          "description": "Identity verification badge -- unrelated to Stripe Connect status."
        },
        "country_code": {
          "type": [
            "string",
            "null"
          ]
        },
        "region_code": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    }
  }
}