Create Order Risk

🔒

Requires write_order access scope. More access scope

The Create Order Risk API allows the creation of risk assessments for orders, enabling users to flag orders with custom risk levels and details.

This API is especially useful for:

  1. Adding fraud detection and risk assessment details to orders.
  2. Automating risk management based on custom rules.
  3. Enabling enhanced reporting and tracking for high-risk orders.

Request Parameters

Public Request Parameters

📘

Path Parameters

ParameterTypeRequiredDescriptionExample
order_idstringYesUnique identifier for the orderord_123456

Body Parameters

ParameterTypeRequiredDescriptionExample
risk.levelstringYesRisk level for the order. Possible values: low, medium, highhigh
risk.detailsarray of stringsNoList of risk details explaining the reason for the risk["Suspicious payment method", "Unusual shipping address"]
risk.propertiesobjectNoCustom key-value pairs for additional risk information"properties": { "risk_source": "manual_review", "reviewer_id": "user_123", "is_high_priority": true, "verification_steps": ["phone_call", "id_check"] },

Response Explanation

Public Response Parameters

📘

Successful Response

ParameterTypeExampleDescription
codestring"success"Status code of the API response
messagestring"Order retrieved successfully"Descriptive message about the response

Risk Object Structure

FieldTypeDescriptionExample
idstringThe unique ID of the created risk.372997190468224746
order_idstringThe unique ID of the order associated with the risk.633130-00000015
levelstringRisk level for the order. Possible values: low, medium, high.low
detailsarray of stringsList of reasons or details for the risk.["wrong order price"]
propertiesCustom key-value pairs for additional risk information"properties": { "risk_source": "manual_review", "reviewer_id": "user_123", "is_high_priority": true, "verification_steps": ["phone_call", "id_check"] },
created_atstringTimestamp when the risk was created (ISO 8601 format).2024-04-25T06:37:40Z
updated_atstringTimestamp when the risk was last updated (ISO 8601 format).2024-04-25T06:37:40Z

Error Response

FieldTypeExampleDescription
codestringInvalidParameterError http message
messagestring``Error message
Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!