---
title: "Get automatic recharge configuration"
method: GET
path: "/api/v1/credits/auto-recharge"
tags: ["Auto recharge"]
---

# Get automatic recharge configuration

`GET /api/v1/credits/auto-recharge`

## Request

- Base URL: `https://api.stigg.io`
- URL: `https://api.stigg.io/api/v1/credits/auto-recharge`
- Auth: API key in header `X-API-KEY`

Retrieves the automatic recharge configuration for a customer and currency. Returns default settings if no configuration exists.

## Query parameters

- `customerId` string, required
- `currencyId` string, required

## Headers

- `X-ACCOUNT-ID` string
- `X-ENVIRONMENT-ID` string

## Response `200`

The automatic recharge configuration object.

- AutoRechargeResponseDto: Response object
  - `data` object, required: Automatic recharge configuration for a customer and currency
    - `id` string, nullable, required: The unique configuration ID
    - `customerId` string, required: The customer ID this configuration belongs to
    - `currencyId` string, required: The currency ID for this configuration
    - `isEnabled` boolean, required: Whether automatic recharge is enabled
    - `thresholdType` 'CREDIT_AMOUNT' | 'DOLLAR_AMOUNT', required: The threshold type (CREDIT_AMOUNT or DOLLAR_AMOUNT)
    - `thresholdValue` number, required: The threshold value that triggers a recharge
    - `targetBalance` number, required: The target credit balance to recharge to
    - `maxSpendLimit` number, nullable, required: Maximum monthly spend limit for automatic recharges
    - `grantExpirationPeriod` '1_MONTH' | '1_YEAR', required: Expiration period for auto-recharge grants (1_MONTH or 1_YEAR)
    - `createdAt` string, date-time, nullable, required: Timestamp of when the record was created
    - `updatedAt` string, date-time, nullable, required: Timestamp of when the record was last updated

## Other responses

- `400`: bad request.
- `401`: User is not authenticated.
- `403`: User is not allowed to access this resource.
- `404`: AutoRechargeSettings not found.
- `429`: Too many requests.

## Changes

- **2026-07-28** `913f273cc2f7`: 1 warning
  - added the new `ContractNotFound` enum value to the `code` response property for the response status `404`
- **2026-07-26** `b876edd1a4fc`: 5 warning
  - added the new `CreditOveragePriceCurrencyNotFound` enum value to the `code` response property for the response status `400`
  - added the new `InvalidCreditOverageBillingModel` enum value to the `code` response property for the response status `400`
  - added the new `InvoicePreviewNotAvailableForDraftContract` enum value to the `code` response property for the response status `400`
  - added the new `OveragePriceNotSupportedOnAddon` enum value to the `code` response property for the response status `400`
  - …1 more
- **2026-07-11** `58bb216ff8ce`: 1 warning
  - added the new `GovernanceNotEnabled` enum value to the `code` response property for the response status `403`
- **2026-06-08** `3acd63d6c861`: 2 info
  - added the new optional `header` request parameter `X-ACCOUNT-ID`
  - added the new optional `header` request parameter `X-ENVIRONMENT-ID`
- **2026-06-04** `4fa87d66426d`: 1 warning
  - added the new `PricingModelNotSupportedByBillingIntegration` enum value to the `code` response property for the response status `400`

[Operation history](https://skmtc.dev/stiggio/apis/stigg-api/changes/api/v1/credits/auto-recharge/get.md)

---

[API](https://skmtc.dev/stiggio/apis/stigg-api.md) - [All operations](https://skmtc.dev/stiggio/apis/stigg-api/llms.txt) - [OpenAPI document](https://skmtc.dev/stiggio/apis/stigg-api/revisions/3e2c8cfcd035?raw)
