> 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.15-create-rules.md).

# 5.15 Create Rules

**Request**

| Method | URL       |
| ------ | --------- |
| POST   | /add-rule |

```
{
  "description": "Rule Description",
  "name": "Rule Name",
  "percentage": true,
  "to_wallet": true,
  "amount": 10.5,
  "is_active": true
}

```

**Response**

| Status | Response                                                                                     |
| ------ | -------------------------------------------------------------------------------------------- |
| 200    | <p><br></p><p>{</p><p>    "status": true,</p><p>    "rule\_id": 7</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>                                                                                  |
