{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/reddit/json-schema/reddit-components-schema-product-catalog-schema.json",
  "title": "Product Catalog",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/reddit-product-catalogs-api-openapi.yml#/components/schemas/components_schema_product_catalog",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "id": {
      "type": "string",
      "description": "The product catalog ID."
    },
    "business_id": {
      "allOf": [
        {
          "$ref": "#/$defs/id"
        },
        {
          "description": "The business ID."
        }
      ]
    },
    "name": {
      "type": "string",
      "description": "The product catalog's name.",
      "minLength": 1,
      "maxLength": 200
    },
    "default_currency": {
      "type": "string",
      "description": "The catalog's default currency.",
      "enum": [
        "USD",
        "GBP",
        "CAD",
        "EUR",
        "AUD",
        "JPY",
        "CHF",
        "NZD",
        "SEK",
        "NOK",
        "BRL"
      ]
    },
    "default_language": {
      "type": "string",
      "description": "The catalog's default language.",
      "enum": [
        "en",
        "de",
        "es",
        "fr",
        "it",
        "pt"
      ]
    },
    "event_sources": {
      "type": [
        "array"
      ],
      "description": "The attached Reddit Pixel IDs.",
      "uniqueItems": true,
      "items": {
        "type": "string",
        "maxLength": 50
      }
    },
    "data_sources": {
      "type": "array",
      "description": "The catalog data sources.",
      "uniqueItems": true,
      "items": {
        "type": "string",
        "description": "The catalog's data source.",
        "enum": [
          "BULK_IMPORT",
          "FEED_SYNC",
          "MANUAL"
        ]
      }
    },
    "summary": {
      "description": "An overview of the catalog's product approvals.",
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "products_count": {
          "type": "integer",
          "description": "How many products are in the catalog.",
          "minimum": 0,
          "readOnly": true
        },
        "approved_products_count": {
          "type": "integer",
          "description": "How many products were approved.",
          "minimum": 0,
          "readOnly": true
        },
        "rejected_products_count": {
          "type": "integer",
          "description": "How many products were rejected.",
          "minimum": 0,
          "readOnly": true
        },
        "invalid_products_count": {
          "type": "integer",
          "description": "The number of products with at least 1 critical issue. Products with critical issues are not submitted for review.",
          "minimum": 0,
          "readOnly": true
        }
      }
    },
    "created_at": {
      "$ref": "#/$defs/components_schema_created_at"
    },
    "modified_at": {
      "$ref": "#/$defs/components_schema_modified_at"
    }
  },
  "$defs": {
    "components_schema_business_id": {
      "description": "The business ID.",
      "type": "string",
      "format": "uuid"
    },
    "components_schema_created_at": {
      "description": "When this entity was created ([ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html)).",
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "components_schema_modified_at": {
      "title": "Modified At",
      "description": "When this entity was last changed ([ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html)).",
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "id": {
      "allOf": [
        {
          "$ref": "#/$defs/components_schema_business_id"
        },
        {
          "readOnly": true
        }
      ]
    }
  }
}