This operation updates an existing rule set. Only the properties present in the request are updated.
curl --request PATCH \
--url 'https://integration-api-cat2.{{environment}}.ext.{{realm}}.cia.enfuce.com/spend-control/v1/rule-sets/{rule-set-id}/' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"operatorType": "ANY"
}
'{
"id": "<string>",
"name": "<string>",
"operatorType": "ANY",
"ruleSetType": "STANDARD",
"rules": [
{
"name": "<string>",
"filterOperatorType": "ANY",
"id": "<string>",
"ruleType": "DECLINE",
"filters": [
{
"id": "<string>",
"type": "MCC",
"reversed": true
}
]
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The audit user to log the request
Successful operation
Defines whether all rules should pass or if it's enough for just one rule to pass.
ANY, ALL STANDARD, STIP Show child attributes
Defines whether all filters should match or if it's for just one filter to pass.
ANY, ALL Always declines. Should be used together with filters. Parameters: None
Approves if MCC in request is in parameter list. Otherwise declines. Parameters: List of MCC codes
Declines if MCC in request is in parameter list. Otherwise approves. Parameters: List of MCC codes
Approves if merchant id in request is in parameter list. Otherwise declines. Parameters: List of merchant ids
Declines if merchant id in request is in parameter list. Otherwise approves. Parameters: List of merchant ids
Declines if amount in request is greater than the parameter. Otherwise approves. Parameters: Single element containing floating number
Approves if country code in request is not present or is in parameter list. Otherwise declines. Parameters: List of country codes
Declines if country code in request is present and is in parameter list. Otherwise approves. Parameters: List of country codes
Declines if card entry mode code in request is present and is in parameter list. Otherwise approves. Parameters: List of card entry mode codes
Approves if card entry mode code in request is present and is in parameter list. Otherwise declines. Parameters: List of card entry mode codes
Approves if cardholder verification code in request is present and is in parameter list. Otherwise declines. Parameters: List of cardholder verification codes
Declines if cardholder verification code in request is present and is in parameter list. Otherwise approves. Parameters: List of cardholder verification codes
Declines if account balance is lower than transaction amount. Otherwise approves. Parameters: None
Declines if cumulative amount over the defined period of time exceeds the parameter. Otherwise approves. Parameters: Single element containing floating number (limit), enumerated period of time string and single element elaborating on the period length for rolling periods
Declines if cumulative count over the defined period of time exceeds the parameter. Otherwise approves. Parameters: Single element containing floating number (limit), enumerated period of time string and single element elaborating on the period length for rolling periods
This ruleType is for internal enfuce use only
This ruleType is for internal enfuce use only
DECLINE, ALLOWED_MCC, BLOCKED_MCC, ALLOWED_MERCHANT_ID, BLOCKED_MERCHANT_ID, AMOUNT, ALLOWED_MERCHANT_COUNTRY, BLOCKED_MERCHANT_COUNTRY, ALLOWED_CARD_ENTRY_MODES, BLOCKED_CARD_ENTRY_MODES, ALLOWED_CVM, BLOCKED_CVM, CARDHOLDER_PRESENT, EXTERNAL_BALANCE_CHECK, CUMULATIVE_AMOUNT_INDIVIDUAL_LIMITS, CUMULATIVE_COUNT_INDIVIDUAL_LIMITS, ENFUCE_INTERNAL_PSD2_PIN_COUNT_RULE, ENFUCE_INTERNAL_PSD2_PIN_AMOUNT_RULE Show child attributes
Matches if MCC in request is in parameter list. Parameters: List of MCC codes
Matches if amount is greater than the parameter. Parameters: Single element containing floating number
Matches if country code is in parameter list. Parameters: List of country codes
Matches if cardholder verification is in parameter list. Parameters: List of cardholder verifications
Matches if card entry mode is in parameter list. Parameters: List of card entry modes
Parameters: boolean value
Matches if acquirer id is in parameter list. Parameters: List of acquirer ids
Matches if transaction type is in parameter list. Parameters: List of transaction types
MCC, AMOUNT, MERCHANT_COUNTRY, CARDHOLDER_VERIFICATION, CARD_ENTRY_MODE, CARDHOLDER_PRESENT, ACQUIRER_ID, TRANSACTION_TYPE Was this page helpful?
curl --request PATCH \
--url 'https://integration-api-cat2.{{environment}}.ext.{{realm}}.cia.enfuce.com/spend-control/v1/rule-sets/{rule-set-id}/' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"operatorType": "ANY"
}
'{
"id": "<string>",
"name": "<string>",
"operatorType": "ANY",
"ruleSetType": "STANDARD",
"rules": [
{
"name": "<string>",
"filterOperatorType": "ANY",
"id": "<string>",
"ruleType": "DECLINE",
"filters": [
{
"id": "<string>",
"type": "MCC",
"reversed": true
}
]
}
]
}