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.
idstringOptional
Unique identifier for the rule.
namestringOptional
Name of the rule.
merchantIdstringOptionalformat: "uuid"
Merchant identifier.
prioritydoubleOptional

Rule priority (higher precedence evaluated first).

isActivebooleanOptional
Whether the rule is active.
conditionslist of objectsOptional
actionslist of objectsOptional
createdAtdatetimeOptional
Timestamp when the rule was created.
updatedAtdatetimeOptional
Timestamp when the rule was last updated.

Errors

400
Bad Request Error
401
Unauthorized Error
422
Unprocessable Entity Error