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

# consumeCreditsAsync

> Consume credits directly from wallets asynchronously (high-volume)



**mutation** `consumeCreditsAsync(input: ConsumeCreditsAsyncInput!): String`

## Arguments

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

## Returns

`String`

## Examples

```graphql Mutation
mutation ConsumeCreditsAsync($input: ConsumeCreditsAsyncInput!) {
  consumeCreditsAsync(input: $input)
}
```

```json Variables
{
  "input": {
    "consumptions": [
      {
        "amount": 1.5,
        "currencyId": "string",
        "customerId": "string",
        "idempotencyKey": "string"
      }
    ]
  }
}
```

```json Response
{
  "data": {
    "consumeCreditsAsync": "string"
  }
}
```


## Related topics

- [.NET SDK](https://docs.stigg.io/api-and-sdks/changelog/backend-graphql/dotnet.md)
- [Go SDK](https://docs.stigg.io/api-and-sdks/changelog/backend-graphql/go.md)
- [Java SDK](https://docs.stigg.io/api-and-sdks/changelog/backend-graphql/java.md)
- [Node.js SDK](https://docs.stigg.io/api-and-sdks/changelog/backend-graphql/node.md)
- [Customer credits](https://docs.stigg.io/documentation/modeling-your-pricing-in-stigg/credits/customer-credits.md)


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