> ## 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.

# refreshContractUsage

> Refresh the metered usage of a contract's subscriptions in the connected billing provider for the current billing period. Sends only the usage not yet reported, so it is safe to call repeatedly; a no-op when there is nothing to report. Requires a connected billing provider integration.



**mutation** `refreshContractUsage(input: RefreshContractUsageInput!): RefreshContractUsageResultDTO!`

## Arguments

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

Input for refreshing a contract's usage in the connected billing provider.

## Returns

`RefreshContractUsageResultDTO!`

**`failedFeatureIds`**: `[String!]!`

Feature IDs whose usage report failed transiently and will be retried on the next report

---

**`reportedFeatureIds`**: `[String!]!`

Feature IDs whose usage was successfully reported

---

**`skippedFeatureIds`**: `[String!]!`

Feature IDs permanently excluded from billing (their meter aggregation cannot be reconciled with the provider)

## Examples

```graphql Mutation
mutation RefreshContractUsage($input: RefreshContractUsageInput!) {
  refreshContractUsage(input: $input) {
    failedFeatureIds
    reportedFeatureIds
    skippedFeatureIds
  }
}
```

```json Variables
{
  "input": {
    "contractId": "string"
  }
}
```

```json Response
{
  "data": {
    "refreshContractUsage": {
      "failedFeatureIds": [
        "string"
      ],
      "reportedFeatureIds": [
        "string"
      ],
      "skippedFeatureIds": [
        "string"
      ]
    }
  }
}
```


## Related topics

- [Refresh contract usage](https://docs.stigg.io/api-reference/contracts/refresh-contract-usage.md)
- [RefreshContractUsageInput](https://docs.stigg.io/graphql-reference/types/RefreshContractUsageInput.md)
- [RefreshContractUsageResultDTO](https://docs.stigg.io/graphql-reference/types/RefreshContractUsageResultDTO.md)
- [Reporting entitlement usage](https://docs.stigg.io/documentation/managing-customers-and-subscriptions/customers/reporting-entitlement-usage.md)
- [Viewing customers entitlement usage](https://docs.stigg.io/documentation/managing-customers-and-subscriptions/customers/viewing-customers-entitlement-usage.md)


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