简要描述

  • 调用接口添加公司

接口版本

版本号 制定人 制定日期 修订日期
V 1.0 xxxx-xx-xx

请求URL:

请求方式:

  • POST

请求头:

参数名 是否必须 类型 说明
Content-Type string 请求类型: application/x-www-form-urlencoded

请求参数:

参数名 是否必须 类型 说明
access_token string 获取到的授权码access_token
company_name string 公司名称
province string 公司所在省份(如:广东)
city string 公司所在城市 (如:广州)
area string 公司所在县(区)(如:天河区)
unified_social_credit_code string 社会统一信用代码
legal_representative string 公司法人代表
types_of_enterprises string 公司类型(如:个体户、有限责任公司)
date_of_establishment string 公司注册日期(如:2018-08-06)
registered_address string 公司注册地址
phone_number string 公司联系电话
ltems[] string 公司可服务类型,中括号不能省略 (查看服务类型定义:http://api.020gzjx.com/server_view
website string 公司网址(如:http://www.xxx.com)
chinese_domain_name string 中文域名
registered_capital string 注册资本
business_term_starting_time string 营业期限(开始时间)
business_term_closing_time string 营业期限(结束时间)
business_scope string 经营范围)
registration_authority string 登记机关
management_model string 经营模式:1-独立门店,2-直营连锁,3-加盟(特许)连锁,4-自由连锁,5-其他
opening_hours string 开业时间
total_business_area string 总营业面积
number_of_local_stores string 本省(市)门店数量
number_of_outside_stores string 外省(市)门店数量
employee_management_style string 员工管理方式:1-中介制,2-员工制,3-派遣制,4-其他
number_of_managers string 管理人员数量
number_of_employees string 员工制家政服务人员数量
number_of_nonstaff_personnel string 非员工制家政服务人员数量
training_mode string 培训员工方式:1-自主培训,2-委托培训,3-其他
appraisal_institution string 职业健康鉴定机构:1-自主选择,2-管理部门指定,3-其他
total_assets string 资产总额
total_liabilities string 负债总额
business_income string 营业收入
contacts string 联系人
cell_phone string 联系人手机号码
emergency_contact_number string 紧急联系号码
fax_number string 传真号码
e_mail string 邮箱地址
business_address string 营业地址
postal_code string 邮政编码
company_logo string 公司LOGO,请给完整URL(如:http://www.domain.com/images/logo.jpg) 请将图片控制在1M以内
business_license string 公司营业执照图片,请给完整URL(如:http://www.domain.com/images/license.jpg) 请将图片控制在1M以内

返回示例:

正确时返回一:

  1. {
  2. "code": 200,
  3. "msg": "公司添加成功",
  4. "data": {
  5. "status": "success",
  6. "company_name": "广东XXX家政服务有限公司",
  7. "time": 1558319178
  8. }
  9. }

说明:当返回此结果时说明诚信库里之前暂无此公司,且添加操作成功,time为添加入库时间戳。

正确时返回二:

  1. {
  2. "code": 200,
  3. "msg": "公司添加关联成功",
  4. "data": {
  5. "status": "success",
  6. "company_name": "广东xxx家政服务有限公司",
  7. "time": 1558319432
  8. }
  9. }

说明:当返回此结果时说明诚信库里之前已有此公司,且关联开发者操作成功,time为关联时间戳。

正确时返回三:

  1. {
  2. "code": 200,
  3. "msg": "公司已存在!",
  4. "data": {
  5. "company_name": "广东天川家政服务有限公司",
  6. "time": "1558319432"
  7. }
  8. }

说明:当返回此结果时说明诚信库里已有此公司且已与开发者关联,time为关联时间戳。

错误时返回一:

  1. {
  2. "code": 400,
  3. "msg": "appid错误,请检查传参是否正确!",
  4. "data": []
  5. }

说明:出现此错误时,请检查appid是否正确。

错误时返回二:

  1. {
  2. "code": 400,
  3. "msg": "access_token 无效!",
  4. "data": {
  5. "status": "error"
  6. }
  7. }

说明:出现此错误时,请重新请求授权。