版本:202201
更新订单风险记录
PUT/openapi/2022-01/orders/:order_id/risks/:id
通过风险记录 id 修改其风险等级、详情原因或自定义属性,订单本身不变。
请求
Path参数
order_id string必填
订单 ID。
id string必填
订单风险记录 ID。
- application/json
- 请求体
- 示例
请求体
risk object
levelstring必填
Risk level, such as: low, medium, high
detailsstring[]必填
Risk details list
properties object
Custom properties
keystring
value
{
"risk": {
"level": "string",
"details": [
"string"
],
"properties": {
"key": "string"
}
}
}
响应
- 200
- 422
200
- application/json
- 数据结构
- 示例
- Result
数据结构
risk object
idstring
示例:
372997190408224746order_idstring
示例:
633130-00000015levelstring
示例:
mediumvaluestring[]
properties object
keystring
示例:
valuecreated_atstring
示例:
2024-04-25T06:37:40Zupdated_atstring
示例:
2024-04-25T07:38:11Z{
"risk": {
"id": "372997190408224746",
"order_id": "633130-00000015",
"level": "medium",
"value": [
"qqqqq"
],
"properties": {
"key": "value"
},
"created_at": "2024-04-25T06:37:40Z",
"updated_at": "2024-04-25T07:38:11Z"
}
}
{
"risk": {
"id": "372997190408224746",
"order_id": "633130-00000015",
"level": "medium",
"value": [
"qqqqq"
],
"properties": {
"key": "value"
},
"created_at": "2024-04-25T06:37:40Z",
"updated_at": "2024-04-25T07:38:11Z"
}
}
422
- application/json
- 数据结构
- 示例
- Result
数据结构
errorsstring[]
{
"errors": [
"Details is required"
]
}
{
"errors": [
"Details is required",
"Level is required"
]
}