> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stigg.io/llms.txt
> Use this file to discover all available pages before exploring further.

# estimateEventCost

> Estimate the credit cost of a usage event without reporting it



**query** `estimateEventCost(input: EstimateEventCostInput!): CreditCostEstimation!`

## Arguments

**`input`**: `EstimateEventCostInput!` (required)

Input for estimating the credit cost of a usage event without reporting it

## Returns

`CreditCostEstimation!`

**`estimates`**: `[CurrencyEstimate!]!`

Per-currency cost estimates

---

**`warnings`**: `[EstimationRequestWarning!]!`

Request-level warnings about the estimation context

## Examples

```graphql Query
query EstimateEventCost($input: EstimateEventCostInput!) {
  estimateEventCost(input: $input) {
    estimates {
      balanceAfterEstimate
      breakdown {
        cost
        featureId
        warningCode
      }
      currencyId
      currentBalance
      estimatedCost
      wouldOverdraft
    }
    warnings
  }
}
```

```json Variables
{
  "input": {
    "customerId": "string",
    "eventName": "string"
  }
}
```

```json Response
{
  "data": {
    "estimateEventCost": {
      "estimates": [
        {
          "balanceAfterEstimate": 1.5,
          "breakdown": [
            {
              "cost": 1.5,
              "featureId": "string",
              "warningCode": "UNSUPPORTED_AGGREGATION"
            }
          ],
          "currencyId": "string",
          "currentBalance": 1.5,
          "estimatedCost": 1.5,
          "wouldOverdraft": true
        }
      ],
      "warnings": [
        "FEATURE_NOT_CREDIT_BASED"
      ]
    }
  }
}
```


## Related topics

- [Node.js SDK](https://docs.stigg.io/api-and-sdks/changelog/backend-graphql/node.md)
- [JavaScript SDK](https://docs.stigg.io/api-and-sdks/changelog/frontend/javascript.md)
- [Go SDK](https://docs.stigg.io/api-and-sdks/changelog/backend-graphql/go.md)
- [API Client (JS)](https://docs.stigg.io/api-and-sdks/changelog/backend-graphql/api-client-js.md)
- [.NET SDK](https://docs.stigg.io/api-and-sdks/changelog/backend-graphql/dotnet.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.