跳到主要内容
版本:202201

更新地址

PUT 

/openapi/2022-01/customers/:customer_id/addresses/:address_id

通过地址 ID 更新现有地址的详细信息。

请求

Path参数

    customer_id string必填

    顾客 ID。

    address_id string必填

    地址 ID。

请求体

    first_namestring

    First name of consignee.

    last_namestring

    Last name of consignee.

    genderstring

    Gender of consignee, acceptable value: female, male

    emailstring
    phonestring

    Phone number, for example: +86 150 1447 1143

    address1string

    Street address, for example: 1 Rue des Carrieres

    address2string

    Apartment/floor/room number, for example: Suite 1234

    areastring

    Area, for example: Bay area

    citystring

    City, for example: SAN JOSE

    provincestring

    Province, for example: New Mexico

    province_codestring

    Province Code, for example: US-NM

    countrystring

    Country, for example: United States

    country_codestring

    Country code, for example: US

    zipstring

    ZIP code, for example: 87036

    companystring

    Company, for example: ABC Limited

    defaultboolean

    Default address or not

响应

200

数据结构
    address object
    idstring
    示例: 2490dc6a-d511-4e5e-bbcb-d58e913243ad
    customer_idstring
    示例: 2dd957e3-2051-4cdf-8584-9c0046b4d1ae
    first_namestring
    示例: Ryan
    last_namestring
    示例: zhang
    companystring
    示例: ABC Limited
    citystring
    示例: SAN JOSE
    provincestring
    示例: New Mexico
    countrystring
    示例: United States
    zipstring
    示例: 87036
    province_codestring
    示例: NM
    country_codestring
    示例: US
    genderstring
    示例: male
    phonestring
    示例: +8615015570043
    phone_area_codestring
    示例: +86
    areastring
    示例: Bay area
    emailstring
    namestring
    示例: Ryan zhang
    address1string
    示例: 1 Rue des Carrieres
    address2string
    示例: Suite 1234
    country_namestring
    示例: United States
    defaultboolean
    默认值: true
    示例: true