Decision Rules

postDecisionRules

POST
/decisionRules

Create a Decision Rule that makes a Decision apply only in certain circumstances, such as applying an administration charge if a payment is under $50.

Authorization

APIKEY<token>

In: header

Header Parameters

token?string

A single-use, limited authentication layer in addition to an API Key or Session Key to authorize sensitive operations. Auth Tokens add security by requiring one-time approval for specific actions.

request-token?string

A custom, one-time identifier for any API request (GET, PUT, POST, or DELETE). Blocks future requests with the same token for 48 hours, ensuring only the first request is processed. Valid values can contain 1-100 alphanumeric and special characters. See Request Tokens for more information.

Request Body

application/json

Create Decision Rule Request

Create Decision Rule Request

decision*string

The identifier of the Decision that this Decision Rule applies.

name?string

The name of this Decision Rule. This field is stored as a text string and must be between 0 and 100 characters long.

description?string

Description of the Decision Rules.

type*decisionRuleType

The type of logic to apply with this Decision Rule.

  • less - Less.
  • equal - Equal.
  • notEqual - Not Equal.
  • greater - Greater.
  • swiped - Swiped.
  • signed - Signed.
  • type - Type.
  • origin - Origin.
  • method - Method.
  • cvvResult - CVV Result.
  • avsResult - AVS Result.
  • 3dsResult - 3DS Result. The Decision applies based on the results of a 3DS check.
  • related - Related.
  • relatedDelay - Related Delay.
  • relatedFloor - Related Floor.
  • relatedCeil - Related Ceil.
  • mcc - MCC.
  • merchantCountry - Merchant Country.
  • issuerCountry - Issuer Country.
  • international - International.
  • platform - Platform.
  • methodType - Method Type.
  • emv - EMV.
  • misuse - Misuse.
  • bin - BIN.
  • primary - Primary.
  • fundingCurrencyEqual - Funding Currency Equal.
  • fundingCurrencyNotEqual - Funding Currency Not Equal.
  • fundingCurrencyMismatch - Funding Currency Mismatch.
  • settledCurrencyMismatch - Settled Currency Mismatch.
  • imported - Imported.
  • subscription - Subscription.
  • publicAuth - Public Auth.
  • clientIp - Client IP.
  • debtRepayment - Debt Repayment.
  • cofType - COF Type.
  • entryMode - Entry Mode.

Value in

  • "less"
  • "equal"
  • "notEqual"
  • "greater"
  • "swiped"
  • "signed"
  • "type"
  • "origin"
  • "method"
  • "cvvResult"
  • "avsResult"
  • "3dsResult"
  • "related"
  • "relatedDelay"
  • "relatedFloor"
  • "relatedCeil"
  • "mcc"
  • "merchantCountry"
  • "issuerCountry"
  • "international"
  • "platform"
  • "methodType"
  • "emv"
  • "misuse"
  • "bin"
  • "primary"
  • "fundingCurrencyEqual"
  • "fundingCurrencyNotEqual"
  • "fundingCurrencyMismatch"
  • "settledCurrencyMismatch"
  • "imported"
  • "subscription"
  • "publicAuth"
  • "clientIp"
  • "debtRepayment"
  • "cofType"
  • "entryMode"
value*integer

The value to compare against when evaluating this Decision Rule.

grouping?string

A name for a group of rules to be applied in conjunction when evaluating this Decision Rule; When grouping is used, the Decision will be allowed to be processed if at least one of the rules are matched.

inactive?inactive

Whether this resource is marked as inactive.

  • 0 - Active
  • 1 - Inactive

Value in

  • 0
  • 1
frozen?frozen

Whether this resource is marked as frozen.

  • 0 - Not Frozen
  • 1 - Frozen

Value in

  • 0
  • 1

Response Body

application/json

application/json

curl -X POST "https://example.com/decisionRules" \  -H "Content-Type: application/json" \  -d '{    "decision": "t1_dcs_67d97ed1a0fc6848c89d537",    "name": "DecisionRule11",    "description": "Rule Description",    "type": "type",    "value": 8,    "grouping": "portalgroup_2",    "inactive": 0,    "frozen": 0  }'
{  "response": {    "data": [      {        "id": "t1_drl_67d9836cb20781126c769f0",        "created": "2025-03-18 10:30:04.7380",        "modified": "2025-03-18 10:30:04.7380",        "creator": "t1_log_5ade08dbe7c74ccfa14e832",        "modifier": "t1_log_5ade08dbe7c74ccfa14e832",        "decision": "t1_dcs_67d97ed1a0fc6848c89d537",        "name": "DecisionRule11",        "description": "Rule Description",        "type": "type",        "value": 8,        "grouping": "portalgroup_2",        "inactive": 0,        "frozen": 0      }    ],    "details": {      "requestId": 1,      "totals": [],      "page": {        "current": 1,        "last": 1,        "hasMore": false      }    },    "errors": []  }}