postDecisions
Create a Decisions resource that represents the schedule and rules for a check done on Transactions.
In: header
Header Parameters
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.
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 Request
Create Decision Request
The identifier of the Login that owns this decisions resource.
If this decision resource relates to an Org, then this field stores the identifier of the Org.
If this decision resource relates to an Entity, then this field stores the identifier of the Entity.
The identifier of a linked decision resource that acts in coordination with this decision. When you define a decision attribute here, the referenced decision becomes the 'parent' resource. The action field set on the 'parent' resource determines the action that occurs if all of the linked decisions fail.
Identifier of the division to which the decision resource belongs.
Identifier of the partition to which the decision resource belongs.
Where the action defined by this DecisionAction should apply.
account- Account type Decision.txn- Txn type Decision.entity- Entity type Decision.
Value in
- "account"
- "txn"
- "entity"
The levels of decision admin, merchant, division, partition.
The type of check to perform.
merchantFailureLimit- Exceeded the maximum number of allowed failed authorizations.merchantFailureRatio- Exceeded the maximum ratio of allowed failed authorizations.saleTotalLimit- Exceeded the maximum allowed sale total value.refundTotalLimit- Exceeded the maximum allowed refund total value.averageSaleCountLimit- Exceeded the allowed maximum payment size (individual transaction amount).merchantRefundSaleRatio- Exceeded the maximum allowed ratio of refunds to sales.merchantPaymentSuccessLimit- This is used to check if the merchant has charged the same payment more than X times on a given period of time.ipFailureLimit- Exceeded the maximum allowed number of failed authorizations for a particular IP address.ipFailureRatio- Exceeded the maximum allowed ratio of failed authorizations for a particular IP address.inactiveMerchant- The Merchant is not active.merchantPaymentFailureLimit- Exceeded the maximum allowed number of failed transactions.merchantCaptureWithoutAuthLimit- Exceeded the maximum allowed number of transactions without authorizations.refundWithoutSale- Refund transaction does not have an associated sale transaction.refundWithoutSaleLimit- Exceeded the maximum number of refund transactions that do not have associated sale transactions.captureAboveAuthLimit- Exceeded the maximum authorized value for transactions with failed authorizations.fraudScore- Transaction fraud score.cvv- CVV.avs- AVS.aavs- AAVS.duplicateTxn- Duplicate transaction.merchantMatch- Transaction matches merchant details.currencyConversion- Transaction triggers currency conversion.settledCurrencyMismatch- Transaction settled currency mismatch.initialTxn- Initial transaction of this type.similarTotalLimit- Exceeded the limit of transactions with equal totals.similarTotalRatio- Exceeded the ratio of transactions with equal totals.saleTotalMinimum- Minimum transaction amount.limit- Exceeded the maximum allowed number of authorizations.ratio- This is used to check if similar transactions have reached the ratio of auth transactions in a given period of time.txnWatchlist- Check the transaction data against a custom watchlist.balanceRefundLimit- This is used to check if a merchant has enough balance to process a REFUND transaction and it is within the scope of the threshold.
Value in
- "merchantFailureLimit"
- "merchantFailureRatio"
- "saleTotalLimit"
- "refundTotalLimit"
- "averageSaleCountLimit"
- "merchantRefundSaleRatio"
- "merchantPaymentSuccessLimit"
- "ipFailureLimit"
- "ipFailureRatio"
- "inactiveMerchant"
- "merchantPaymentFailureLimit"
- "merchantCaptureWithoutAuthLimit"
- "refundWithoutSale"
- "refundWithoutSaleLimit"
- "captureAboveAuthLimit"
- "fraudScore"
- "cvv"
- "avs"
- "aavs"
- "duplicateTxn"
- "merchantMatch"
- "currencyConversion"
- "settledCurrencyMismatch"
- "initialTxn"
- "similarTotalLimit"
- "similarTotalRatio"
- "saleTotalMinimum"
- "limit"
- "ratio"
- "txnWatchlist"
- "balanceRefundLimit"
The target that this decision should apply at.
activation- Terminal activation.auth- Apply this decision during transaction authorization.postauth- Immediately after authorization.capture- Apply this decision during transaction capture.refund- Apply this decision when processing a refund.createEntity- createEntity. Process decisions during entity creation.underwriting- Underwriting. Check the members before they are boarded.preboard- Preboard. Check the Merchant before they are boarded.postboard- Check the Merchant after they are boarded.txn- Check the Merchant when they process a Transaction.txnVolume- Check the Merchant when their transaction volume hits a certain amount.payout- Check the Merchant when a Payout occurs.payoutVolume- Check the Merchant when the volume of Payouts to the Merchant hits a certain amount.
Value in
- "activation"
- "auth"
- "postauth"
- "capture"
- "refund"
- "createEntity"
- "underwriting"
- "preboard"
- "postboard"
- "txn"
- "txnVolume"
- "payout"
- "payoutVolume"
The action to take when this check fails.
0- No action.1- Block txn, will never be processed. The Entity is sent to the manual review queue.3- Hold txn, will not be captured.4- Reserve txn, funds should be reserved.5- Block current activity, no change for merchant.6- Passed decision(s). Will not be set anywhere, will only be used for integration purposes.7- We did not have policies to process.8- We onboard the merchant and wait for manual check later.9- Schedule the automatic release of the reserve.10- Hold txn, will not be captured. Automatic release when the associated sale is done.
Value in
- 0
- 1
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
A sequence number to use when applying multiple linked decisions: When two or more decisions are linked using their 'decision' fields, the checks with lower 'sequence' numbers are applied first; this field is specified as an integer.
The minimum value that the Transaction must be to target this decision, The unit of measure is determined by the type of check.
The amount that the associated Transaction should be compared against. The units for this field depend on the type of check: for checks that are based on a ratio, specify the amount as a percentage in basis points; for checks that are based on a dollar amount, specify the amount in cents; for checks that are based on a count, specify the exact value as an integer.
A date indicator that determines how far back in time time-based checks should be checked. This field works in conjunction with the 'periodFactor' field, which multiplies this basic period.
days- Days. The basic value for the date range is set in days.weeks- Weeks. The basic value for the date range is set in weeks.months- Months. The basic value for the date range is set in months.years- Years. The basic value for the date range is set in years.seconds- Seconds. The basic value for the date range is set in seconds.minutes- Minutes. The basic value for the date range is set in minutes.hours- Hours. The basic value for the date range is set in hours.
Value in
- "days"
- "weeks"
- "months"
- "years"
- "seconds"
- "minutes"
- "hours"
A multiplier that you can use to adjust the basic date range set in the 'period' field, such as daily, weekly, monthly, or annually; this field is specified as an integer and its value determines how the interval is multiplied.
The schedule that determines when this Decision is triggered to check entities.
A multiplier that you can use to adjust the schedule set in the 'schedule' field, if it is set to a duration-based trigger, such as daily, weekly, monthly, or annually. This field is specified as an integer and its value determines how the interval is multiplied.
The date on which checking of the Decision should start is specified as an eight digit string in YYYYMMDD format, for example, '20160120' for January 20, 2016; the value of this field must represent a date in the future, or the present date.
The date on which checking of the Decision should end. The date is specified as an eight digit string in YYYYMMDD format, for example, '20160120' for January 20, 2016. The value of this field must represent a date in the future.
A lower cut-off value for the score in this decision; the check fails if the score is equal to or below this value.
1An upper cut-off value for the score in this decision; the check fails if the score is equal to or above this value.
Whether to check for and use existing Verifications and Verification Results for this decision.
0- Disabled1- Enabled
Value in
- 0
- 1
The time caching limit to check for existing verification.
The options for the Verification are specified as a sum of the desired options.
0The additionalOptions for the Verification are specified as a sum of the desired options.
0The error message for the decision: If the field is null the error message will be a generic failure message, if the field is empty the error message will be a specific error message, if the field is set to a string the error message will be that string.
The reason for the decision. If the field is null the error message will be a generic message, if the field is set to a string the reason message will be that string.
Whether this resource is marked as inactive.
0- Active1- Inactive
Value in
- 0
- 1
Whether this resource is marked as frozen.
0- Not Frozen1- Frozen
Value in
- 0
- 1
Response Body
application/json
application/json
curl -X POST "https://example.com/decisions" \ -H "Content-Type: application/json" \ -d '{ "login": "t1_log_61e72ab44fd39df9483aa2c", "application": "txn", "level": "partition", "type": "cvv", "target": "postauth", "action": 1, "value": "1", "period": "days", "periodFactor": 1, "scheduleFactor": 1, "start": 20160120, "finish": 20160120, "low": 1, "useCache": 0, "org": "t1_org_5fada4629c317f80bc9cb12", "entity": "t1_ent_67d86dfd3442f3e2927ecbd", "division": "t1_div_67c56806728fbbf0bae0b00", "partition": "t1_ptn_000111d4d504f21414978f0", "decision": "t1_dcs_6789a1b36647513d66cf30a", "sequence": 0, "amount": 1, "high": 2, "cacheTime": 0, "options": 0, "additionalOptions": 0, "errorMessage": "Unable to accept without CVV", "inactive": 0, "frozen": 0 }'{ "response": { "data": [ { "id": "t1_dcs_67ddb8ad653487caf88cc00", "created": "2025-03-21 15:06:21.4313", "modified": "2025-03-21 15:06:21.4313", "creator": "t1_log_61e72ab44fd39df9483aa2c", "modifier": "t1_log_61e72ab44fd39df9483aa2c", "login": "t1_log_61e72ab44fd39df9483aa2c", "org": "t1_org_5fada4629c317f80bc9cb12", "entity": "", "decision": "", "type": "cvv", "target": "postauth", "action": 1, "sequence": 0, "amount": 0, "value": "1", "period": "days", "periodFactor": 1, "low": 1, "high": 2, "inactive": 0, "frozen": 0, "division": "t1_div_67c56806728fbbf0bae0b00", "partition": "t1_ptn_000111d4d504f21414978f0", "application": "txn", "options": 0, "errorMessage": "Unable to accept without CVV.", "reason": "", "additionalOptions": 0, "level": "partition", "schedule": "", "scheduleFactor": 1, "start": 20160120, "finish": 20160120, "useCache": 0, "cacheTime": 0 } ], "details": { "requestId": 1, "totals": [], "page": { "current": 1, "last": 1, "hasMore": false } }, "errors": [] }}