{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tenmomo-com/json-schema/tenmomo-com-store-detail-schema.json",
  "title": "StoreDetail",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tenmomo-com-openapi.yml#/components/schemas/StoreDetail",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer"
    },
    "name": {
      "type": "string"
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "website": {
      "type": "string",
      "format": "uri"
    },
    "network": {
      "type": "string",
      "description": "Affiliate network key, lower-case (e.g. awin, impact, rakuten, partnerize)"
    },
    "cookie_duration_days": {
      "type": [
        "integer",
        "null"
      ]
    },
    "activation_url": {
      "type": "string",
      "format": "uri",
      "description": "URL the shopper opens to activate cashback tracking; a tenmomo.com link that signs the user in if needed and then opens the store. Null when this store does not pay cashback through Tenmomo at this time (its rate box on the store page says so too). When the network asked us to take links to a store down, POST /api/v1/activate refuses that store as well (HTTP 409)."
    },
    "cashback_tiers": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "category": {
            "type": "string"
          },
          "rate": {
            "type": "string"
          },
          "is_default": {
            "type": "boolean"
          }
        }
      }
    },
    "coupons": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Deal"
      }
    },
    "categories": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "$defs": {
    "Deal": {
      "type": "object",
      "properties": {
        "store": {
          "type": "string",
          "description": "Store name"
        },
        "store_id": {
          "type": "integer"
        },
        "title": {
          "type": "string",
          "description": "Deal title"
        },
        "code": {
          "type": [
            "string",
            "null"
          ],
          "description": "Coupon code (if applicable)"
        },
        "discount": {
          "type": "string",
          "description": "Discount description"
        },
        "expires": {
          "type": [
            "string",
            "null"
          ],
          "format": "date"
        },
        "activation_url": {
          "type": "string",
          "format": "uri",
          "description": "URL the shopper opens to activate cashback tracking; a tenmomo.com link that signs the user in if needed and then opens the store. Null when this store does not pay cashback through Tenmomo at this time (its rate box on the store page says so too). When the network asked us to take links to a store down, POST /api/v1/activate refuses that store as well (HTTP 409)."
        }
      }
    }
  }
}