# replenish

Call the **replenish** API to replenish transaction Credentials.

> **Note**: The SDK includes internal logic that automatically triggers Credential replenishment. Therefore, in most cases, you do not need to call this API directly. For configuration details, see the [**init**](init-nfc.md) API.

## Method signature

```java
void replenish(@Nullable ACResultCallback<Integer> callback);
```

## Request parameters

| **Item** | **Type** | **Description** | **Required** |
| --- | --- | --- | --- |
| callback | [ACResultCallback](ac_result_callback)<Integer> | The replenishment result. Valid values are: - 1: Successful replenishment. - 0: Failed to replenish. | Optional |

## Response parameters

N/A

## Sample

```kotlin
manager = ACTapManager.getInstance(this.getApplication());
manager.replenish((result, errorCode, errorMsg) ->
                log("replenish result：" + result + "    errorCode:" + errorCode + "  errorMsg:" + errorMsg));
```