Skip to content

接口描述

获取 账单金额 详情

请求路径

POST /v1/ant/batch/amount/details

请求参数

名称类型位置必须描述
Authorizationstringheader鉴权 token
nodeIds[]stringjson节点 ids。最大数量为1000
daystringjson日期,格式:yyyymmdd。示例:20060102

返回值

名称类型描述
detailsmap[string][]AmountDetail账单金额 信息,key 为 nodeId,value 为 账单金额信息

AmountDetail

名称类型描述
measuredAmountMeasuredAmount账单金额详情

MeasuredAmount

名称类型描述
originalAmountfloat原始金额。单位:元
slaDeductionfloatSLA扣减金额。单位:元
settleAmountfloat最终金额。单位:元

请求示例

json

返回值示例

json
正常请求:
  http code 200
  
  {
    "details": {
        "nodeId1": {
            "measuredAmount": {
                "originalAmount": 100,
                "slaDeduction": 0,
                "settleAmount": 100,
            }
        },
        "nodeId2": {
            "measuredAmount": {
                "originalAmount": 100,
                "slaDeduction": 100,
                "settleAmount": 0,
            }
        }
    }
 }

异常请求:
  http code 4xx/5xx
{
  "code": 4000001,
  "desc": ""
}

错误码列表

错误码描述
401鉴权失败

如接口返回错误码未列举,可在错误码总览中查找