{
  "description": "Documentation only; this URL is not an MCP transport endpoint.",
  "tools": [
    {
      "name": "zysku_preview_report",
      "description": "Sprawdź jawnie przekazane CSV i podejrzyj wynik brutto PLN. Brak kosztu pozostaje null; bez zapisu, konta i eksportu.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "type": "object",
        "properties": {
          "input": {
            "type": "object",
            "properties": {
              "orders": {
                "type": "object",
                "properties": {
                  "text": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 15000000
                  },
                  "name": {
                    "type": "string",
                    "maxLength": 512
                  }
                },
                "required": [
                  "text"
                ],
                "additionalProperties": false
              },
              "costs": {
                "type": "object",
                "properties": {
                  "text": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 15000000
                  },
                  "name": {
                    "type": "string",
                    "maxLength": 512
                  }
                },
                "required": [
                  "text"
                ],
                "additionalProperties": false
              },
              "orderMap": {
                "type": "object",
                "properties": {
                  "Id": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "Total": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "Refunded Amount": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "Currency": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "Financial Status": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "Lineitem SKU": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "Lineitem quantity": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "Created at": {
                    "type": "integer",
                    "minimum": -1,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "Id",
                  "Total",
                  "Refunded Amount",
                  "Currency",
                  "Financial Status",
                  "Lineitem SKU",
                  "Lineitem quantity"
                ],
                "additionalProperties": false
              },
              "costMap": {
                "type": "object",
                "properties": {
                  "SKU": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "unit_cost": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "SKU",
                  "unit_cost"
                ],
                "additionalProperties": false
              },
              "extra": {
                "type": "object",
                "properties": {
                  "fees": {
                    "type": "string"
                  },
                  "shipping": {
                    "type": "string"
                  },
                  "ads": {
                    "type": "string"
                  },
                  "fixed": {
                    "type": "string"
                  }
                },
                "required": [
                  "fees",
                  "shipping",
                  "ads",
                  "fixed"
                ],
                "additionalProperties": false
              },
              "basis": {
                "type": "string",
                "const": "gross_PLN_original_ordered_quantities"
              }
            },
            "required": [
              "orders",
              "costs",
              "orderMap",
              "costMap",
              "extra",
              "basis"
            ],
            "additionalProperties": false
          },
          "issuePage": {
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          }
        },
        "required": [
          "input"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "zysku_inspect_report",
      "description": "Przejrzyj pojedynczy raport, jawne view=comparison z pełnymi A/B albo view=correction z input i kompletnymi candidateOrders/candidateOrderMap. Korekta sprawdza te same ID/pozycje/ilości/literalne daty i wpływ kwot przy kosztach bazowych. Do 12 pozycji na stronie, bez Apply/zapisu/konta/FX. Explicit stateless comparison or same-order correction preview; old views remain unchanged.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "input": {
                "type": "object",
                "properties": {
                  "orders": {
                    "type": "object",
                    "properties": {
                      "text": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 15000000
                      },
                      "name": {
                        "type": "string",
                        "maxLength": 512
                      }
                    },
                    "required": [
                      "text"
                    ],
                    "additionalProperties": false
                  },
                  "costs": {
                    "type": "object",
                    "properties": {
                      "text": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 15000000
                      },
                      "name": {
                        "type": "string",
                        "maxLength": 512
                      }
                    },
                    "required": [
                      "text"
                    ],
                    "additionalProperties": false
                  },
                  "orderMap": {
                    "type": "object",
                    "properties": {
                      "Id": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "Total": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "Refunded Amount": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "Currency": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "Financial Status": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "Lineitem SKU": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "Lineitem quantity": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "Created at": {
                        "type": "integer",
                        "minimum": -1,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "Id",
                      "Total",
                      "Refunded Amount",
                      "Currency",
                      "Financial Status",
                      "Lineitem SKU",
                      "Lineitem quantity"
                    ],
                    "additionalProperties": false
                  },
                  "costMap": {
                    "type": "object",
                    "properties": {
                      "SKU": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "unit_cost": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "SKU",
                      "unit_cost"
                    ],
                    "additionalProperties": false
                  },
                  "extra": {
                    "type": "object",
                    "properties": {
                      "fees": {
                        "type": "string"
                      },
                      "shipping": {
                        "type": "string"
                      },
                      "ads": {
                        "type": "string"
                      },
                      "fixed": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "fees",
                      "shipping",
                      "ads",
                      "fixed"
                    ],
                    "additionalProperties": false
                  },
                  "basis": {
                    "type": "string",
                    "const": "gross_PLN_original_ordered_quantities"
                  }
                },
                "required": [
                  "orders",
                  "costs",
                  "orderMap",
                  "costMap",
                  "extra",
                  "basis"
                ],
                "additionalProperties": false
              },
              "view": {
                "type": "string",
                "enum": [
                  "orders",
                  "refunds",
                  "lines",
                  "missing",
                  "period",
                  "unused"
                ]
              },
              "query": {
                "type": "string",
                "maxLength": 256
              },
              "page": {
                "type": "integer",
                "minimum": 0,
                "maximum": 10000
              },
              "ordering": {
                "type": "string",
                "enum": [
                  "source",
                  "amount-desc",
                  "positions-desc",
                  "orders-desc"
                ]
              },
              "exactSKU": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "referencePage": {
                "type": "integer",
                "minimum": 0,
                "maximum": 10000
              },
              "entryKey": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "input",
              "view"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "view": {
                "type": "string",
                "const": "comparison"
              },
              "A": {
                "type": "object",
                "properties": {
                  "input": {
                    "type": "object",
                    "properties": {
                      "orders": {
                        "type": "object",
                        "properties": {
                          "text": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 15000000
                          },
                          "name": {
                            "type": "string",
                            "maxLength": 512
                          }
                        },
                        "required": [
                          "text"
                        ],
                        "additionalProperties": false
                      },
                      "costs": {
                        "type": "object",
                        "properties": {
                          "text": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 15000000
                          },
                          "name": {
                            "type": "string",
                            "maxLength": 512
                          }
                        },
                        "required": [
                          "text"
                        ],
                        "additionalProperties": false
                      },
                      "orderMap": {
                        "type": "object",
                        "properties": {
                          "Id": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "Total": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "Refunded Amount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "Currency": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "Financial Status": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "Lineitem SKU": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "Lineitem quantity": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "Created at": {
                            "type": "integer",
                            "minimum": -1,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "Id",
                          "Total",
                          "Refunded Amount",
                          "Currency",
                          "Financial Status",
                          "Lineitem SKU",
                          "Lineitem quantity"
                        ],
                        "additionalProperties": false
                      },
                      "costMap": {
                        "type": "object",
                        "properties": {
                          "SKU": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "unit_cost": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "SKU",
                          "unit_cost"
                        ],
                        "additionalProperties": false
                      },
                      "extra": {
                        "type": "object",
                        "properties": {
                          "fees": {
                            "type": "string"
                          },
                          "shipping": {
                            "type": "string"
                          },
                          "ads": {
                            "type": "string"
                          },
                          "fixed": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "fees",
                          "shipping",
                          "ads",
                          "fixed"
                        ],
                        "additionalProperties": false
                      },
                      "basis": {
                        "type": "string",
                        "const": "gross_PLN_original_ordered_quantities"
                      }
                    },
                    "required": [
                      "orders",
                      "costs",
                      "orderMap",
                      "costMap",
                      "extra",
                      "basis"
                    ],
                    "additionalProperties": false
                  },
                  "scope": {
                    "type": "object",
                    "properties": {
                      "from": {
                        "type": "string",
                        "maxLength": 10
                      },
                      "to": {
                        "type": "string",
                        "maxLength": 10
                      },
                      "confirmed": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "from",
                      "to",
                      "confirmed"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "input",
                  "scope"
                ],
                "additionalProperties": false
              },
              "B": {
                "type": "object",
                "properties": {
                  "input": {
                    "type": "object",
                    "properties": {
                      "orders": {
                        "type": "object",
                        "properties": {
                          "text": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 15000000
                          },
                          "name": {
                            "type": "string",
                            "maxLength": 512
                          }
                        },
                        "required": [
                          "text"
                        ],
                        "additionalProperties": false
                      },
                      "costs": {
                        "type": "object",
                        "properties": {
                          "text": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 15000000
                          },
                          "name": {
                            "type": "string",
                            "maxLength": 512
                          }
                        },
                        "required": [
                          "text"
                        ],
                        "additionalProperties": false
                      },
                      "orderMap": {
                        "type": "object",
                        "properties": {
                          "Id": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "Total": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "Refunded Amount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "Currency": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "Financial Status": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "Lineitem SKU": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "Lineitem quantity": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "Created at": {
                            "type": "integer",
                            "minimum": -1,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "Id",
                          "Total",
                          "Refunded Amount",
                          "Currency",
                          "Financial Status",
                          "Lineitem SKU",
                          "Lineitem quantity"
                        ],
                        "additionalProperties": false
                      },
                      "costMap": {
                        "type": "object",
                        "properties": {
                          "SKU": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "unit_cost": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "SKU",
                          "unit_cost"
                        ],
                        "additionalProperties": false
                      },
                      "extra": {
                        "type": "object",
                        "properties": {
                          "fees": {
                            "type": "string"
                          },
                          "shipping": {
                            "type": "string"
                          },
                          "ads": {
                            "type": "string"
                          },
                          "fixed": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "fees",
                          "shipping",
                          "ads",
                          "fixed"
                        ],
                        "additionalProperties": false
                      },
                      "basis": {
                        "type": "string",
                        "const": "gross_PLN_original_ordered_quantities"
                      }
                    },
                    "required": [
                      "orders",
                      "costs",
                      "orderMap",
                      "costMap",
                      "extra",
                      "basis"
                    ],
                    "additionalProperties": false
                  },
                  "scope": {
                    "type": "object",
                    "properties": {
                      "from": {
                        "type": "string",
                        "maxLength": 10
                      },
                      "to": {
                        "type": "string",
                        "maxLength": 10
                      },
                      "confirmed": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "from",
                      "to",
                      "confirmed"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "input",
                  "scope"
                ],
                "additionalProperties": false
              },
              "comparisonView": {
                "type": "string",
                "enum": [
                  "summary",
                  "issues",
                  "orders",
                  "refunds",
                  "skus",
                  "extras",
                  "sources"
                ]
              },
              "query": {
                "type": "string",
                "maxLength": 256
              },
              "page": {
                "type": "integer",
                "minimum": 0,
                "maximum": 10000
              },
              "slot": {
                "type": "string",
                "enum": [
                  "A",
                  "B"
                ]
              },
              "source": {
                "type": "string",
                "enum": [
                  "orders",
                  "costs"
                ]
              },
              "entryKey": {
                "type": "string",
                "maxLength": 80,
                "pattern": "^(?:(?:revenue|refunds):[AB]-order-\\d+|sku-\\d+|issue-\\d+)$"
              }
            },
            "required": [
              "view",
              "A",
              "B"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "view": {
                "type": "string",
                "const": "correction"
              },
              "input": {
                "type": "object",
                "properties": {
                  "orders": {
                    "type": "object",
                    "properties": {
                      "text": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 15000000
                      },
                      "name": {
                        "type": "string",
                        "maxLength": 512
                      }
                    },
                    "required": [
                      "text"
                    ],
                    "additionalProperties": false
                  },
                  "costs": {
                    "type": "object",
                    "properties": {
                      "text": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 15000000
                      },
                      "name": {
                        "type": "string",
                        "maxLength": 512
                      }
                    },
                    "required": [
                      "text"
                    ],
                    "additionalProperties": false
                  },
                  "orderMap": {
                    "type": "object",
                    "properties": {
                      "Id": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "Total": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "Refunded Amount": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "Currency": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "Financial Status": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "Lineitem SKU": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "Lineitem quantity": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "Created at": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "Id",
                      "Total",
                      "Refunded Amount",
                      "Currency",
                      "Financial Status",
                      "Lineitem SKU",
                      "Lineitem quantity",
                      "Created at"
                    ],
                    "additionalProperties": false
                  },
                  "costMap": {
                    "type": "object",
                    "properties": {
                      "SKU": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "unit_cost": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "SKU",
                      "unit_cost"
                    ],
                    "additionalProperties": false
                  },
                  "extra": {
                    "type": "object",
                    "properties": {
                      "fees": {
                        "type": "string"
                      },
                      "shipping": {
                        "type": "string"
                      },
                      "ads": {
                        "type": "string"
                      },
                      "fixed": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "fees",
                      "shipping",
                      "ads",
                      "fixed"
                    ],
                    "additionalProperties": false
                  },
                  "basis": {
                    "type": "string",
                    "const": "gross_PLN_original_ordered_quantities"
                  }
                },
                "required": [
                  "orders",
                  "costs",
                  "orderMap",
                  "costMap",
                  "extra",
                  "basis"
                ],
                "additionalProperties": false
              },
              "candidateOrders": {
                "type": "object",
                "properties": {
                  "text": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 15000000
                  },
                  "name": {
                    "type": "string",
                    "maxLength": 512
                  }
                },
                "required": [
                  "text"
                ],
                "additionalProperties": false
              },
              "candidateOrderMap": {
                "type": "object",
                "properties": {
                  "Id": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "Total": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "Refunded Amount": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "Currency": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "Financial Status": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "Lineitem SKU": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "Lineitem quantity": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "Created at": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "Id",
                  "Total",
                  "Refunded Amount",
                  "Currency",
                  "Financial Status",
                  "Lineitem SKU",
                  "Lineitem quantity",
                  "Created at"
                ],
                "additionalProperties": false
              },
              "correctionView": {
                "type": "string",
                "enum": [
                  "summary",
                  "issues",
                  "changes",
                  "sources"
                ]
              },
              "query": {
                "type": "string",
                "maxLength": 256
              },
              "page": {
                "type": "integer",
                "minimum": 0,
                "maximum": 10000
              },
              "source": {
                "type": "string",
                "enum": [
                  "beforeOrders",
                  "candidateOrders",
                  "costs"
                ]
              },
              "entryKey": {
                "type": "string",
                "maxLength": 80,
                "pattern": "^change-\\d+$"
              }
            },
            "required": [
              "view",
              "input",
              "candidateOrders",
              "candidateOrderMap"
            ],
            "additionalProperties": false
          }
        ],
        "type": "object"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "zysku_preview_cost_changes",
      "description": "Porównaj cały proponowany CSV kosztów z bieżącymi danymi. Tylko podgląd: nie stosuje pliku, nie zapisuje i nie pobiera raportu.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "type": "object",
        "properties": {
          "input": {
            "type": "object",
            "properties": {
              "orders": {
                "type": "object",
                "properties": {
                  "text": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 15000000
                  },
                  "name": {
                    "type": "string",
                    "maxLength": 512
                  }
                },
                "required": [
                  "text"
                ],
                "additionalProperties": false
              },
              "costs": {
                "type": "object",
                "properties": {
                  "text": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 15000000
                  },
                  "name": {
                    "type": "string",
                    "maxLength": 512
                  }
                },
                "required": [
                  "text"
                ],
                "additionalProperties": false
              },
              "orderMap": {
                "type": "object",
                "properties": {
                  "Id": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "Total": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "Refunded Amount": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "Currency": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "Financial Status": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "Lineitem SKU": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "Lineitem quantity": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "Created at": {
                    "type": "integer",
                    "minimum": -1,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "Id",
                  "Total",
                  "Refunded Amount",
                  "Currency",
                  "Financial Status",
                  "Lineitem SKU",
                  "Lineitem quantity"
                ],
                "additionalProperties": false
              },
              "costMap": {
                "type": "object",
                "properties": {
                  "SKU": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "unit_cost": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "SKU",
                  "unit_cost"
                ],
                "additionalProperties": false
              },
              "extra": {
                "type": "object",
                "properties": {
                  "fees": {
                    "type": "string"
                  },
                  "shipping": {
                    "type": "string"
                  },
                  "ads": {
                    "type": "string"
                  },
                  "fixed": {
                    "type": "string"
                  }
                },
                "required": [
                  "fees",
                  "shipping",
                  "ads",
                  "fixed"
                ],
                "additionalProperties": false
              },
              "basis": {
                "type": "string",
                "const": "gross_PLN_original_ordered_quantities"
              }
            },
            "required": [
              "orders",
              "costs",
              "orderMap",
              "costMap",
              "extra",
              "basis"
            ],
            "additionalProperties": false
          },
          "candidateCosts": {
            "type": "object",
            "properties": {
              "text": {
                "type": "string",
                "minLength": 1,
                "maxLength": 15000000
              },
              "name": {
                "type": "string",
                "maxLength": 512
              }
            },
            "required": [
              "text"
            ],
            "additionalProperties": false
          },
          "candidateCostMap": {
            "type": "object",
            "properties": {
              "SKU": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "unit_cost": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "SKU",
              "unit_cost"
            ],
            "additionalProperties": false
          },
          "query": {
            "type": "string",
            "maxLength": 256
          },
          "group": {
            "type": "string",
            "enum": [
              "all",
              "added",
              "removed",
              "changed",
              "unused"
            ]
          },
          "page": {
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          }
        },
        "required": [
          "input",
          "candidateCosts",
          "candidateCostMap"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      }
    }
  ]
}
