Skip to main content
POST
/
risk-details
Submit risk details for an order
curl --request POST \
  --url https://sandbox.cashfree.com/pg/risk-details \
  --header 'Content-Type: application/json' \
  --header 'x-api-version: <x-api-version>' \
  --header 'x-client-id: <x-client-id>' \
  --header 'x-client-secret: <x-client-secret>' \
  --header 'x-request-id: <x-request-id>' \
  --data '
{
  "merchant_order_id": "swapnil127",
  "customer_details": {
    "customer_name": "Swapnil B",
    "customer_login_status": "logged_in",
    "customer_email": "[email protected]",
    "customer_phone": "9876543210"
  },
  "device_fingerprint": {
    "uuid": "ibasidb-2oj31i2j-kjbskd",
    "browser": {
      "java_enabled": false,
      "javascript_enabled": false,
      "timezone_offset": 11,
      "color_depth": 23,
      "screen_width": 23,
      "screen_height": 100,
      "referer": "https://merchansite.com/example/paybill",
      "user_agent": "Mozilla/5.0",
      "session_duration": 1200
    },
    "ip": "105.106.107.108"
  },
  "risk_controls": {
    "preferred_non_3ds": false,
    "step_up_3ds": true,
    "cbp_coverage_requested": true
  },
  "industries": [
    {
      "industry_type": "flight",
      "industry_details": {
        "billing_address": {
          "address_line_1": "123 Street",
          "city": "New York City",
          "state": "New York",
          "country": "USA",
          "zipcode": 11001
        },
        "guests": [
          {
            "name": "Swapnil Buchke",
            "age": 26,
            "class": "Economy",
            "nationality": "Indian",
            "relationship_with_primary": "self"
          },
          {
            "name": "Kushagra Sahni",
            "age": 26,
            "class": "Economy",
            "nationality": "Indian",
            "relationship_with_primary": "sibling"
          }
        ],
        "itinerary": [
          {
            "departure_airport": "BOM",
            "arrival_airport": "DEL",
            "departure_date": "2025-10-15T00:00:00.000Z",
            "total_segments": 1,
            "flight_numbers": [
              "AI-101"
            ],
            "addons": {
              "concierge": true,
              "luggage": true,
              "meals": true,
              "delay_protection": false,
              "travel_insurance": true,
              "seats": true
            }
          }
        ],
        "fare_details": {
          "base_fare": "10000",
          "offer_fare": "9200",
          "promo_used": true
        }
      }
    }
  ]
}
'
{
  "status": "SUCCESS",
  "message": "Risk details accepted"
}

Headers

x-client-id
string
required

Client app ID. You can find your app id in the Merchant Dashboard.

x-client-secret
string
required

Client secret key. You can find your secret key in the Merchant Dashboard.

x-api-version
string
required

API version to be used. Format is in YYYY-MM-DD.

x-request-id
string
required

Request ID for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to Cashfree.

Accept
string

Content type that the client can accept.

Content-Type
string

Content type of the request body.

Body

application/json

Request parameters for submitting risk details.

merchant_order_id
string
required

Unique identifier for the merchant order.

Example:

"swapnil127"

customer_details
object
required

Customer information for risk assessment.

Example:
{
"customer_name": "Swapnil B",
"customer_login_status": "logged_in",
"customer_email": "[email protected]",
"customer_phone": "9876543210"
}
device_fingerprint
object
required

Device and browser information for fraud detection.

risk_controls
object
required

Risk control preferences for the transaction.

Example:
{
"preferred_non_3ds": false,
"step_up_3ds": true,
"cbp_coverage_requested": true
}
industries
object[]
required

Industry-specific transaction details.

metadata
object

Additional metadata for the transaction.

Example:
{
"metadata_key_1": "metadata_value_1",
"metadata_key_2": "metadata_value_2"
}

Response

Success response for submitting risk details.

status
string

Status of the request indicating success.

Example:

"SUCCESS"

message
string

Confirmation message indicating the risk details were successfully accepted.

Example:

"Risk details accepted"