Create order risk record
POST/openapi/2026-07/orders/:order_id/risks
Attaches a custom risk record to the specified order with a risk level (low/medium/high), supporting detail reasons, and optional custom properties. Typically called after a manual fraud review.
Request
Path Parameters
Order ID
- application/json
- Body
- Example
Bodyrequired
low: low riskmedium: medium riskhigh: high risk
risk objectrequired
The order risk object containing risk level and detail information
Risk level of the order:
List of risk details explaining the reason for the risk
properties object
Custom properties for the order risk, as key-value pairs
{
"risk": {
"level": "string",
"details": [
"string"
],
"properties": {}
}
}
Responses
- 200
OK
- application/json
- Schema
- Example
Schema
low: low riskmedium: medium riskhigh: high risk
error code
error message
data object
risk object
The created order risk record
Order risk record ID
Identifier of the order this risk record is associated with
Risk level of the order:
List of risk detail reasons explaining why the risk was flagged
properties object
Custom properties associated with the order risk, as key-value pairs
Time when the risk record was created (e.g., 2018-11-02T12:30:10Z)
Time when the risk record was last updated (e.g., 2018-11-02T12:30:10Z)
{
"code": "string",
"message": "string",
"data": {
"risk": {
"id": "string",
"order_id": "string",
"level": "string",
"details": [
"string"
],
"properties": {},
"created_at": "string",
"updated_at": "string"
}
}
}