GET /citizen
NO
{
id
handle
type
status
name
gender
birth_year
birth_month
birth_date
country_code
phone_number
voter_city
voter_district
voter_neighborhood
voter_type
data: {}
personas: [ // GET /personas
*personaObject*
...
]
orders: [
{
id,
merchant_trade_no,
merchandise_name,
merchandise_slug,
merchandise_type,
price
}
...
]
}
PATCH /citizen
NO
Key | Type | Required | Description |
---|---|---|---|
name |
string | 🌑 | 真實姓名 |
gender |
int | 🌑 | 性別認同 |
birth_year |
int | 🌑 | 出生年 |
birth_month |
int | 🌑 | 出生月 |
birth_date |
int | 🌑 | 出生日 |
country_code |
int | 🌑 | 電話號碼國碼 |
phone_number |
string | 🌑 | 電話號碼 |
voter_city |
string | 🌑 | 戶籍地城市 |
voter_district |
string | 🌑 | 戶籍地區域 |
voter_neighborhood |
string | 🌑 | 戶籍地村里 |
voter_type |
string | 🌑 | 選舉人類別 |
data |
object | 🌑 | 其他資料 |
{
"name": "黃培閎",
"gender": 95,
"birth_year": 1990,
"birth_month": 9,
"birth_date": 17,
"country_code": 886,
"phone_number": "912345678",
"voter_city": "台北市",
"voter_district": "士林區",
"voter_neighborhood": "福林里",
"voter_type": "一般"
}
Returns the updated citizen