新增地址2.0
POST https://{handle}.myshopline.com/admin/openapi/v20250601/customers/:id/addresses.json
handle
:店铺的唯一标识符,值为店铺域名的前缀。例如,域名为 open001.myshopline.com
的店铺,其 handle
是 open001
。新增地址2.0
路径参数
- id string required客户id
请求头
- Content-Type required字段值固定为
application/json; charset=utf-8
- Authorization string required资源的访问令牌。请参考 应用授权 获取访问令牌,然后将获取到的访问令牌以 Bearer 格式传入Example:
Bearer eyJhbGciOiJIUzUxMiJ9.eyJhcHBLZXkiOiJmMjM3OWQyMTYyOGMzM2QxMWRiMWZkYjY5N2EzZjdjMjZlNGMwYTA5Iiwic2VsbGVySWQiOiIyMDAwMjM0ODgwIiwic3RvcmVJZCI6IjE2NzIzNjk3Mjk2MDYiLCJ2ZXJzaW9uIjoiVjIiLCJkb21haW4iOiJodHRwczovL3NsLW9wZW4tc2cubXlzaG9wbGluZS5jb20iLCJ0aW1lc3RhbXAiOjE2NzUzMTk0OTI0MzksImlzcyI6Inlzb3VsIiwiZXhwIjoxNzY5OTI3NDkyfQ.UwQzomM2veGCUaOZ0paUxq5dpc7DXuhHYFvsQ_uIAKduzWcb_j2E4q_36El83sp145D4cKbpcE5KCeeIz-JNQw
请求体
customer_addressobject required
客户地址信息address1 string详细地址 长度限制:255Example:7720 Cherokee Road
address2 string详细地址2 长度限制:255Example:Apartment
address_type integer地址类型city string城市名称 长度限制:64Example:Hagerman
city_code string城市编码 长度限制:50Example:NM
company string公司Example:Joyy
country string国家名称 长度限制:64Example:United States
country_code string国家编码 长度限制:50Example:US
def boolean默认地址Example:true
district string区/县 长度限制:64Example:dazhou
district_code string区/县编码 长度限制:50Example:DZ
first_name string联系人姓 长度限制:128Example:maybe
last_name string联系人名 长度限制:128Example:joho
phone string手机号Example:001467326483
province string省/州名称 长度限制:64Example:Kentucky
province_code string省/州编码 长度限制:50Example:KY
town string街镇 长度限制:64Example:luosiji
zip string邮政编码 长度限制:10Example:90091
响应
- 200
- 401
- 429
更多状态码信息请参考 HTTP 状态码
响应头
traceId
traceId
响应体
customer_addressobject
客户地址信息address1 string详情地址1Example:7720 Cherokee Road
address2 string详细地址2Example:Apartment
address_type integer地址类型city string城市Example:Hagerman
city_code string城市codeExample:NM
company string公司Example:Joyy
country string国家Example:United States
country_code string国家codeExample:US
customer_id string用户idExample:2277270272
def boolean默认地址Example:true
district string区/县Example:dazhou
district_code string区/县 codeExample:DZ
first_name string名Example:maybe
id string地址idExample:SL201UA5006511321220969539
last_name string姓Example:joho
phone string电话号码Example:001467326483
province string省份Example:Kentucky
province_code string省份codeExample:KY
town string街镇Example:luosiji
zip string邮编Example:90091
API Explorer
调试台
这篇文章对你有帮助吗?