Get a Ruleset

Fetches a Ruleset by a given ID and version.

Path Params
string
required

Identifier of the resource in Payrails.

number
required

Ruleset version.

Responses

Response body
object
date-time

Creation date of the ruleset.

string
required

ID of Ruleset.

number
required

Ruleset version.

object
required

An action that determines when the rules should be evaluated.

string
required

Action name.

determinePaymentOptions determineProviderOptions repeat

A map of fields from the execution context and their expected values, which allows to trigger rules evaluation when all context field values match the expected ones.

array of objects

Rules what need to be evaluated to execute or an action defined by a rule, which condition is fulfilled, or default action if none of conditions are fulfilled.

rules
object
object
required

Condition to be fulfilled to execute the action.

object
required

Action to execute if the rule condition is fulfilled.

object
required

Default action to execute if none of rule conditions are fulfilled.

Language
Credentials