合同详情
最后更新于 2023/07/05 阅读数 176
合同详情
请求接口
/agent-api/user/{user_id}/contract/show/{contract_id}
请求方式
GET
路由参数
参数 | 类型 | 示例 | 解释 | 必填 |
---|---|---|---|---|
user_id | string | 5832d184-dd53-42a0-8ace-0bf8d660f4cc | 用户id | 是 |
contract_id | string | 1 | 合同的ID | 是 |
返回参数
{
"code": 200,
"status": "success",
"message": "查看合同详情成功",
"data": {
"id": 3,//合同ID
"name": "合同3号",//合同名称
"fee": 70000,,//签约金额
"signatory": "签约方3",//签约方名称
"signed_at": "2021-12-16 00:00:00",//签约时间
"ended_at": "2021-12-16 00:00:00",//到期时间
"customer_id": "57f2c8c0-c0cc-42b0-b215-95dd9d5b68b5",//客户ID
"created_user_id": "f00c8abc-433f-4666-a9d6-70479605ced1",//创建者ID
"sale_user_id": "efd49f55-8793-4393-ab77-465f99f3a292",//销售人员ID
"contract_attachments": [
"contract-attachment/i6L57SyRJ768EPZjIllA90uCdy0UP8M4SRPk12UG.jpg"
],
"invoice_attachments": [
"invoice-attachment/nrymoIM7htpdXXhkDe2J7BChRPBSXrlthhzz2TVH.jpg"
],
"party_a": "甲方负责人3",//甲方负责人名称
"party_b": "乙方负责人3333",//乙方负责人名称
"status": 2,//合同状态
"renewal_status": 0,
"remarks": null,
"created_at": "2021-12-16 11:10:32",
"updated_at": "2021-12-17 11:53:51",
"is_overdue": true,
"status_str": "已结清",
"schedules": [//计划回款
{
"id": "c8105e18-165e-4b86-b67d-b151c911da6a",
"contract_id": 3,//合同ID
"plan_payment_time": "2021-12-17 11:53:51",//计划回款时间
"plan_payment_fee": 70000,//计划回款金额
"actual_payment_time": "2021-12-17 11:53:00",//实际回款时间
"actual_payment_fee": 70000,//实际回款金额
"status": true,
"remark": null,
"created_at": "2021-12-16 11:10:32",
"updated_at": "2021-12-17 11:53:51"
}
],
"creator": {//合同创建人具体信息
"id": "f00c8abc-433f-4666-a9d6-70479605ced1",
"name": "1121",
"type": 4,
"type_note": "会员"
},
"sale_user": {//销售人员具体信息
"id": "efd49f55-8793-4393-ab77-465f99f3a292",
"name": "测试陈帮骐",
"type": 8,
"type_note": "子账户"
},
"customer": {//具体的客户信息
"id": "57f2c8c0-c0cc-42b0-b215-95dd9d5b68b5",
"user_id": "f00c8abc-433f-4666-a9d6-70479605ced1",
"created_user_id": "f00c8abc-433f-4666-a9d6-70479605ced1",
"phone": "18569852545",//客户号码
"is_back": 0,
"source_id": 17,
"industry_id": 24,
"grade_id": 11,
"name": "我是签约人3号",//客户名称
"sex": 2,
"sort": 0,
"created_at": "2021-12-16 11:02:13",
"updated_at": "2021-12-16 11:02:13",
"inputted_at": "2021-12-16 11:01:18",
"province_id": 458,
"city_id": 602,
"operator": 2,
"flow": 2,
"extra": null,
"expect_transaction_at": null,
"expect_transaction_fee": "0.00",
"unfollow_back_at": null,
"unsettled_back_at": null,
"followed_at": null,
"crm_sign": {//具体的签约信息
"id": "c4d406b0-d8ae-4342-b8f1-6059c2c5970f",
"customer_id": "57f2c8c0-c0cc-42b0-b215-95dd9d5b68b5",
"fee": "90000.00",
"signed_at": "2021-12-16 00:00:00",
"created_at": "2021-12-16 11:02:13",
"updated_at": "2021-12-16 11:02:13",
"products": [//签约的产品(可签约多个)
{
"sign_id": "c4d406b0-d8ae-4342-b8f1-6059c2c5970f",
"product_id": 1,
"product_name": "AI呼出机器人"
}
]
}
},
"invoiceAttachmentUrl": [//发票地址
"http://www.v2.saas.com/api/public-resource/invoice-attachment/nrymoIM7htpdXXhkDe2J7BChRPBSXrlthhzz2TVH.jpg"
],
"contractAttachmentUrl": [//合同地址
"http://www.v2.saas.com/api/public-resource/contract-attachment/i6L57SyRJ768EPZjIllA90uCdy0UP8M4SRPk12UG.jpg"
]
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
plaintext2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
评价这篇文档
有帮助
没帮助
未能解决您的问题?请联系
在线客服