Appearance
合同列表
Request
Url
text
[POST] : https://eapi.paiago.com/ZKGJ/Contract/Receivable/?access_token={access_token}请求参数:
| 参数 | 类型 | 描述 | 示例 |
|---|---|---|---|
| Field | array | 请求字段 | [] |
| > id | string | 合同id | |
| > contract_name | string | 合同名称 | |
| > contract_number | string | 合同编号 | |
| > contract_money | string | 合同金额 | |
| > receivable_money | string | 回款金额 | |
| > no_receivable_money | string | 未回款金额 | |
| > contract_date | string | 合同日期 | |
| > maturity_date | string | 到期日期(非必填) | |
| > label_id | string | 合同标签id集合 | |
| > customer_id | string | 客户Id | |
| > customer_name | string | 客户名称 | |
| > leader_id | string | 合同跟进人id | 从客户负责人中取, 客户无负责人任意人员 |
| > followup_depart_id | string | 部门id | |
| > followup_depart_name | string | 部门名称 | |
| > add_user | string | 创建人id | |
| > add_date | string | 创建时间 | |
| > labels | string | 合同标签名称 | |
| > project | string | 关联项目 | |
| > project_ids | string | 关联项目id | |
| Order | array | 排序规则 | |
| Where | array | 查询条件 | |
| Page | number | 页数 | 0 |
| ListRow | number | 条数 | 20 |
请求示例:
json
{
"Field":[
"id",
"contract_name",
"contract_number",
"contract_money",
"receivable_money",
"no_receivable_money",
"contract_date",
"maturity_date",
"label_id",
"customer_id",
"customer_name",
"leader_id",
"followup_depart_id",
"followup_depart_name",
"add_user",
"add_date",
"labels",
"project",
"project_ids"
],
"Order":{
"id": "desc"
},
"Where":[
],
"Page":1,
"ListRow":1
}Response
响应参数
| 参数 | 描述 | 类型 | 示例 |
|---|---|---|---|
| count | 总数 | int | |
| data | 列表(详见请求Field释义) | array(object) |
响应示例:
json
{
"data":[
{
"id":"WiiiJmSy0",
"contract_name":"小明的普通合同",
"contract_number":"123456789",
"contract_money":"1000.00",
"receivable_money":"600.00",
"no_receivable_money":"400.00",
"contract_date":"2021-09-01",
"maturity_date":null,
"label_id":"1,2",
"customer_id":2,
"customer_name":null,
"leader_id":801114,
"followup_depart_id":27969133,
"followup_depart_name":null,
"add_user":801114,
"add_date":1505186235,
"labels":"北京欢迎你,给一个理由",
"project":" 添加项目统计数据4,新建项目123",
"project_ids": "lemCs7j0C,XziSmsasg"
}
],
"count":519,
"errcode":0,
"errmsg":"请求成功",
"request_id":null,
"env":"zkgj-cs"
}