# Get Merchant Wallet Details

This endpoint allows a merchant to retrieve a list of active and operable wallet provisioned under the Merchants Tylt account.

Merchant wallets may be mapped to different products, services, currencies, or settlement rails. This endpoint returns wallet-level information such as wallet identifier, wallet type, currency, status, and other associated metadata.

**Endpoint**

<mark style="color:green;">**`GET`**</mark>`https://api.tylt.money/transactions/merchant/getMerchantDetails`

**Endpoint  Example**

<mark style="color:green;">**`GET`**</mark>`https://api.tylt.money/transactions/merchant/getMerchantDetails`

**Request Headers**

{% tabs %}
{% tab title="Headers" %}

<table data-full-width="true"><thead><tr><th width="133">Name</th><th width="79">Type</th><th width="167">Example</th><th>Description</th></tr></thead><tbody><tr><td>X-TLP-APIKEY</td><td>string</td><td>93ee3c5e133697251b5362bcf9cc8532476785t8768075616f58d88</td><td>Your Tylt API Key, used to identify your account in API requests.</td></tr><tr><td>X-TLP-SIGNATURE</td><td>string</td><td>d0afef3853dfc8489c8b9affa5825171fdd7y7685675e4966a05f66ed2b3eaf9462b3c9c0</td><td>HMAC SHA-256 signature generated using the API Secret Key to secure the request.</td></tr></tbody></table>
{% endtab %}
{% endtabs %}

{% hint style="info" %}
When using the API, ensure to include your API Key and generate the signature for the request payload using your API Secret. The tables provided above contain example values for illustration purposes only. Please refer to the code snippets for detailed instructions on how to sign the request and generate the signature properly.
{% endhint %}

**Code Snippet**

{% tabs %}
{% tab title="Node JS" %}

```javascript
const axios = require('axios');
const crypto = require('crypto');

// Replace with your API Key and Secret
const apiKey = 'your-api-key';
const apiSecret = 'your-api-secret';

// Create the HMAC SHA-256 signature
const signature = crypto
  .createHmac('sha256', apiSecret)
  .update( JSON.stringify({}) )
  .digest('hex');

// Define headers
const headers = {
  "X-TLP-APIKEY": apiKey,
  "X-TLP-SIGNATURE": signature
};

// Send the GET request
axios.get(`https://api.tylt.money/transactions/merchant/getMerchantDetails`, { headers })
  .then(response => {
    console.log("Response:", response.data);
  })
  .catch(error => {
    console.error('Error:', error.response ? error.response.data : error.message);
  });

```

{% endtab %}
{% endtabs %}

**Response**

{% tabs %}
{% tab title="200" %}

```json
{
  "data": [
    {
      "merchantUUID": "byu536-72a7-11ef-8277-02d8461243e9",
      "merchantName": "Merchant 1",
      "accountCategory": "UPI Payin"
    },
    {
      "merchantUUID": "khb5h4-7676-11ef-8277-02d8461243e9",
      "merchantName": "Merchant 2",
      "accountCategory": "PIX Daily Payin"
    }
  ],
  "errorCode": 0,
  "msg": ""
}
```

{% endtab %}

{% tab title="Response Fields" %}

| Field Name        | Type   | Description                                                                                                                                                                                          |
| ----------------- | ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `merchantUUID`    | String | Unique identifier of the merchant wallet. This value must be used as the reference (`fromWalletId` / `toWalletId`) when initiating internal transfers via the `POST /wallets/internal-transfer` API. |
| `merchantName`    | String | Human-readable name assigned to the wallet. This is typically used for display purposes in dashboards, reports, and reconciliation workflows.                                                        |
| `accountCategory` | Number | Describes the service or product context under which the wallet operates. This helps identify the functional purpose of the wallet within the Tylt ecosystem.                                        |
| {% endtab %}      |        |                                                                                                                                                                                                      |
| {% endtabs %}     |        |                                                                                                                                                                                                      |
