**版本：202201**

# 设置默认地址

**PUT** `/openapi/2022-01/customers/:customer_id/addresses/:address_id/default`

将指定地址设为顾客的默认地址。

## 请求

**Path参数**

- `customer_id` string (required)

  顾客 ID。
- `address_id` string (required)

  地址 ID。

## 响应

**200 | 400 | 404**

200

**application/json**

无 Schema

400

**application/json**

无 Schema

404

**application/json**

**数据结构 | 示例 | Result**

**数据结构**

- `errors` string[]

```json
{
  "errors": [
    "Record not found"
  ]
}
```

```json
{
  "errors": [
    "Record not found"
  ]
}
```
