# Fund User Wallet

This endpoint allows a user to fund their wallet by providing the required transaction details.

***

#### Request Parameters

| **Name** | **Type** | **Location** | **Description**               |
| -------- | -------- | ------------ | ----------------------------- |
| `data`   | Object   | Body         | Contains the required fields. |

**Request Body Fields**

| **Field**  | **Type** | **Required** | **Description**                         |
| ---------- | -------- | ------------ | --------------------------------------- |
| `amount`   | Number   | Yes          | The amount to be funded in the wallet.  |
| `trans_id` | String   | Yes          | Transaction ID for the funding process. |

***

#### Responses

| **Code** | **Description**             |
| -------- | --------------------------- |
| `201`    | Wallet successfully funded. |

**Response Example**

```json
{
  "amount": 100.50,
  "trans_id": "abc123xyz"
}
```

**Response Model**

| **Field**  | **Type** | **Description**                                 |
| ---------- | -------- | ----------------------------------------------- |
| `amount`   | Number   | The funded amount in the wallet.                |
| `trans_id` | String   | Transaction ID of the wallet funding operation. |

***

#### Example Request

**cURL**

```bash
curl -X POST "https://api.example.com/wallets/fund-user-wallet/" \
-H "Content-Type: application/json" \
-d '{
  "amount": 100.50,
  "trans_id": "abc123xyz"
}'
```
