---
title: "POST /v1/fraud/rules"
method: POST
path: "/v1/fraud/rules"
---

# POST /v1/fraud/rules

`POST /v1/fraud/rules`

## Request

- Base URL: ` https://api.paymongo.com` (relative, and the document’s source URL is not known)
- URL: ` https://api.paymongo.com/v1/fraud/rules`
- Auth: HTTP basic

## Request body

- object
  - `rule_order` integer: Order of the rule attribute. The rule attribute determines the order; lower values are processed first.
  - `enabled` boolean: Enabled or disabled the rule.
  - `action` string: Action taken for this rule. Valid values `allow`, `block`, or `review`. Default is `review`.
  - `name` string: Name of the rule.
  - `rules` object[]: List of rule attributes
    - `rule_attribute` string: Name of the rule attribute. See /v1/fraud/rule-attributes.
    - `rule_value` string: Value of the rule attribute. The type of the value depends on the rule_attribute name.
  - `operator` string: Logical operator for the rules. Accepted value are "AND" and "OR".

## Response `200`

---

[API](https://skmtc.dev/paymongo/apis/fraud-prevention.md) - [All operations](https://skmtc.dev/paymongo/apis/fraud-prevention/llms.txt) - [OpenAPI document](https://skmtc.dev/paymongo/apis/fraud-prevention/revisions/78ba86eb7198?raw)
