# Desktop Client Parameter Fix Guide
## 🚨 Critical Issue: Desktop Client Using Wrong Parameters
### ❌ What Desktop Client Is Doing Wrong:
```json
{
"costType": "cost", // WRONG - this parameter is ignored
"isUnblended": "false", // WRONG - doesn't trigger amortized
"costType": "net_amortized_cost" // WRONG - this parameter doesn't exist
}
```
### ✅ Correct Parameters for Each Cost Type:
#### 1. Regular Amortized Costs
```json
{
"accountId": "932213950603",
"startDate": "2024-12-01",
"endDate": "2025-08-24",
"groupBy": "none",
"periodGranLevel": "month",
"cloud_context": "aws",
"isAmortized": "true" // ✅ CORRECT parameter
}
```
#### 2. Net Amortized Costs
```json
{
"accountId": "932213950603",
"startDate": "2024-12-01",
"endDate": "2025-08-24",
"groupBy": "none",
"periodGranLevel": "month",
"cloud_context": "aws",
"isNetAmortized": "true" // ✅ CORRECT parameter
}
```
#### 3. Unblended Costs (Default)
```json
{
"accountId": "932213950603",
"startDate": "2024-12-01",
"endDate": "2025-08-24",
"groupBy": "none",
"periodGranLevel": "month",
"cloud_context": "aws"
// NO cost type parameter = unblended
}
```
## 🎯 Key Rules for Desktop Client:
1. **NEVER use `costType` parameter** - it doesn't exist in this API
2. **NEVER use `isUnblended` parameter** - it causes conflicts
3. **Use ONLY ONE cost type parameter**:
- `isAmortized: "true"` for regular amortized
- `isNetAmortized: "true"` for net amortized
- No parameter for unblended
4. **Always include `accountId`** - API fails without it
## 📊 Expected Results:
For December 2024 - August 2025 (9 months):
- **Unblended**: ~$1,084,866 total
- **Regular Amortized**: ~$1,088,851 total (slightly higher due to RI/SP allocation)
- **Net Amortized**: ~$629,489 total (42% savings with RI/SP benefits + credits)
## 🔧 Server Response Analysis:
The server keeps saying:
> "You requested regular amortized costs, but this endpoint returns unblended costs"
This means the server is **ignoring the wrong parameters** and defaulting to unblended costs.
## ✅ Solution Implementation:
Desktop client must use the **exact parameter mappings** from the API artifact:
- "amortized costs" → `isAmortized: "true"`
- "net amortized costs" → `isNetAmortized: "true"`
- Remove all `costType` and `isUnblended` parameters