更新企业地址
POST
/api/open/v2/enterprise/address/update
请求参数
Body 参数application/json
body
object (EnterpriseAddressSaveParams)
必需
enterpriseCode
string
企业编码
enterpriseType
enum<string>
企业类型
枚举值:
CUSTOMERSUPPLIER
code
string
地址标签
callingCode
string
手机号前缀
默认值:
86
contacts
string
联系人
addressId
integer <int64>
地址id
enterpriseId
integer <int64>
客户id
countryCode
integer
国家编码
provinceCode
integer
省/直辖市/自治区
cityCode
integer
地/市
districtCode
integer
区/县
detail
string
详细地址
mobile
string
手机号码
phone
string
固定电话
fax
string
传真
示例
{
"body": {
"enterpriseCode": "CUST-HW-001",
"enterpriseType": "CUSTOMER",
"code": "ADDR-HW-SH-002",
"callingCode": "86",
"contacts": "王芳(供应链经理)",
"addressId": 10002345,
"enterpriseId": 880001,
"countryCode": 156,
"provinceCode": 310000,
"cityCode": 310100,
"districtCode": 310115,
"detail": "上海市浦东新区张江高科技园区盛夏路5001号",
"mobile": "139-1122-3344",
"phone": "021-50809999",
"fax": "021-50809998"
}
}
示例代码
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://sit.newcoretech.com/api/open/v2/enterprise/address/update' \
--header 'Content-Type: application/json' \
--data-raw '{
"body": {
"enterpriseCode": "CUST-HW-001",
"enterpriseType": "CUSTOMER",
"code": "ADDR-HW-SH-002",
"callingCode": "86",
"contacts": "王芳(供应链经理)",
"addressId": 10002345,
"enterpriseId": 880001,
"countryCode": 156,
"provinceCode": 310000,
"cityCode": 310100,
"districtCode": 310115,
"detail": "上海市浦东新区张江高科技园区盛夏路5001号",
"mobile": "139-1122-3344",
"phone": "021-50809999",
"fax": "021-50809998"
}
}'
返回响应
🟢200成功
application/json
Body
com.xinheyun.model.response.BaseResponse
code
integer
可选
message
string
可选
示例
{
"code": 0,
"message": ""
}