Get Staff
Function
To retrieve a specific staff by id
以 id 獲取指定的員工資訊
URL
GET <<api_domain>>/v1/staffs/:staff_id
Request Parameters
Parameter | Type | Description | Example |
|---|---|---|---|
staff_id |
| Staff ID |
|
Response Fields
Field | Type | Description | Example |
|---|---|---|---|
id |
| Staff ID | 61236c9a6ed8bb001ef6877b |
user_id |
| User ID | 5afaa3b0d2a93e03a1000020 |
created_at |
| Created Time | 2018-05-15T09:09:04.497Z |
merchant_ids |
| Merchant IDs |
|
organization_ids |
| Organization IDs |
|
| Staff Email | ||
name |
| Staff Name | shopline |
locale_code |
| Locale Code | zh-hant |
role_keys |
| ||
profile_image_url |
| Profile Image URL | |
owned_merchants |
| Owned Merchants | |
employed_merchants |
| Employed Merchants | |
channel_ids |
| Channel IDs |
|
permissions |
| Permission List if permission_scopes is not provided, this field will return null 權限列表 如果沒有permission_scopes,返回null |
Response Example
{
"id": "5b728d18e388094d52cf28a2",
"_id": "5b728d18e388094d52cf28a2",
"user_id": "5afaa3b0d2a93e03a1000020",
"created_at": "2018-05-15T09:09:04.497Z",
"merchant_ids": [
"5afaa3b0e38809312d00002e"
],
"organization_ids": [],
"email": "[email protected]",
"name": "shopline",
"locale_code": "zh-hant",
"role_keys": [],
"profile_image_url": "https://shoplineimg.com/assets/misc/placeholder-user-default.png",
"owned_merchants": [
{
"_id": "5afaa3b0e38809312d00002e",
"name": "shopline",
"handle": "shopline",
"logo_media_id": "637475f5e03d430036032bbb",
"base_country_code": "TW",
"custom_domain": ""
}
],
"employed_merchants": [
{
"_id": "5afa5eabe38809312d000006",
"name": "shopline",
"handle": "shopline",
"logo_media_id": null,
"base_country_code": "TW",
"custom_domain": null
}
],
"channel_ids": [
"606ed59eb230660044e8ef7a"
],
"permissions": null
}Updated 13 days ago