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
Unique identifier for the rule.
namestring
Name of the rule.
merchantIdstringformat: "uuid"
Merchant identifier.
prioritydouble

Rule priority (higher precedence evaluated first).

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

Errors

400
Bad Request Error
401
Unauthorized Error
422
Unprocessable Entity Error