Get Partner Data
Description
取得合作伙伴資料。
Resource
GET /v1/user/partner
Authorization
採用 OAuth 2.0 Bearer Token,詳細使用流程請參考 Auth Login。
Request Body Parameters
| Name | Type | Description |
|---|---|---|
| line_id | string | LINE UID |
Request
GET /v1/user/partner?line_id=ed8wjshjdcl8veh6smxh7dj3hcywb9
Response Body Parameters
| Name | Type | Description |
|---|---|---|
| name | string | 姓名 |
| mobile | string | 手機號碼 |
| travel_agencies | Travel Agency | 旅行社列表 |
| status | string | 審核狀態 ALLOWED VALUES:
|
| files | File | 文件列表 |
| file_limit | integer | 文件數量限制 |
Response Body Parameters - Travel Agency
| Name | Type | Description |
|---|---|---|
| id | string | 旅行社編號 |
| name | string | 旅行社名稱 |
Response Body Parameters - File
| Name | Type | Description |
|---|---|---|
| id | string | 文件編號 |
| name | string | 文件名稱 |
Response
{
"name": "王小明",
"mobile": "0911111111",
"travel_agencies": [
{
"id": "T01",
"name": "雄獅旅行社"
},
{
"id": "T02",
"name": "鳳凰旅行社"
}
],
"status": "PENDING_REVIEW",
"files": [
{
"id": "1",
"name": "測試.jpg"
},
{
"id": "2",
"name": "測試.pdf"
}
],
"file_limit": 5
}