Decision Engine Element in FAST

Within the FAST Live message you will now find a DECISION_ENGINE element. Within the element the triggered actions will be represented in either the ACTIVE element or DRY_RUN element:

{
  "DECISION_ENGINE": {
    "Actions": [
      {
        "id": 5,
        "typeName": "DECLINE",
        "details": {
          "attributes": [
            {
              "custom-key-x": "custom-value-x",
              "custom-key-x": "custom-value-x"
            }
          ]
        }
      },
      {
        "id": 1,
        "typeName": "FEE",
        "details": {
          "amount": 0,
          "basis": "ALWAYS_CHARGE",
          "currencyCode": "980",
          "attributes": [
            {
              "client-fee-id": "123456789",
              "fee-ype": "fx"
            }
          ]
        }
      }
    ],
    "DryRunActions": [
      {
        "id": 15,
        "typeName": "ALERT",
        "details": {
          "attributes": [
            {
              "custom-key-x": "custom-value-x"
            }
          ]
        }
      },                                                                                                     {
        "id": 89,
        "typeName": "CLIENT",
        "details": {
          "attributes": [
            {
              "custom-key-x": "custom-value-x"
            }
          ]
        }
      }
    ]
  }
}

Actions are split via Active Trees and Dry-Run Trees and each triggered action is represented via:

  • id: The unique action ID stored in Paymentology's system
  • typeName: The action type
  • details: contains action specific data as well as the custom attributes
    • attributes: Custom key-value data set by the client for the specific action


For a detailed schema of the FAST message please see: Data Json Schema