{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/depixapp-com/json-schema/depixapp-com-product-update-request-schema.json",
  "title": "ProductUpdateRequest",
  "description": "Partial product update — only the provided fields change. Nullable fields (description, image_url, callback_url, redirect_url, metadata) accept null/empty string to clear.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/depixapp-com-products-api-openapi.yml#/components/schemas/ProductUpdateRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "New product name (2–80 chars).",
      "minLength": 2,
      "maxLength": 80
    },
    "slug": {
      "type": "string",
      "description": "New URL slug (must stay unique per merchant and mode)."
    },
    "amount": {
      "type": "integer",
      "description": "New price in cents. Range: 500–600000.",
      "minimum": 500,
      "maximum": 600000
    },
    "description": {
      "type": [
        "string",
        "null"
      ],
      "description": "New description (null/empty clears it)."
    },
    "image_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "New HTTPS image URL (null/empty clears it)."
    },
    "callback_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "New HTTPS webhook endpoint (null/empty clears it)."
    },
    "redirect_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "New HTTPS redirect (null/empty clears it)."
    },
    "metadata": {
      "type": [
        "object",
        "null"
      ],
      "description": "New metadata object (null clears it, max 4KB serialized)."
    },
    "expires_in": {
      "type": "integer",
      "description": "New checkout QR lifetime in seconds (300–1200).",
      "minimum": 300,
      "maximum": 1200
    },
    "due_date": {
      "type": "string",
      "description": "Charges only: new first due date (YYYY-MM-DD). Cannot be cleared."
    },
    "recurrence": {
      "type": [
        "string",
        "null"
      ],
      "description": "Charges only: new recurrence (null makes it one-time)."
    },
    "late_fine_bps": {
      "type": "integer",
      "description": "Charges only: new one-time fine in basis points (0–2000).",
      "minimum": 0,
      "maximum": 2000
    },
    "late_interest_monthly_bps": {
      "type": "integer",
      "description": "Charges only: new monthly interest in basis points (0–1000).",
      "minimum": 0,
      "maximum": 1000
    }
  }
}