General Sign-up
Description
註冊一般用戶。
Resource
POST /v2/user
Authorization
採用 OAuth 2.0 Bearer Token,詳細使用流程請參考 Auth Login。
Request Body Parameters
| Name | Type | Description |
|---|---|---|
| type | string (enum) |
帳號類型 ALLOWED VALUES:
|
| id | string | 帳號 |
| password | string | 密碼 (optional) |
| name | string | 名稱 (optional) |
| string | 電子信箱 (optional) |
|
| birthday | string | 生日 (optional) |
| sex | string | 性別 (optional) male男 female女 |
| Invitation_code | string | 邀請碼 (optional) |
| address | string | 地址 (optional) |
| line_id | string | LINE UID (optional) |
| store_id | string | 門市代碼 (optional) |
| vip_group_id | string | 會員群組編號 (optional) |
| external_data | External Data | 外部資訊 (optional) |
| citizen_digital_certificate | string | 自然人憑證 (optional) |
| default_carrier_type | string | 預設載具類別 ALLOWED VALUES:
(optional) |
| memo | string | 備註(optional) |
Request Body Parameters - External Data
| Name | Type | Description |
|---|---|---|
| vip_id | string | 會員編號 (optional) |
| uuid | string | UUID (optional) |
| card_no | string | 卡號 (optional) |
Request Example
{
"type": "PHONE_NUMBER",
"id": "0987654321",
"password": "111111",
"name": "test"
}
Response Body Parameters
| Name | Type | Description |
|---|---|---|
| id | String | 會員ID |
| name | String | 姓名 |
| zip | String | 郵遞區號 |
| address | String | 地址 |
| telephone | String | 電話 |
| sex | String | 性別 ALLOWED VALUES:
|
| birthday | String | 生日 |
| String | 信箱 | |
| mobile | String | 手機號碼 |
| group_id | String | 會員群組ID |
| group_name | String | 會員群組名稱 |
| card_no | String | 會員卡卡號 |
| phone_carrier | string | 手機載具 |
| points | int | 會員持有點數 |
| Invitation_code | string | 邀請碼 |
| seal_quantity | int | 集章數量 (optional) 會員沒有集章數量資訊時,將不會回傳此參數. |
| points_exchanged_amount | int | 點數兌換金額 |
| tax_id_number | string | 統一編號 (optional) |
| default_carrier_type | string | 預設載具類別 ALLOWED VALUES:
|
| citizen_digital_certificate | string | 自然人憑證 |
| apply_shop_id | string | 申請門市編號 |
| apply_date | string | 申請日期 |
| discount_rate | int | 折扣率 |
| is_can_credit | boolean | 是否可賒帳 |
| memo | string | 備註 |
Response
{
"id": "021100543",
"name": "Jane",
"zip": null,
"address": "台北市大安區復興南路二段171巷20號1樓",
"telephone": "27006275",
"sex": "Female",
"birthday": "2020-01-01T00:00:00",
"email": "[email protected]",
"mobile": "0987654321",
"points": "100",
"group_id": "APP",
"group_name": "品牌APP會員",
"card_no": "",
"phone_carrier": "",
"Invitation_code": "6vq4tt",
"seal_quantity": 0,
"points_exchanged_amount": 10,
"tax_id_number": "",
"citizen_digital_certificate": "",
"default_carrier_type": "PHONE_CARRIER",
"apply_shop_id": "0",
"apply_date": "2020-01-01 00:00:00",
"discount_rate": 100,
"is_can_credit": false,
"memo": null
}