需要 write_orders 权限点。
更多权限点使用信息,请参考:
PUT https://{handle}.myshopline.com/admin/openapi/v20250601/orders/v2/:order_id/risks/:risk_id.json
handle :店铺的唯一标识符,值为店铺域名的前缀。例如,域名为 open001.myshopline.com 的店铺,其 handleopen001
更新订单下指定的风险欺诈
路径参数
  • order_id string required
    订单号
    Example: "21056863763067384710591058"
  • risk_id string required
    欺诈风险id
    Example: "2905687834858288060687"
请求头
  • Content-Type required
    字段值固定为application/json; charset=utf-8
  • Authorization string required
    资源的访问令牌。请参考 应用授权 获取访问令牌,然后将获取到的访问令牌以 Bearer 格式传入
    Example:
    Bearer eyJhbGciOiJIUzUxMiJ9.eyJhcHBLZXkiOiJmMjM3OWQyMTYyOGMzM2QxMWRiMWZkYjY5N2EzZjdjMjZlNGMwYTA5Iiwic2VsbGVySWQiOiIyMDAwMjM0ODgwIiwic3RvcmVJZCI6IjE2NzIzNjk3Mjk2MDYiLCJ2ZXJzaW9uIjoiVjIiLCJkb21haW4iOiJodHRwczovL3NsLW9wZW4tc2cubXlzaG9wbGluZS5jb20iLCJ0aW1lc3RhbXAiOjE2NzUzMTk0OTI0MzksImlzcyI6Inlzb3VsIiwiZXhwIjoxNzY5OTI3NDkyfQ.UwQzomM2veGCUaOZ0paUxq5dpc7DXuhHYFvsQ_uIAKduzWcb_j2E4q_36El83sp145D4cKbpcE5KCeeIz-JNQw
请求体
  • riskobject required
    订单风险信息
  • cause_cancel boolean
    取消订单标识, true-取消, false-不取消
    Example: true
  • display boolean
    是否在详情页展示标识, true-展示, false-不展示
    Example: true
  • recommendation string
    欺诈风险等级: cancel(高风险)、investigate(中风险)、accept(低风险)
    Example: cancel
  • risk_detail_msg_listobject[]
    欺诈风险详细信息节点
  • message string required
    欺诈风险节点详细信息
    Example: risk detail message
  • risk_detail_level string required
    欺诈风险节点详细信息等级: cancel(高风险)、investigate(中风险)、accept(低风险)
    Example: cancel
  • score string
    欺诈风险得分,0.0-1.0,1为风险最高的得分
    Example: 0.9
  • source string
    来源标识,固定为:External-外部
    Example: External
响应
更多状态码信息请参考 HTTP 状态码

响应头
  • traceId
    traceId
响应体
  • riskobject
    风险欺诈信息
  • cause_cancel boolean
    取消订单标识, true-取消, false-不取消
    Example: true
  • checkout_id string
    订单关联的弃单ID
    Example: "2405664692071577423882"
  • display boolean
    是否在详情页展示标识, true-展示, false-不展示
    Example: true
  • id string
    欺诈风险ID
    Example: "2905664692071577423886"
  • order_id string
    订单序列号
    Example: "21056646934598417162363882"
  • recommendation string
    欺诈风险等级: cancel(高风险)、investigate(中风险)、accept(低风险)
    Example: "cancel"
  • risk_detail_msg_listobject[]
    欺诈风险详细信息节点
  • message string
    欺诈风险节点详细信息
    Example: "risk detail message"
  • risk_detail_level string
    欺诈风险节点详细信息等级: cancel(高风险)、investigate(中风险)、accept(低风险)
    Example: cancel
  • score string
    欺诈风险得分,0-1,1为风险最高的得分
    Example: "1.0"
  • source string
    来源标识,Internal-内部、External-外部
    Example: "External"
API Explorer
https://openapiceshidianpu.myshopline.com/admin/openapi/v20250601

ParamOptions

path required
path required
header required

Body

required
{
  "risk": {
    "cause_cancel": true,
    "display": true,
    "recommendation": "cancel",
    "risk_detail_msg_list": [
      {
        "message": "risk detail message",
        "risk_detail_level": "cancel"
      }
    ],
    "score": "0.9",
    "source": "External"
  }
}

Language

curl --request PUT \
--url https://openapiceshidianpu.myshopline.com/admin/openapi/v20250601/orders/v2/order_id/risks/risk_id.json \
--header 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJhcHBLZXkiOiJmMjM3OWQyMTYyOGMzM2QxMWRiMWZkYjY5N2EzZjdjMjZlNGMwYTA5Iiwic2VsbGVySWQiOiIyMDAwMjM0ODgwIiwic3RvcmVJZCI6IjE2NzIzNjk3Mjk2MDYiLCJ2ZXJzaW9uIjoiVjIiLCJkb21haW4iOiJodHRwczovL3NsLW9wZW4tc2cubXlzaG9wbGluZS5jb20iLCJ0aW1lc3RhbXAiOjE2NzUzMTk0OTI0MzksImlzcyI6Inlzb3VsIiwiZXhwIjoxNzY5OTI3NDkyfQ.UwQzomM2veGCUaOZ0paUxq5dpc7DXuhHYFvsQ_uIAKduzWcb_j2E4q_36El83sp145D4cKbpcE5KCeeIz-JNQw' \
--header 'Content-Type: application/json; charset=utf-8' \
--header 'accept: application/json'
这篇文章对你有帮助吗?