获取协议内容
接口: /service-agreements
方法: get
接口参数:
参数名称 |
参数类型 |
必填 |
备注 |
例子 |
format |
String |
是 |
格式 txt,html |
html |
providerCompanyName |
String |
是 |
合作方PMS公司 |
房乾 |
providerCompanyAddress |
String |
是 |
合作方PMS公司地址 |
|
providerContactPhone |
String |
是 |
合作方PMS公司联系电话 |
|
providerSystemName |
String |
是 |
合作方PMS 软件系统名称 |
云丁小二 |
supplierName |
String |
是 |
公寓方名字 |
|
supplierAddress |
String |
是 |
公寓方地址 |
|
supplierContactPhone |
String |
是 |
公寓方联系电话 |
|
example
curl -X GET \
'http://127.0.0.1:12216/service-agreements?format=html&providerCompanyName=%E6%88%BF%E4%B9%BEPMS&providerCompanyAddress=%E6%B7%B1%E5%9C%B3%E5%8D%97%E5%B1%B1%E7%A7%91%E6%8A%80%E5%9B%AD&providerContactPhone=15507587404&providerSystemName=%E6%88%BF%E4%B9%BEPMS%E7%B3%BB%E7%BB%9F&supplierName=%E5%A4%A9%E6%98%9F%E5%85%AC%E5%AF%93&supplierAddress=%E5%8D%97%E5%B1%B1%E5%8C%BA%E6%B2%99%E6%B2%B3%E8%A1%97%E9%81%93%E5%A4%A9%E6%98%9F%E5%85%AC%E5%AF%93&supplierContactPhone=170849348934' \
-H 'cache-control: no-cache'
签署协议
接口: /service-agreements/{id}
方法: post
接口参数:
参数名称 |
参数类型 |
必填 |
备注 |
例子 |
supplierId |
String |
是 |
公寓方ID(对接方系统上的ID) |
|
id |
String |
是 |
协议ID(对接方自己定义) |
A100 |
beginTime |
String |
是 |
协议开始时间 |
2018-09-01 11:10:10 |
endTime |
String |
是 |
协议结束时间 |
2019-09-01 11:10:10 |
signTime |
String |
是 |
协议签署时间 |
2018-09-01 11:10:10 |
example
curl -X POST \
https://rent.fangdd.net:12016/b2b/webservice/service-agreements/A008 \
-H 'Authorization: xxxxxx' \
-H 'Content-Type: application/json' \
-H 'cache-control: no-cache' \
-d '{
"supplierId":"2458",
"id": "A008",
"beginTime": "2018-01-18",
"endTime": "2019-01-18",
"signTime":"2018-01-18"
}'