Kâr Marjı Hesaplama: API ve MCP
Kâr Marjı Hesaplama için REST ve MCP başvurusu: girdi alanları, sınırlar, çıktılar, örnek istek ve gerçek yanıt. Ücretsiz, kayıt yok.
GET /api/v1/tools/finance.profit-margin/mcp/finance
- Kimlik
finance.profit-margin- Sürüm
- 1.0.0
- Erişim
- Ücretsiz
- Araç sayfası
- Kâr Marjı Hesaplama
- Şema
GET /api/v1/tools/finance.profit-margin
Girdiler
| Alan | Tür | Sınırlar | Varsayılan | Açıklama |
|---|---|---|---|---|
mode | string | costPrice | costMargin | costMarkup | priceMargin | costPrice | Hesaplama |
cost | number | > 0, ≤ 1.000.000.000.000 | Maliyet | |
price | number | > 0, ≤ 1.000.000.000.000 | Satış fiyatı · KDV hariç | |
margin | number | ≥ -1.000, ≤ 1.000 | Kâr marjı (%) · Kârın satış fiyatına oranı | |
markup | number | ≥ -100, ≤ 100.000 | Kâr oranı (%) · Kârın maliyete oranı | |
vatRate | number | ≥ 0, ≤ 100 | KDV oranı (%) · Fiyatın üstüne eklenir |
Çıktılar
| Alan | Tür | Açıklama |
|---|---|---|
result | number | Sonuç |
cost | number | Maliyet |
price | number | Satış fiyatı (KDV hariç) |
profit | number | Birim kâr |
margin | number | Kâr marjı (%) |
markup | number | Kâr oranı (maliyet üzerinden) (%) |
vat | number | KDV tutarı |
priceWithVat | number | KDV dahil satış fiyatı |
Örnek istek
curl -X POST https://hesaplayici.com/api/v1/tools/finance.profit-margin/execute \
-H 'Content-Type: application/json' \
-d '{"input":{"mode":"costPrice","cost":30,"price":45},"locale":"tr"}'Örnek yanıt
{
"output": {
"result": 33.33333333333333,
"cost": 30,
"price": 45,
"profit": 15,
"margin": 33.33333333333333,
"markup": 50
},
"steps": [
{
"id": "profit",
"formula": "kâr = satış fiyatı − maliyet",
"substitution": "kâr = 45,00 − 30,00",
"value": 15
},
{
"id": "margin",
"formula": "kâr marjı = kâr / satış fiyatı × 100",
"substitution": "kâr marjı = 15,00 / 45,00 × 100",
"value": 33.33333333333333,
"unit": "%"
},
{
"id": "markup",
"formula": "kâr oranı = kâr / maliyet × 100",
"substitution": "kâr oranı = 15,00 / 30,00 × 100",
"value": 50,
"unit": "%"
}
],
"notes": [],
"meta": {
"toolVersion": "1.0.0",
"locale": "tr"
},
"citation": {
"url": "https://hesaplayici.com/finans/kar-marji-hesaplama",
"title": "Kâr Marjı Hesaplama"
}
}