get https://payrails-api.staging.payrails.io/merchant/rulesets//versions/
Fetches a Ruleset by a given ID and version.
Responses
Fetches a Ruleset by a given ID and version.
xxxxxxxxxx
curl --request GET \
--url https://payrails-api.staging.payrails.io/merchant/rulesets/rulesetId/versions/version \
--header 'accept: application/json'
xxxxxxxxxx
54}
{
"id": "670e7a35-c282-469f-b77f-336b75bcbe55",
"version": 1,
"createdAt": "2022-11-02T12:27:22.73972022Z",
"trigger": {
"on": "determinePaymentOptions",
"filter": {
"paymentMethodCode": "card"
}
},
"workspaceId": "7f9f1882-a103-408d-ac96-46a7021e537a",
"rules": [
{
"condition": {
"left": {
"field": "customer.country.code",
"operator": "IS ONE OF",
"value": [
"AR",
"CL"
]
},
"operator": "AND",
"right": {
"field": "clientContext.osType",