> For the complete documentation index, see [llms.txt](https://hilals-organization.gitbook.io/magicpay-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hilals-organization.gitbook.io/magicpay-documentation/5.-products/5.4-get-rules.md).

# 5.4 Get Rules

**Request**

| Method | URL    |
| ------ | ------ |
| GET    | /rules |

**Query Params**

description(Optional): Filter members by description.

id(Optional): List of member IDs to filter.

name (Optional): Filter members by name.

page (Optional): Page number for pagination.

size (Optional): Number of items per page for pagination.

<br>

**Response**

| Status | Response                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 200    | <p><br></p><p>{</p><p>    "status": true,</p><p>    "data": {</p><p>        "items": \[</p><p>            {</p><p>                "name": "str",</p><p>                "description": "str",</p><p>                "to\_wallet": true,</p><p>                "is\_active": true,</p><p>                "updatedDate": "2023-12-14T18:32:40.623608",</p><p>                "percentage": true,</p><p>                "merchant\_id": 1,</p><p>                "id": 1,</p><p>                "amount": 1.0,</p><p>                "createdDate": "2023-12-14T18:32:40.623608",</p><p>                "deletedDate": null</p><p>            },</p><p>            {</p><p>                "name": "str1",</p><p>                "description": "str1",</p><p>                "to\_wallet": true,</p><p>                "is\_active": true,</p><p>                "updatedDate": "2023-12-14T18:32:48.759415",</p><p>                "percentage": true,</p><p>                "merchant\_id": 1,</p><p>                "id": 2,</p><p>                "amount": 1.0,</p><p>                "createdDate": "2023-12-14T18:32:48.759415",</p><p>                "deletedDate": null</p><p>            },</p><p>    },</p><p>    "page": 1,</p><p>    "size": 6,</p><p>    "total\_size": 6</p><p>}</p><p><br><br></p> |
| 403    | <p><br></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| 400    | <p><br></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| 401    | <p><br></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| 401    | <p><br></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| 500    | <p><br></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
