增加/修改企业信息 *
测试环境
测试环境
POST
/partner/customer/submit
/partner/customer 合作商_企业配置
请求参数
Query 参数
access_token
string
合作商密钥
Body 参数application/json
accounts
integer
可选
areaId
integer
中孚区域编号 固定
city
string
*城市(必填)
concurrents
integer
可选
contactEmail
string
联系邮箱
contactMobile
string
联系手机号
contactName
string
联系人
customerCode
string
*客户标识(必填)
customerId
integer
可选
customerName
string
*客户名称(必填)
customerShortName
string
客户名称简称
customerType
integer
可选
defPass
string
员工默认密码
expireDate
array[string]
可选
industryId
integer
*所属行业(必填)
loginImg
string
登录图片
loginType
integer
可选
logo1
string
可选
logo2
string
可选
mobileSkin
string
手机端皮肤
orgCode
string
中孚机构代码 唯一
partnerId
integer
合作伙伴编号
storageSize
integer
可选
theme
string
主题色
versionId
integer
可选
示例
{
"accounts": 0,
"areaId": 0,
"city": "string",
"concurrents": 0,
"contactEmail": "string",
"contactMobile": "string",
"contactName": "string",
"customerCode": "string",
"customerId": 0,
"customerName": "string",
"customerShortName": "string",
"customerType": 0,
"defPass": "string",
"expireDate": [
"string"
],
"industryId": 0,
"loginImg": "string",
"loginType": 0,
"logo1": "string",
"logo2": "string",
"mobileSkin": "string",
"orgCode": "string",
"partnerId": 0,
"storageSize": 0,
"theme": "string",
"versionId": 0
}
示例代码
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://api.test.tgtrain.cn/partner/customer/submit?access_token' \
--header 'Content-Type: application/json' \
--data-raw '{
"accounts": 0,
"areaId": 0,
"city": "string",
"concurrents": 0,
"contactEmail": "string",
"contactMobile": "string",
"contactName": "string",
"customerCode": "string",
"customerId": 0,
"customerName": "string",
"customerShortName": "string",
"customerType": 0,
"defPass": "string",
"expireDate": [
"string"
],
"industryId": 0,
"loginImg": "string",
"loginType": 0,
"logo1": "string",
"logo2": "string",
"mobileSkin": "string",
"orgCode": "string",
"partnerId": 0,
"storageSize": 0,
"theme": "string",
"versionId": 0
}'
返回响应
🟢200返回企业编号
application/json
Body
data
string
可选
ret
integer
可选
示例
{
"data": "string",
"ret": 0
}
🔴500返回错误消息
修改于 2023-11-27 06:58:20