{
  "tool_id": "margin_markup_discount",
  "slug": "margin-markup-discount-calculator",
  "path": "/margin-markup-discount-calculator/",
  "mode": "url_api",
  "api_usage": "GET https://aibizhub.io/api/margin-markup-discount-calculator/?<params>",
  "sample_input": {
    "tool": "margin_markup_discount",
    "mode": "margin_to_price",
    "cost": 40,
    "margin_percent": 35
  },
  "input_schema": {
    "type": "object",
    "properties": {
      "tool": {
        "type": "string"
      },
      "mode": {
        "type": "string"
      },
      "cost": {
        "type": "integer"
      },
      "margin_percent": {
        "type": "integer"
      }
    },
    "required": [
      "tool",
      "mode",
      "cost",
      "margin_percent"
    ]
  },
  "output_schema": {
    "type": "object",
    "properties": {
      "mode": {
        "type": "string"
      },
      "cost": {
        "type": "number"
      },
      "listPrice": {
        "type": "null"
      },
      "salePrice": {
        "type": "number"
      },
      "grossProfit": {
        "type": "number"
      },
      "marginPercent": {
        "type": "number"
      },
      "markupPercent": {
        "type": "number"
      },
      "discountPercent": {
        "type": "null"
      },
      "formulaTrace": {
        "type": "string"
      },
      "warnings": {
        "type": "array",
        "items": {}
      },
      "assumptionsEcho": {
        "type": "object",
        "properties": {
          "mode": {
            "type": "string"
          },
          "cost": {
            "type": "number"
          },
          "inputSalePrice": {
            "type": "null"
          },
          "inputListPrice": {
            "type": "null"
          },
          "inputMarginPercent": {
            "type": "number"
          },
          "inputMarkupPercent": {
            "type": "null"
          },
          "inputDiscountPercent": {
            "type": "null"
          }
        }
      }
    }
  }
}
