---
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`

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.

---

[API](https://skmtc.net/stiggio/apis/stigg-api.md) · [All operations](https://skmtc.net/stiggio/apis/stigg-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/stiggio/stigg-api/revisions/3e2c8cfcd035/schema)
