Agents

To get agent information by inputing agent ID<br>輸入員工ID取得該員工資訊

get/agents/{id}

Request

  • Base URL
    https://open.shopline.io/v1
  • URL
    https://open.shopline.io/v1/agents/{id}
  • Auth
    HTTP bearer

Path parameters

idstring required

Agent ID<br>員工ID

Query parameters

excludes[]string[]

Could exclude certain parameters in the response<br>結果要排除哪些參數

[
  "id"
]
fields[]string[]

Could only show certain parameters in the response<br>結果只顯示哪些參數

[
  "id"
]

Response

OK

idstring

Id of the agent<br>員工ID

emailstring

Email of the agent<br>員工電郵

namestring

Name of the agent<br>員工名稱

phonestring

Phone of the agent<br>員工電話號碼

is_workingboolean

Working status of the agent<br>員工工作狀態(上班/下班)

Example response

{
  "id": "61ee85739fdc3f16a1b9aa07",
  "email": "cindy@shopline.com",
  "name": "Cindy",
  "phone": "0987654321",
  "is_working": true,
  "channel_ids": [
    "61ee85739fdc3f16a1b9aa07",
    "61ee85739fdc3f16a1b9aa08"
  ]
}

Changes