# 根据单据id查询结算信息

# 接口地址

/financial/settle/getSettlementDetailList

# 入参

# 字段说明

名称 类型 必填 描述
idSourceBill BigInteger 工单id

# JSON示例

{
    "paramValues": [
        {
            "idSourceBill": 16049695917921542148
        }
    ]
}

# 出参

# 字段说明

名称 类型 描述
code Number 200-业务成功
400-业务异常
500-接口内部异常
data TfSettlementDetailVo[] 单据结算详情

# TfSettlementDetailVo

名称 类型 描述
id BigInteger 主键
billType Integer 结算类型。0:计次卡,1:套餐卡,2:储值卡,3:现金(包含各类支付方式),4:积分优惠,5:等级优惠,6:套餐优惠,7:结清优惠,8:收银优惠 12:优惠券优惠
amount BigDecimal 付款金额
favourable BigDecimal 优惠金额
idMember BigInteger 会员卡id
idSubscription Integer 定金单id
usePoint BigDecimal 使用积分
isCustomerLevelFavourable Integer 是否使用了客户等级优惠
paymentType String 支付类型
paymentTypeId Integer 支付类型id
idAccountAgreement BigInteger 协议客户id
externalId BigInteger 外部关联id

# JSON示例

{
    "code": 200,
    "data": [
        {
            "amount": 4,
            "billType": 8,
            "favourable": 4,
            "id": "10610340",
            "paymentType": "收银优惠"
        },
        {
            "amount": 3,
            "billType": 7,
            "favourable": 3,
            "id": "10610341",
            "paymentType": "结清优惠"
        },
        {
            "amount": 39,
            "billType": 3,
            "favourable": 0,
            "id": "10610342",
            "idAccountAgreement": "0",
            "paymentType": "微信支付",
            "paymentTypeId": 6123028
        },
        {
            "amount": 4,
            "billType": 2,
            "favourable": 0,
            "id": "10610343",
            "idMember": "16118923053554999324",
            "paymentType": "储值卡"
        }
    ],
    "message": "SUCCESS",
    "success": true
}