- 淘宝
- 1688
- 商品
- 购物车
- 订单
- 售后
- 消息回调
- 基础
- 仓库物流
地址新增与更新
POST
/v2/open/address/addOrUpdate
请求参数
Header 参数
access-key
string
必需
默认值:
your-access-key
timestamp
string
必需
默认值:
your-timestamp
user-id
string
必需
默认值:
your-user-id
signature
string
必需
默认值:
your-signature
Body 参数application/json
id
integer
ID编号
name
string
收件人
province
string
省份名
city
string
城市名
district
string
区域名
address
string
详细地址
phone
string
手机号码
示例
{
"id": 0,
"name": "string",
"province": "string",
"city": "string",
"district": "string",
"address": "string",
"phone": "string"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/v2/open/address/addOrUpdate' \
--header 'access-key;' \
--header 'timestamp;' \
--header 'user-id;' \
--header 'signature;' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": 0,
"name": "string",
"province": "string",
"city": "string",
"district": "string",
"address": "string",
"phone": "string"
}'
返回响应
🟢200成功
application/json
Body
code
integer
成功
msg
string
描述
示例
{
"code": 0,
"msg": "string"
}
修改于 2025-04-25 06:19:02