Version: 202201
Create Order Risk
POST/openapi/2022-01/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 stringrequired
Order's ID
- application/json
- Body
- Example
Body
risk object
Order risk
levelstring
Risk level, such as: low, medium, high
valuesstring[]
Risk details list
properties object
Custom properties
keystring
value
{
"risk": {
"level": "string",
"values": [
"string"
],
"properties": {
"key": "string"
}
}
}
Responses
- 200
200
- application/json
- Schema
- Example
- Result
Schema
risk object
idstring
Example:
372997190408224746order_idstring
Example:
633130-00000015levelstring
Example:
lowvaluestring[]
properties object
keystring
Example:
valuecreated_atstring
Example:
2024-04-25T06:37:40Zupdated_atstring
Example:
2024-04-25T06:37:40Z{
"risk": {
"id": "372997190408224746",
"order_id": "633130-00000015",
"level": "low",
"value": [
"wrong order price"
],
"properties": {
"key": "value"
},
"created_at": "2024-04-25T06:37:40Z",
"updated_at": "2024-04-25T06:37:40Z"
}
}
{
"risk": {
"id": "372997190408224746",
"order_id": "633130-00000015",
"level": "low",
"value": [
"wrong order price"
],
"properties": {
"key": "value"
},
"created_at": "2024-04-25T06:37:40Z",
"updated_at": "2024-04-25T06:37:40Z"
}
}