- 平台简介
- 新手指南
- API协议
- API文档
- 合同管理
- 签署服务
- 组织架构
- 印章管理
- 模板管理
- 业务分类
- 个人认证
- 企业认证
- 外部客户
- 授权管理
- 辅助工具
- 信息校验
- 单点登录集成
- JS SDK文档
- 公告
- 小程序插件
- 常见问题
签署服务-公章签署
POST
/v2/contract/companysign
请求参数
Header 参数
x-qys-open-accesstoken
string
可选
默认值:
{{x-qys-open-accesstoken}}
x-qys-open-timestamp
string
可选
默认值:
{{x-qys-open-timestamp}}
x-qys-open-nonce
string
可选
默认值:
{{x-qys-open-nonce}}
x-qys-open-signature
string
可选
默认值:
{{x-qys-open-signature}}
Body 参数application/json
contractId
string
合同ID
bizId
string
业务ID
tenantName
string
签署方名称
sealId
string
印章ID
locateAllStamperKeywords
boolean
是否必须找出全部签署位置传入的关键字
stampers
array[object (StamperRequest) {9}]
指定签署位置
type
enum<string>
签署类型
枚举值:
COMPANYTIMESTAMPACROSS_PAGE
documentId
string
合同文档ID
sealId
string
印章ID
keyword
string
关键字
keywordIndex
integer
关键字索引
page
string
坐标页码
offsetX
string
横坐标/关键字偏移量
offsetY
string
纵坐标/关键字偏移量
datePattern
enum<string>
时间戳格式
枚举值:
HYPHENChineseALL_Chinese
示例
{
"contractId": "{{create_contractId}}",
"bizId": null,
"stampers": [
{
"type": "COMPANY",
"documentId": "{{create_documentId}}",
"sealId": "2566229349702860958",
"offsetX": "0.2",
"offsetY": "-0.2",
"keyword": "劳动",
"keywordIndex": "2"
},
{
"type": "TIMESTAMP",
"documentId": "{{create_documentId}}",
"sealId": "2566229349702860958",
"offsetX": "0.5",
"offsetY": "0.5",
"page": "1"
},
{
"type": "ACROSS_PAGE",
"documentId": "{{create_documentId}}",
"sealId": "2566229349702860958",
"offsetY": "0.5"
}
]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://openapi.qiyuesuo.com/v2/contract/companysign' \
--header 'x-qys-open-accesstoken: {{x-qys-open-accesstoken}}' \
--header 'x-qys-open-timestamp: {{x-qys-open-timestamp}}' \
--header 'x-qys-open-nonce: {{x-qys-open-nonce}}' \
--header 'x-qys-open-signature: {{x-qys-open-signature}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"contractId": "{{create_contractId}}",
"bizId": null,
"stampers": [
{
"type": "COMPANY",
"documentId": "{{create_documentId}}",
"sealId": "2566229349702860958",
"offsetX": "0.2",
"offsetY": "-0.2",
"keyword": "劳动",
"keywordIndex": "2"
},
{
"type": "TIMESTAMP",
"documentId": "{{create_documentId}}",
"sealId": "2566229349702860958",
"offsetX": "0.5",
"offsetY": "0.5",
"page": "1"
},
{
"type": "ACROSS_PAGE",
"documentId": "{{create_documentId}}",
"sealId": "2566229349702860958",
"offsetY": "0.5"
}
]
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
示例
{
"code": 0,
"message": "SUCCESS"
}