API中心

  1. 基本档案
  2. 收付款协议
返回

收付款协议查询

接口所在U8C版本:U8 cloud5.0以及更高版本
详细描述:用于收付款协议查询
API视频讲解API详情补丁列表常见问题参考
接口地址
请求方式
请求参数header
请求参数body
返回类型参数
代码示例
请求参数示例
正确返回示例
错误返回示例
接口地址:http://ip:port/u8cloud/api/uapbd/payterm/query

参数填写指南

请求方式:POST

请求参数(header):

参数填写指南
参数名必填描述默认值
Content-Type请求体数据类型application/json
usercode用户
password密码
trantype翻译类型,按编码为code,不需要翻译为pkcode
system系统参数

请求参数(body):

参数名类型是否数组必填描述默认值
endTs结束时间
page_now当前页
page_size每页大小
pk_corp公司编码
startTs开始时间
termid协议号
termname协议名称

返回类型参数:

参数名类型是否数组必填描述默认值
payterm收付款协议查询返回聚合类
childrenvo表体
acclimitedstring账期
accratestring付款比率
pk_paytermstring收付款协议主键
pk_paytermchildstring收付款协议子表主键
ptrateVOs收付款协议折扣表
cstepstring顺序号
pk_paytermstring收付款协议主键
pk_paytermchildstring收付款协议子表主键
pk_rnratestring折扣表主键
rdatastring优惠天数
rtntatestring折扣率
rdconstring账期描述
rtnratestring现金折扣
parentvo表头
checkdatestring结帐日期
effectdatestring起效日期
effectdateadddatestring起效期延期天数
effectoptionstring生效选项
fixadddatestring固定结帐延期天数
fixedflagstring是否固定结帐日
memostring备注
pk_corpstring公司主键
pk_paytermstring收付款协议主键
termidstring协议ID
termnamestring协议名称

请求参数示例:

复制代码

{
    "pk_corp":"0001"
    
}

正确返回示例:

复制代码

{
    "status": "success",
    "data": "{\"allcount\":4,\"retcount\":4,\"queryallsql\":\"SELECT pk_payterm from bd_payterm where pk_corp = '0001'\",\"datas\":[{\"parentvo\":{\"pk_corp\":\"0001\",\"unitcode\":\"0001\",\"unitname\":\"集团\",\"pk_payterm\":\"0001A110000000001YCR\",\"termid\":\"11\",\"termname\":\"11\",\"fixedflag\":false,\"effectoption\":\"0\",\"effectdate\":\"1\",\"effectdateadddate\":\"0\"},\"childrenvo\":[{\"pk_paytermchild\":\"0001A110000000001YCS\",\"pk_payterm\":\"0001A110000000001YCR\",\"acclimited\":\"1\",\"accrate\":100,\"rdcon\":\"n/1\"}]},{\"parentvo\":{\"pk_corp\":\"0001\",\"unitcode\":\"0001\",\"unitname\":\"集团\",\"pk_payterm\":\"0001A11000000000354H\",\"termid\":\"33\",\"termname\":\"销售发票审核日期\",\"fixedflag\":false,\"effectoption\":\"0\",\"effectdate\":\"3\",\"effectdateadddate\":\"0\"},\"childrenvo\":[{\"pk_paytermchild\":\"0001A11000000000354I\",\"pk_payterm\":\"0001A11000000000354H\",\"acclimited\":\"1\",\"accrate\":100,\"rdcon\":\"n/1\"}]},{\"parentvo\":{\"pk_corp\":\"0001\",\"unitcode\":\"0001\",\"unitname\":\"集团\",\"pk_payterm\":\"0001A11000000000354J\",\"termid\":\"22\",\"termname\":\"出库签字日期\",\"fixedflag\":false,\"effectoption\":\"0\",\"effectdate\":\"2\",\"effectdateadddate\":\"0\"},\"childrenvo\":[{\"pk_paytermchild\":\"0001A11000000000354K\",\"pk_payterm\":\"0001A11000000000354J\",\"acclimited\":\"1\",\"accrate\":100,\"rdcon\":\"n/1\"}]},{\"parentvo\":{\"pk_corp\":\"0001\",\"unitcode\":\"0001\",\"unitname\":\"集团\",\"pk_payterm\":\"0001A110000000016YCQ\",\"termid\":\"00001\",\"termname\":\"测试01\",\"fixedflag\":false,\"effectoption\":\"0\",\"effectdate\":\"0\",\"effectdateadddate\":\"0\"},\"childrenvo\":[{\"pk_paytermchild\":\"0001A110000000016YBG\",\"pk_payterm\":\"0001A110000000016YCQ\",\"acclimited\":\"2\",\"accrate\":40,\"rdcon\":\"2.700000/1, 2.800000/1, n/2\",\"ptrateVOs\":[{\"pk_rnrate\":\"0001A110000000016YCR\",\"pk_paytermchild\":\"0001A110000000016YBG\",\"pk_payterm\":\"0001A110000000016YCQ\",\"cstep\":\"1\",\"rdata\":\"1\",\"rtntate\":2.7},{\"pk_rnrate\":\"0001A110000000016YCS\",\"pk_paytermchild\":\"0001A110000000016YBG\",\"pk_payterm\":\"0001A110000000016YCQ\",\"cstep\":\"2\",\"rdata\":\"1\",\"rtntate\":2.8}]},{\"pk_paytermchild\":\"0001A110000000016YBF\",\"pk_payterm\":\"0001A110000000016YCQ\",\"acclimited\":\"7\",\"accrate\":60,\"rdcon\":\"2.000000/3, 4.000000/4, n/7\",\"ptrateVOs\":[{\"pk_rnrate\":\"0001A110000000016YCT\",\"pk_paytermchild\":\"0001A110000000016YBF\",\"pk_payterm\":\"0001A110000000016YCQ\",\"cstep\":\"1\",\"rdata\":\"3\",\"rtntate\":2},{\"pk_rnrate\":\"0001A110000000016YCU\",\"pk_paytermchild\":\"0001A110000000016YBF\",\"pk_payterm\":\"0001A110000000016YCQ\",\"cstep\":\"2\",\"rdata\":\"4\",\"rtntate\":4}]}]}]}",
    "taskNumber": "202212230002"
}

错误返回示例:

复制代码

暂无数据