v1

latestOpenAPI 3.1.02026-08-06731,0781.4 MB
Risk

Risk Assess

Used to check the level of risk before processing a transaction. Risk assessment returns four possible values: approve, deny, escalate and review. If the risk transaction is approved or review, you will be able to make a payment call with the risk assessment, risk id and transaction id you get in response.

Integration Methods:

  • Host Direct

See the Integration Methods and URLs Section sections of the Development Quick Start guide for details regarding each processing option.

See the JSON Body Schemas for more details on the various JSON body formats.

post/risk/assess

Headers

InterfaceVersionstring required
Example:2.1

Refers to the version of the program or application that is sending requests to Shift4. The following special characters are not allowed: $ % : ^ - ~ < > , ? “ ” ‘ ’ { } [ ] \ + =

InterfaceNamestring required
Example:ForwardPOS

Refers to the name of the program or application that is sending requests to Shift4. This should be the name of the program that you purchased or created. The following special characters are not allowed: $ % : ^ - ~ ` < > , ? “ ” ‘ ’ { } [ ] \ + =

CompanyNamestring required
Example:PAWS

Refers to the vendor or partner that designed and certified the interface. The information you use in this field should match what Shift4 has on file or what was agreed upon in your Integration Plan. The following special characters are not allowed: $ % : ^ - ~ ` < > , ? “ ” ‘ ’ { } [ ] \ + =

AccessTokenstring uuid required
Example:EA79FB05-3AA7-4500-AF9A-73F986FF2C1D

A security credential used to authenticate API requests and all i4Go® authorizeClient/preauthorizeClient requests. An Access Token is the alias for the merchant account and interface being used. The Access Token is required in all requests except an Access Token Exchange request, which generates an Access Token using an authToken and clientGuid.

Request body

OR

Example request

{
  "dateTime": "2022-02-07T12:36:42.948061-05:00",
  "transaction": {
    "toShip": "Y",
    "orderId": "orderId",
    "invoice": "0207123502",
    "vendorReference": "simulator1.0:0207123502"
  },
  "card": {
    "type": "CC",
    "number": "342877777777705",
    "expirationDate": "1123,",
    "entryMode": "M",
    "present": "N"
  },
  "amount": {
    "total": 76001.99
  },
  "currencyCode": "USD",
  "risk": {
    "sessionId": "123420552ab34024b461455de4bcb482"
  },
  "sourceIp": "10.249.11.239",
  "customer": {
    "emailAddress": "firstname.lastname@email.com"
  },
  "shoppingCart'": [
    {
      "type": "Deodarant",
      "description": "New Spice Fiji",
      "sku": "579446588",
      "quantity": "5",
      "price": 4
    },
    {
      "type": "Toothbrush",
      "description": "Electric Model",
      "sku": "135488945",
      "quantity": "1",
      "price": 104.99
    }
  ]
}

Response

Risk assessment was processed

Example response

{
  "result": [
    {
      "dateTime": "2024-05-21T09:18:23.283-07:00",
      "amount": {
        "total": 160
      },
      "card": {
        "token": {
          "value": "8048471746471119"
        }
      },
      "merchant": {
        "mid": 15877,
        "name": "Merchant XYZ"
      },
      "risk": {
        "tranId": "DDWT0P3LG6LL",
        "assessment": "A"
      },
      "transaction": {
        "s4RiskId": "EC52377F-5A8E-4534-BE7A-CF779A35BE45",
        "invoice": "0510093358",
        "orderId": "92282831"
      }
    }
  ]
}