{
  "openapi": "3.0.1",
  "info": {
    "title": "PriceCalculatorAPI",
    "version": "v1"
  },
  "paths": {
    "/api/Pricing/calculate": {
      "post": {
        "tags": [
          "Pricing"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PricingRequest"
              },
              "example": {"productCost":75.42,"shippingCost":6.5,"marketplaceTax":0.15,"tax":0.23,"customerProfitTax":0.1,"country":null,"specialCat":false}
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PricingRequest"
              },
              "example": {"productCost":75.42,"shippingCost":6.5,"marketplaceTax":0.15,"tax":0.23,"customerProfitTax":0.1,"country":null,"specialCat":false}
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PricingRequest"
              },
              "example": {"productCost":75.42,"shippingCost":6.5,"marketplaceTax":0.15,"tax":0.23,"customerProfitTax":0.1,"country":null,"specialCat":false}
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Pricing/calculate-batch": {
      "post": {
        "tags": [
          "Pricing"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": { },
              "example": [{"id":"1","productCost":75.42,"shippingCost":6.5,"marketplaceTax":0.15,"tax":0.23,"customerProfitTax":0.1,"country":"PT","specialCat":false},{"id":"2","productCost":49.37,"shippingCost":6.5,"marketplaceTax":0.15,"tax":0.19,"customerProfitTax":0.11,"country":"ES","specialCat":false},{"id":"3","productCost":143.29,"shippingCost":6.5,"marketplaceTax":0.15,"tax":0.21,"customerProfitTax":0.09,"country":"DE","specialCat":true}]
            },
            "text/json": {
              "schema": { },
              "example": [{"id":"1","productCost":75.42,"shippingCost":6.5,"marketplaceTax":0.15,"tax":0.23,"customerProfitTax":0.1,"country":"PT","specialCat":false},{"id":"2","productCost":49.37,"shippingCost":6.5,"marketplaceTax":0.15,"tax":0.19,"customerProfitTax":0.11,"country":"ES","specialCat":false},{"id":"3","productCost":143.29,"shippingCost":6.5,"marketplaceTax":0.15,"tax":0.21,"customerProfitTax":0.09,"country":"DE","specialCat":true}]
            },
            "application/*+json": {
              "schema": { },
              "example": [{"id":"1","productCost":75.42,"shippingCost":6.5,"marketplaceTax":0.15,"tax":0.23,"customerProfitTax":0.1,"country":"PT","specialCat":false},{"id":"2","productCost":49.37,"shippingCost":6.5,"marketplaceTax":0.15,"tax":0.19,"customerProfitTax":0.11,"country":"ES","specialCat":false},{"id":"3","productCost":143.29,"shippingCost":6.5,"marketplaceTax":0.15,"tax":0.21,"customerProfitTax":0.09,"country":"DE","specialCat":true}]
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "PricingRequest": {
        "required": [
          "customerProfitTax",
          "marketplaceTax",
          "productCost",
          "shippingCost",
          "tax"
        ],
        "type": "object",
        "properties": {
          "productCost": {
            "type": "number",
            "format": "double"
          },
          "shippingCost": {
            "type": "number",
            "format": "double"
          },
          "marketplaceTax": {
            "type": "number",
            "format": "double"
          },
          "tax": {
            "type": "number",
            "format": "double"
          },
          "customerProfitTax": {
            "type": "number",
            "format": "double"
          },
          "country": {
            "type": "string",
            "nullable": true
          },
          "specialCat": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      }
    }
  }
}