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

# getAutoRechargeSettings

> Get auto-recharge settings for a customer and currency



**query** `getAutoRechargeSettings(input: GetAutoRechargeSettingsInput!): AutoRechargeSettingsDTO!`

## Arguments

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

Input for getting auto-recharge settings

## Returns

`AutoRechargeSettingsDTO!`

**`createdAt`**: `DateTime`

Creation timestamp

---

**`currencyId`**: `String!`

Currency ID

---

**`currentMonthlySpend`**: `Float!`

Total amount spent on automatic recharge grants in the current monthly period (in USD)

---

**`customCurrency`**: `CustomCurrency!`

---

**`customer`**: `Customer!`

---

**`customerId`**: `String!`

Customer ID (refId)

---

**`environmentId`**: `UUID!`

The unique identifier for the environment

---

**`grantExpirationPeriod`**: `GrantExpirationPeriod!`

Expiration period for granted credits

---

**`id`**: `UUID`

Configuration ID

---

**`isEnabled`**: `Boolean!`

Whether auto-recharge is enabled

---

**`maxSpendLimit`**: `Float`

Maximum spend limit (null = unlimited)

---

**`targetBalance`**: `Float!`

Target balance

---

**`thresholdType`**: `ThresholdType!`

Type of threshold

---

**`thresholdValue`**: `Float!`

Threshold value

---

**`updatedAt`**: `DateTime`

Last update timestamp

---

**`validationConfig`**: `AutoRechargeValidationConfigDTO!`

Validation configuration based on subscription pricing

## Examples

```graphql Query
query GetAutoRechargeSettings($input: GetAutoRechargeSettingsInput!) {
  getAutoRechargeSettings(input: $input) {
    createdAt
    currencyId
    currentMonthlySpend
    customCurrency {
      additionalMetaData
      archivedAt
      createdAt
      currencyId
      description
      displayName
    }
    customer {
      additionalMetaData
      awsMarketplaceCustomerId
      billingCurrency
      billingId
      billingLinkUrl
      coupon {
        additionalMetaData
        amountsOff {
          __typename
        }
        billingId
        billingLinkUrl
        createdAt
        customers {
          __typename
        }
      }
    }
    customerId
  }
}
```

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

```json Response
{
  "data": {
    "getAutoRechargeSettings": {
      "createdAt": "value",
      "currencyId": "string",
      "currentMonthlySpend": 1.5,
      "customCurrency": {
        "additionalMetaData": "value",
        "archivedAt": "value",
        "createdAt": "value",
        "currencyId": "string",
        "description": "string",
        "displayName": "string"
      },
      "customer": {
        "additionalMetaData": "value",
        "awsMarketplaceCustomerId": "string",
        "billingCurrency": "AED",
        "billingId": "string",
        "billingLinkUrl": "string",
        "coupon": {
          "additionalMetaData": "value",
          "amountsOff": [
            {
              "__typename": "Money"
            }
          ],
          "billingId": "string",
          "billingLinkUrl": "string",
          "createdAt": "value",
          "customers": [
            {
              "__typename": "Customer"
            }
          ]
        }
      },
      "customerId": "string"
    }
  }
}
```


## Related topics

- [Go SDK](https://docs.stigg.io/api-and-sdks/changelog/backend-graphql/go.md)
- [GetAutoRechargeSettingsInput](https://docs.stigg.io/graphql-reference/types/GetAutoRechargeSettingsInput.md)
- [AutoRechargeSettingsDTO](https://docs.stigg.io/graphql-reference/types/AutoRechargeSettingsDTO.md)
- [saveAutoRechargeSettings](https://docs.stigg.io/graphql-reference/mutations/saveAutoRechargeSettings.md)
- [AutoRechargeSettingsDTOEdge](https://docs.stigg.io/graphql-reference/types/AutoRechargeSettingsDTOEdge.md)


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