{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/depixapp-com/json-schema/depixapp-com-product-create-response-schema.json",
  "title": "ProductCreateResponse",
  "description": "Created product.",
  "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/ProductCreateResponse",
  "type": "object",
  "required": [
    "product"
  ],
  "additionalProperties": false,
  "properties": {
    "product": {
      "type": "object",
      "description": "The created product.",
      "required": [
        "id",
        "slug",
        "name",
        "amount",
        "description",
        "image_url",
        "callback_url",
        "redirect_url",
        "metadata",
        "expires_in",
        "active",
        "is_live",
        "kind",
        "due_date",
        "recurrence",
        "late_fine_bps",
        "late_interest_monthly_bps",
        "payment_url",
        "created_at"
      ],
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": "string",
          "description": "Product id (prd_*)."
        },
        "slug": {
          "type": "string",
          "description": "URL slug (unique per merchant and mode)."
        },
        "name": {
          "type": "string",
          "description": "Product name."
        },
        "amount": {
          "type": "integer",
          "description": "Price in cents."
        },
        "description": {
          "type": [
            "string",
            "null"
          ],
          "description": "Product description (null when not provided)."
        },
        "image_url": {
          "type": [
            "string",
            "null"
          ],
          "description": "Product image URL (null when not provided)."
        },
        "callback_url": {
          "type": [
            "string",
            "null"
          ],
          "description": "Webhook endpoint for this product's checkouts (null when not provided)."
        },
        "redirect_url": {
          "type": [
            "string",
            "null"
          ],
          "description": "Post-payment redirect (null when not provided)."
        },
        "metadata": {
          "type": [
            "object",
            "null"
          ],
          "description": "Metadata echoed back (null when not provided)."
        },
        "expires_in": {
          "type": "integer",
          "description": "Checkout QR lifetime in seconds."
        },
        "active": {
          "type": "boolean",
          "description": "Products are created active."
        },
        "is_live": {
          "type": "boolean",
          "description": "False for sandbox products (sk_test_)."
        },
        "kind": {
          "type": "string",
          "description": "'product' or 'charge'.",
          "enum": [
            "product",
            "charge"
          ]
        },
        "due_date": {
          "type": [
            "string",
            "null"
          ],
          "description": "First due date (charges; null for products)."
        },
        "recurrence": {
          "type": [
            "string",
            "null"
          ],
          "description": "Recurrence (charges; null = one-time and for products)."
        },
        "late_fine_bps": {
          "type": "integer",
          "description": "One-time late fine in basis points (0 for products)."
        },
        "late_interest_monthly_bps": {
          "type": "integer",
          "description": "Monthly interest in basis points (0 for products)."
        },
        "payment_url": {
          "type": "string",
          "description": "Public payment URL: pay.depixapp.com/{merchant_slug}/{slug} for products, pay.depixapp.com/c/{id} for charges."
        },
        "created_at": {
          "type": "string",
          "description": "Creation timestamp (ISO 8601)."
        }
      }
    }
  }
}