# 🚨 DESKTOP CLIENT: How to Fix Amortized Costs
## ⚠️ Current Problem
Desktop client is getting **unblended costs** when asking for **amortized costs** because it's using wrong parameters.
## ✅ Solution: Use the API Artifact
### **Step 1: Get the Artifact (REQUIRED)**
```
get_umbrella_api_artifact()
```
### **Step 2: Follow Artifact Mappings**
From the artifact, you'll learn:
- ✅ "amortized costs" → `isAmortized: "true"`
- ✅ "net amortized costs" → `isNetAmortized: "true"`
- ✅ Always include `accountId` (required)
- ❌ NEVER use `costType` parameter (ignored by API)
- ❌ NEVER use `isUnblended` parameter (doesn't work)
### **Step 3: Use Correct Parameters**
**For Regular Amortized:**
```json
{
"accountId": "932213950603",
"startDate": "2024-12-01",
"endDate": "2025-08-24",
"groupBy": "none",
"periodGranLevel": "month",
"cloud_context": "aws",
"isAmortized": "true"
}
```
**For Net Amortized:**
```json
{
"accountId": "932213950603",
"startDate": "2024-12-01",
"endDate": "2025-08-24",
"groupBy": "none",
"periodGranLevel": "month",
"cloud_context": "aws",
"isNetAmortized": "true"
}
```
## 🔍 How to Verify Success
- Server says "regular amortized costs" (not "returns unblended costs")
- March 2025 Regular Amortized: $108,831.79 (not $104,755.07)
- March 2025 Net Amortized: $64,730.56 (42% savings)
## 🎯 Tools Available
1. `check_amortized_prerequisites(query_type="amortized")` - Checks if you need the artifact
2. `get_umbrella_api_artifact()` - Gets complete parameter reference
3. `validate_caui_parameters(parameters={...})` - Validates parameters before API calls
## 🚨 Remember
**Without the artifact, you WILL get wrong results!**