---
page_source: https://docs.juspay.io/paytm-gateway-configuration/docs/express-checkout/refresh-all-wallets
page_title: Refresh All Wallets
---

## API Version: default


# Refresh All Wallets



The API can be used to fetch the list of all the wallets created against a customer and also provides the balances (wherever applicable).## Endpoints:
- Production: https://api.juspay.in/customers/{customer_id}/wallets/refresh-balances

## Request Type: 
GET

## Authorization:

#### Basic Auth:
Consists of two parts.

* Username: API Key obtained from Juspay dashboard
* Password: Empty string

Example:- Basic MUQ2QUxxxxxxxxxxxxU5QTIxQzNFNTQwNkFDMEZCOg==
- Tags: Base64 Encoded Username:Password, Mandatory
## Headers:

#### version:
Refer to #Introduction for latest version
- Tags: string, Required

#### x-merchantid:
The merchantId/username provided by Juspay
- Tags: string, Required

#### Content-Type:
Should be application/x-www-form-urlencoded
- Tags: string, Required
## Sample Code Snippets:
### Sample Request:

#### Request Code Snippet:

```request
curl --location --request GET 'https://api.juspay.in/customers/cth_eN4e4kR12CJV/wallets/refresh-balances' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'version: 2023-06-30' \
--header 'Authorization: Basic NTlEQ****QzE1Og=='
```

### Sample Response:

#### Response:
```json
{
  "list": [
    {
      "wallet": "PAYTM",
      "token": "tk_04ec****cff6f4095a",
      "last_refreshed": "2022-02-17T06:58:08Z",
      "juspay_bank_code": "JP_PAYTM",
      "object": "wallet_account",
      "metadata": {
        "mobile_number": "77****78"
      },
      "id": "wlt_x1****K6am",
      "current_balance": 109.55,
      "gateway_reference_id": null,
      "linked": true
    }
  ],
  "offset": 0,
  "count": 1,
  "total": 1,
  "object": "list"
}
```

## API Responses:
### 200:

#### list:
- Value:
  - **Wallet**:
    - Description: Name of the Wallet Provider
    - Tags: String
  - **Token**:
    - Description: Its a one time use,15min valid token which can be used for initiating the transaction
    - Tags: String
  - **Last_refreshed**:
    - Description: The timestamp when the wallet was last refreshed
    - Tags: String
  - **Juspay_bank_code**:
    - Description: The Juspay provided bank code
    - Tags: String
  - **Object**:
    - Description: It will be **wallet_account**
    - Tags: String
  - **Metadata.mobile_number**:
    - Description: The mobile_number that was passed in the create wallet API.
    - Tags: String
  - **Id**:
    - Description: The unique identifier generated by Juspay for a particular wallet
    - Tags: String
  - **Current_balance**:
    - Description: The balance available in the wallet. Available only for linked wallets.
    - Tags: number
  - **Gateway_reference_id**:
    - Description: The gateway reference id against which the wallet is created
    - Tags: String
  - **Linked**:
    - Description: Its true/false. Indicates whether the wallet is linked or not.
    - Tags: boolean
- Tags: Array of objects

#### offset:
- Tags: integer

#### count:
- Tags: Integer

#### total:
- Tags: Integer

#### object:
- Tags: String
### 400:

#### status:
- Description: Invalid Request
- Tags: string

#### error_code:
- Description: null_error
- Tags: string

#### error_message:
- Description: Customer not found for given customerId.
- Tags: string
### 401:

#### status:
- Description: Invalid Authentication
- Tags: string

#### error_code:
- Description: access_denied
- Tags: string

#### error_message:
- Description: Invalid Authentication
- Tags: string
