合同详情
更新时间:2023-05-05
合同详情
接口描述
本接口用于获取合同详情,只有是合同参与人才可查看合同。
请求结构
JSON
1POST /saas/openapi/econtract/v1/contract/info HTTP/1.1
2Host: xuper.baidu.com
3Content-Type: application/json;charset=utf-8
4X_BXEO_APP_ID: ak string
5X_BXEO_NONCE: nonce string
6X_BXEO_SIGN: sign string
7X_BXEO_TIMESTAMP: new time string
8X_BXEO_CONTENTMD5: body md5 string
9X_BXEO_SIGNTYPE: HMAC-SHA256
10{
11 "bxeoContent": {
12 "address": "k76SabZ76qi9fU9KyX2iFcG89mHNpWeJ8",
13 "econtract_no": "BDB7AF2295320405"
14 }
15}
请求头域
- 除公共头域外,无其它特殊头域。
请求参数
| 参数名称 | 类型 | 是否必选 | 参数位置 | 描述 |
|---|---|---|---|---|
| bxeoContent | object | 是 | RequestBody参数 | body共用字段头。 |
| +address | string | 是 | RequestBody参数 | BEXO系统中用户唯一身份标识。 |
| +econtract_no | string | 是 | RequestBody参数 | 合同编号:econtract_id字段信息 |
响应头域
- 除公共头域外,无其它特殊头域。
响应参数
| 参数名称 | 类型 | 说明 |
|---|---|---|
| code | int | 错误码 0为成功,其他可参考常用错误码。 |
| data | string | 接口返回的具体业务信息均在data下,所有接口通用。 |
| +econtract_id | string | 合同编码 |
| +econtract_name | string | 合同名称 |
| +econtract_status | string | 合同状态: 0:签署进行中,1:完成签署,2:失败 |
| +deadline_time | string | 合同过期时间 |
| +create_time | string | 合同创建时间 |
| +process_status | string | 合同是否处理中: 0:合同处理中,1:处理完成 |
| +creator_name | string | 创建者名称 |
| +evidence_status | string | 存证状态: 0:等待存证,1:存证成功,2:存证失败,3:存证中 |
| +finish_time | string | 签署完成时间 |
| +signatory_info | object | 包含创建者和参与者信息数据 |
| ++is_creator | string | 是否创建者: 0:否,1:是 |
| ++sign_address | string | BEXO系统中用户唯一身份标识 |
| ++sign_account_type | string | 签署身份: 1:企业,2:个人 |
| ++sign_user_name | string | 签署人名称显示 |
| ++sign_position | string | 签署位置信息 |
| ++sign_status | string | 签署状态: 0:待签署,1:签署成功,2:签署处理中,3:签署失败,4:拒绝签署,5:超时未签署,6:取消签署 |
| ++sign_time | string | 签署时间,时间戳 |
| ++creator_set_sign_position | string | 指定签署位置 |
| ++operator_name | string | 执行签署操作人姓名 |
| ++gencert_url | string | 存证证书地址 |
| ++evidence_txid | string | 存证标识ID |
请求示例
JSON
1POST /saas/openapi/econtract/v1/contract/info HTTP/1.1
2Host: xuper.baidu.com
3Content-Type: application/json;charset=utf-8
4X_BXEO_APP_ID: lf2a69d4dff7dc9f3a462719da8bb942
5X_BXEO_NONCE: 12333312111
6X_BXEO_SIGN: lf2a69d4dff7dc9f3a462719da8bb942
7X_BXEO_TIMESTAMP: 1660733105
8X_BXEO_CONTENTMD5: asdaxasdsasdasdasdas
9X_BXEO_SIGNTYPE: HMAC-SHA256
10{
11 "bxeoContent": {
12 "address": "k76SabZ76qi9fU9KyX2iFcG89mHNpWeJ8",
13 "econtract_no": "BDB7AF2295320405"
14 }
15}
响应示例
JSON
1HTTP/1.1 200 OK
2Content-Type: application/json;charset=UTF-8
3Date: Wed, 18 Apr 2022 03:28:11 GMT
4 {
5 "code": 0,
6 "msg": "Success",
7 "data": {
8 "econtract_id": "BD238B2253880787",
9 "econtract_name": "xxxxx-3",
10 "econtract_status": "0",
11 "deadline_time": "1759818729",
12 "create_time": "1661153880",
13 "process_status": "1",
14 "creator_name": "xxx",
15 "evidence_status": "0",
16 "finish_time": "0",
17 "file_url": "https://xuper-studio.bj.bcebos.com/saas_private/2022-06-29/658b6c9f135bc407498c73e3733b2747.pdf?authorization=bce-auth-v1%2F79421bdabbc4447eb4cd5efd3fc2ee3f%2F2022-08-30T09%3A01%3A11Z%2F7200%2F%2Fd2277190fc6fd49ed0092bbb5eb11924c4c048d883a9fa01cf96d42e866fafe8",
18 "signatory_info": [
19 {
20 "is_creator": "1",
21 "sign_address": "Y1kFzB3whd9ESEL6WwUojoVEg99XVnCyo",
22 "sign_account_type": "2",
23 "sign_user_name": "xxx",
24 "sign_position": "",
25 "sign_status": "0",
26 "sign_time": "0",
27 "creator_set_sign_position": "[{\"basePX\":1333333,\"y2\":877,\"pageHeight\":1122,\"pageWidth\":793,\"y1\":718,\"basePT\":1000,\"height\":159,\"x2\":672,\"width\":159,\"y\":245,\"x\":513,\"x1\":513,\"page\":1}]",
28 "operator_name": "",
29 "gencert_url": "",
30 "evidence_txid": ""
31 },
32 {
33 "is_creator": "0",
34 "sign_address": "aL7twrxpVq4FuhgC6dqiKoXn2b8Z2bZwi",
35 "sign_account_type": "1",
36 "sign_user_name": "xxx-2",
37 "sign_position": "",
38 "sign_status": "0",
39 "sign_time": "0",
40 "creator_set_sign_position": "[{\"basePX\":1333,\"y2\":904,\"pageHeight\":1122,\"pageWidth\":793,\"y1\":745,\"basePT\":1000,\"height\":159,\"x2\":699,\"width\":159,\"y\":218,\"x\":540,\"x1\":540,\"page\":1}]",
41 "operator_name": "",
42 "gencert_url": "",
43 "evidence_txid": ""
44 }
45 ]
46 }
47}
