{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/infumar-com/json-schema/infumar-com-post-integrations-track-sale-request-schema.json",
  "title": "PostIntegrationsTrackSaleRequest",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/infumar-com-openapi-generated.yml#/components/schemas/PostIntegrationsTrackSaleRequest",
  "type": "object",
  "properties": {
    "shortCode": {
      "type": "string",
      "description": "infumar_aff çerezinden alınan kısa kod"
    },
    "orderId": {
      "type": "string",
      "description": "Mağaza sipariş ID’si"
    },
    "orderTotal": {
      "type": "number",
      "description": "Müşterinin ödediği tutar"
    },
    "currency": {
      "type": "string",
      "description": "Para birimi (örnek: TRY)"
    },
    "paymentOnDelivery": {
      "type": "boolean",
      "description": "Kapıda ödeme ise true"
    },
    "products": {
      "type": "array",
      "description": "Satılan ürünler"
    },
    "products[].productId": {
      "type": "string",
      "description": "sync‑products’da gönderilen ürün ID’si"
    },
    "products[].name": {
      "type": "string",
      "description": "Ürün adı"
    },
    "products[].price": {
      "type": "number",
      "description": "Birim fiyat"
    },
    "products[].quantity": {
      "type": "integer",
      "description": "Adet"
    }
  },
  "required": [
    "shortCode",
    "orderId",
    "orderTotal",
    "currency",
    "paymentOnDelivery",
    "products",
    "products[].productId",
    "products[].name",
    "products[].price",
    "products[].quantity"
  ]
}