{
  "openapi": "3.1.1",
  "info": {
    "title": "Çarşı Merkezi Satıcı API'si",
    "description": "Mağazanızın ürün, stok, fiyat ve siparişlerini kendi yazılımınızdan yönetin. Kimlik: X-Api-Key başlığı (cm_live_…). Ayrıntılı rehber: /gelistirici",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://www.carsimerkezi.com/"
    }
  ],
  "paths": {
    "/api/v1/partner/me": {
      "get": {
        "tags": [
          "Satıcı API'si"
        ],
        "summary": "Anahtarın bağlı olduğu mağaza ve yetkileri",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartnerMe"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/partner/categories": {
      "get": {
        "tags": [
          "Satıcı API'si"
        ],
        "summary": "Kategori ağacı (ürün yalnızca yaprak kategoriye bağlanır)",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PartnerCategory"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/partner/products": {
      "get": {
        "tags": [
          "Satıcı API'si"
        ],
        "summary": "Ürünler (sayfalı)",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "status",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/ProductStatus"
            }
          },
          {
            "name": "updatedSince",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfSellerProductDto"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Satıcı API'si"
        ],
        "summary": "Ürün oluştur (varyantlarıyla)",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProductInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/partner/products/{id}": {
      "get": {
        "tags": [
          "Satıcı API'si"
        ],
        "summary": "Ürün",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SellerProductDto"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Satıcı API'si"
        ],
        "summary": "Ürünü güncelle (listede olmayan varyant silinir)",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProductInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SellerProductDto"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Satıcı API'si"
        ],
        "summary": "Ürünü yayından kaldır",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/partner/products/{id}/images": {
      "post": {
        "tags": [
          "Satıcı API'si"
        ],
        "summary": "Görsel yükle (multipart, alan adı: files)",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ImageDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/partner/inventory": {
      "put": {
        "tags": [
          "Satıcı API'si"
        ],
        "summary": "SKU ile toplu stok/fiyat güncelle (en çok 500 satır)",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/InventoryInput"
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InventoryResult"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/partner/orders": {
      "get": {
        "tags": [
          "Satıcı API'si"
        ],
        "summary": "Siparişler (sayfalı, eskiden yeniye)",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/OrderStatus"
            }
          },
          {
            "name": "since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfOrderDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/partner/orders/{number}": {
      "get": {
        "tags": [
          "Satıcı API'si"
        ],
        "summary": "Sipariş",
        "parameters": [
          {
            "name": "number",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/partner/orders/{number}/prepare": {
      "post": {
        "tags": [
          "Satıcı API'si"
        ],
        "summary": "Siparişi hazırlanıyor yap",
        "parameters": [
          {
            "name": "number",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/partner/orders/{number}/ship": {
      "post": {
        "tags": [
          "Satıcı API'si"
        ],
        "summary": "Kargoya verildi (firma ve takip no)",
        "parameters": [
          {
            "name": "number",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ShipInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/partner/orders/{number}/deliver": {
      "post": {
        "tags": [
          "Satıcı API'si"
        ],
        "summary": "Teslim edildi",
        "parameters": [
          {
            "name": "number",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/partner/orders/{number}/cancel": {
      "post": {
        "tags": [
          "Satıcı API'si"
        ],
        "summary": "Siparişi iptal et (stok geri döner)",
        "parameters": [
          {
            "name": "number",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CancelInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderDto"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AddressSnapshot": {
        "required": [
          "fullName",
          "phone",
          "city",
          "district",
          "line",
          "postalCode"
        ],
        "type": "object",
        "properties": {
          "fullName": {
            "type": "string"
          },
          "phone": {
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "district": {
            "type": "string"
          },
          "line": {
            "type": "string"
          },
          "postalCode": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "CancelInput": {
        "required": [
          "reason"
        ],
        "type": "object",
        "properties": {
          "reason": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ImageDto": {
        "required": [
          "id",
          "key",
          "alt"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "key": {
            "type": "string"
          },
          "alt": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "InventoryInput": {
        "required": [
          "sku",
          "stock",
          "price",
          "compareAtPrice"
        ],
        "type": "object",
        "properties": {
          "sku": {
            "type": "string"
          },
          "stock": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "price": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "compareAtPrice": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "InventoryResult": {
        "required": [
          "sku",
          "ok",
          "error"
        ],
        "type": "object",
        "properties": {
          "sku": {
            "type": "string"
          },
          "ok": {
            "type": "boolean"
          },
          "error": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "OrderDto": {
        "required": [
          "id",
          "number",
          "status",
          "statusLabel",
          "channel",
          "externalChannel",
          "externalOrderId",
          "store",
          "customerName",
          "customerEmail",
          "customerPhone",
          "shippingAddress",
          "itemsTotal",
          "shippingFee",
          "total",
          "commissionTotal",
          "commissionVat",
          "payoutAmount",
          "cargoCompany",
          "trackingNumber",
          "trackingUrl",
          "createdAt",
          "paidAt",
          "shippedAt",
          "deliveredAt",
          "completedAt",
          "cancelledAt",
          "cancelReason",
          "items",
          "history",
          "allowedActions"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "number": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/OrderStatus"
          },
          "statusLabel": {
            "type": "string"
          },
          "channel": {
            "$ref": "#/components/schemas/SalesChannel"
          },
          "externalChannel": {
            "type": [
              "null",
              "string"
            ]
          },
          "externalOrderId": {
            "type": [
              "null",
              "string"
            ]
          },
          "store": {
            "$ref": "#/components/schemas/StoreRef"
          },
          "customerName": {
            "type": "string"
          },
          "customerEmail": {
            "type": [
              "null",
              "string"
            ]
          },
          "customerPhone": {
            "type": [
              "null",
              "string"
            ]
          },
          "shippingAddress": {
            "$ref": "#/components/schemas/AddressSnapshot"
          },
          "itemsTotal": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "shippingFee": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "commissionTotal": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "commissionVat": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "payoutAmount": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "cargoCompany": {
            "type": [
              "null",
              "string"
            ]
          },
          "trackingNumber": {
            "type": [
              "null",
              "string"
            ]
          },
          "trackingUrl": {
            "type": [
              "null",
              "string"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "paidAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "shippedAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "deliveredAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "completedAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "cancelledAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "cancelReason": {
            "type": [
              "null",
              "string"
            ]
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OrderItemDto"
            }
          },
          "history": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OrderHistoryDto"
            }
          },
          "allowedActions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "OrderHistoryDto": {
        "required": [
          "status",
          "statusLabel",
          "note",
          "actor",
          "createdAt"
        ],
        "type": "object",
        "properties": {
          "status": {
            "$ref": "#/components/schemas/OrderStatus"
          },
          "statusLabel": {
            "type": "string"
          },
          "note": {
            "type": [
              "null",
              "string"
            ]
          },
          "actor": {
            "type": [
              "null",
              "string"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "OrderItemDto": {
        "required": [
          "id",
          "productId",
          "title",
          "variantText",
          "sku",
          "imageKey",
          "quantity",
          "unitPrice",
          "lineTotal",
          "commissionRate",
          "commissionAmount",
          "productSlug"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "productId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "title": {
            "type": "string"
          },
          "variantText": {
            "type": [
              "null",
              "string"
            ]
          },
          "sku": {
            "type": "string"
          },
          "imageKey": {
            "type": [
              "null",
              "string"
            ]
          },
          "quantity": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "unitPrice": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "lineTotal": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "commissionRate": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "commissionAmount": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "productSlug": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "OrderStatus": {
        "enum": [
          "AwaitingPayment",
          "New",
          "Preparing",
          "Shipped",
          "Delivered",
          "Completed",
          "Cancelled",
          "Returned"
        ]
      },
      "PageOfOrderDto": {
        "required": [
          "items",
          "total",
          "pageNumber",
          "pageSize"
        ],
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OrderDto"
            }
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pageNumber": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pageSize": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "PageOfSellerProductDto": {
        "required": [
          "items",
          "total",
          "pageNumber",
          "pageSize"
        ],
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SellerProductDto"
            }
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pageNumber": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pageSize": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "PartnerCategory": {
        "required": [
          "id",
          "name",
          "slug",
          "path",
          "isLeaf"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "path": {
            "type": "string"
          },
          "isLeaf": {
            "type": "boolean"
          }
        }
      },
      "PartnerMe": {
        "required": [
          "storeId",
          "slug",
          "name",
          "status",
          "scopes",
          "keyName"
        ],
        "type": "object",
        "properties": {
          "storeId": {
            "type": "string",
            "format": "uuid"
          },
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "scopes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "keyName": {
            "type": "string"
          }
        }
      },
      "ProductInput": {
        "required": [
          "title",
          "categoryId",
          "brand",
          "barcode",
          "descriptionHtml",
          "description",
          "vatRate",
          "status",
          "attributes",
          "tags",
          "variants"
        ],
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "categoryId": {
            "type": "string",
            "format": "uuid"
          },
          "brand": {
            "type": [
              "null",
              "string"
            ]
          },
          "barcode": {
            "type": [
              "null",
              "string"
            ]
          },
          "descriptionHtml": {
            "type": [
              "null",
              "string"
            ]
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "vatRate": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "status": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ProductStatus"
              }
            ]
          },
          "attributes": {
            "type": [
              "null",
              "object"
            ],
            "additionalProperties": {
              "type": "string"
            }
          },
          "tags": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          },
          "variants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VariantInput"
            }
          }
        }
      },
      "ProductStatus": {
        "enum": [
          "Draft",
          "Active",
          "Passive"
        ]
      },
      "SalesChannel": {
        "enum": [
          "Marketplace",
          "Storefront",
          "External"
        ]
      },
      "SellerProductDto": {
        "required": [
          "id",
          "slug",
          "title",
          "categoryId",
          "categoryPath",
          "brand",
          "barcode",
          "descriptionHtml",
          "vatRate",
          "status",
          "attributes",
          "tags",
          "variants",
          "images",
          "views7d",
          "sales30d",
          "favoriteCount",
          "createdAt",
          "updatedAt"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "slug": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "categoryId": {
            "type": "string",
            "format": "uuid"
          },
          "categoryPath": {
            "type": "string"
          },
          "brand": {
            "type": [
              "null",
              "string"
            ]
          },
          "barcode": {
            "type": [
              "null",
              "string"
            ]
          },
          "descriptionHtml": {
            "type": [
              "null",
              "string"
            ]
          },
          "vatRate": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "status": {
            "$ref": "#/components/schemas/ProductStatus"
          },
          "attributes": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "variants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SellerVariantDto"
            }
          },
          "images": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ImageDto"
            }
          },
          "views7d": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "sales30d": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "favoriteCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "SellerVariantDto": {
        "required": [
          "id",
          "sku",
          "barcode",
          "options",
          "price",
          "compareAtPrice",
          "stock",
          "isActive"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "sku": {
            "type": "string"
          },
          "barcode": {
            "type": [
              "null",
              "string"
            ]
          },
          "options": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "price": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "compareAtPrice": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "stock": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "isActive": {
            "type": "boolean"
          }
        }
      },
      "ShipInput": {
        "required": [
          "cargoCompany",
          "trackingNumber",
          "trackingUrl"
        ],
        "type": "object",
        "properties": {
          "cargoCompany": {
            "type": "string"
          },
          "trackingNumber": {
            "type": "string"
          },
          "trackingUrl": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "StoreRef": {
        "required": [
          "id",
          "slug",
          "name",
          "logoKey"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "logoKey": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "VariantInput": {
        "required": [
          "id",
          "sku",
          "barcode",
          "options",
          "price",
          "compareAtPrice",
          "stock",
          "isActive"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "sku": {
            "type": "string"
          },
          "barcode": {
            "type": [
              "null",
              "string"
            ]
          },
          "options": {
            "type": [
              "null",
              "object"
            ],
            "additionalProperties": {
              "type": "string"
            }
          },
          "price": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "compareAtPrice": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "stock": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "isActive": {
            "type": [
              "null",
              "boolean"
            ]
          }
        }
      }
    }
  },
  "tags": [
    {
      "name": "Satıcı API'si"
    }
  ]
}