# 查询群积分流水号存不存在

说明 流水号,用于幂等操作,确保同一笔交易不会被重复处理,有效时间为48小时

请求方式:POST

请求地址:https://$basehost/gateway/qopen/GetPointsTransactionId

body参数

{
    "transaction_id":"123456"
}
字段 类型 必填 说明
transaction_id string 流水号

返回值:

{
    "data": {
      "is_exist": true
    },
    "errcode": 0,
    "errmsg": "",
    "hint": ""
}

返回说明

字段 类型 说明
errcode int 状态码,0为正常,非0代表错误
errmsg string 错误信息
data json json返回值
is_exist boolean 流水号是否存在,true为存在,false为不存在
hint string 请求日志ID

完整请求示例:

curl -X POST \
  https://$basehost/gateway/qopen/GetPointsTransactionId \
  -H 'Content-Type: application/json; charset=UTF-8' \
  -H 'Token: c2NdxDHKXIJ5j1zrhJeq2eJEHjh9xxx' \
  -d '{
    "transaction_id":"123456"
}'
最后更新时间: 2024/11/25 15:54:39