Skip to content

Create Member Car Info

Description

建立會員汽車資訊。

Resource

POST /v1/user/car

Authorization

採用 OAuth 2.0 Bearer Token,詳細使用流程請參考 Auth Login

Request Body Parameters

Name Type Description
car_no string 車牌號碼
last_examination_date string 上次驗車日期
EXAMPLE "2020-01-01"
oil_type string
(enum)
油品代號
ALLOWED VALUES:
  • DIESEL_OIL
  • UNLEADED_GASOLINE_92
  • UNLEADED_GASOLINE_95
  • UNLEADED_GASOLINE_98
issued_date string 行照發照日期
EXAMPLE "2020-01-01"
car_type CarType 車種
deactivate bool 停用

Request Body Parameters - CarType

Name Type Description
PRIVATE_SEDAN string 自用小客車
OPERATING_SEDAN string 營業小客車
PRIVATE_TRUCK string 自用小貨車
OPERATING_TRUCK string 營業小貨車
PASSENGER_CARGO_DUAL_PURPOSE_CAR string 客貨兩用車
ORDINARY_HEAVY_MOTORCYCLE string 普通重型機車
LARGE_HEAVY_MOTORCYCLE string 大型重型機車
PRIVATE_OFFICIAL_CAR string 自用公務車

Request Example

{
  "car_no": "AAA-0000",
  "last_examination_date": "2020-01-01",
  "oil_type": "UNLEADED_GASOLINE_95",
  "issued_date": "2020-01-01",
  "car_type": "PRIVATE_SEDAN",
  "deactivate": false
}

Response Body Parameters

Name Type Description
code string 錯誤代碼
message string 錯誤訊息

Response Success Example

Status-Code: 204 No Content

Response Fail Example

Status-Code: 400

{
  "code": "E03",
  "message": "請輸入車牌號碼"
}

Response Error Code

Status-Code code message
400 E01 無此公司
401 E02 無法識別會員身份,需重新登入
400 E03 請輸入車牌號碼
400 E04 此車號已存在
400 E05 請輸入車種
400 E06 會員汽車資訊同步失敗
400 E07 發生未知的錯誤
404 E08 查無汽車資訊