创建企业地址
POST
/api/open/v2/enterprise/address/create
请求参数
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-001",
"callingCode": "86",
"contacts": "张伟(物流总监)",
"addressId": 321520,
"enterpriseId": 523210,
"countryCode": 156,
"provinceCode": 310000,
"cityCode": 310100,
"districtCode": 310115,
"detail": "上海市浦东新区张江高科技园区祖冲之路2288号",
"mobile": "139-1234-5678",
"phone": "021-50801234",
"fax": "021-50805678"
}
}
示例代码
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/create' \
--header 'Content-Type: application/json' \
--data-raw '{
"body": {
"enterpriseCode": "CUST-HW-001",
"enterpriseType": "CUSTOMER",
"code": "ADDR-HW-SH-001",
"callingCode": "86",
"contacts": "张伟(物流总监)",
"addressId": 321520,
"enterpriseId": 523210,
"countryCode": 156,
"provinceCode": 310000,
"cityCode": 310100,
"districtCode": 310115,
"detail": "上海市浦东新区张江高科技园区祖冲之路2288号",
"mobile": "139-1234-5678",
"phone": "021-50801234",
"fax": "021-50805678"
}
}'
返回响应
🟢200成功
application/json
Body
com.xinheyun.model.response.BaseResponse
code
integer
可选
message
string
可选
示例
{
"code": 0,
"message": ""
}