Create a New Rule

Creates a new rule for processing payments.

Request

This endpoint expects an object.
merchantIdstringRequiredformat: "uuid"
Merchant identifier.
namestringRequired
Name of the rule.
prioritydoubleRequired
Rule priority.
isActivebooleanRequired
Whether the rule is active.
conditionslist of objectsRequired
actionslist of objectsRequired

Response

Rule created successfully.
idstring or null
Unique identifier for the rule.
namestring or null
Name of the rule.
merchantIdstring or nullformat: "uuid"
Merchant identifier.
prioritydouble or null

Rule priority (higher precedence evaluated first).

isActiveboolean or null
Whether the rule is active.
conditionslist of objects or null
actionslist of objects or null
createdAtdatetime or null
Timestamp when the rule was created.
updatedAtdatetime or null
Timestamp when the rule was last updated.

Errors