콘텐츠로 이동

상담 가능/불가 상담원 인원수

Endpoint

[GET] API URL 정보

https://patch-biz-api.happytalk.io/v1/api/counselors/work_count
https://biz-api.happytalk.io/v1/api/counselors/work_count

Request (Json)

Field Name Type Required Description
HT-Client-Id String Y 고객센터에서 발급 받은 key
HT-Client-Secret String Y 고객센터에서 발급 받은 token

Body

Field Name Type (Length) Required Description Default
date String (10) N 검색 일자 (ex:2023-03-23) 오늘 일자

Example

REST API Sample
curl --location --request POST 'https://patch-biz-api.happytalk.io/v1/api/counselors/work_count' \
--header 'HT-Client-Id: 고객센터에서 발급 받은 key' \
--header 'HT-Client-Secret: 고객센터에서 발급 받은 token' \
--header 'Content-Type: application/json' \
--data-raw '{
    "date" : "2032-03-23"
}'
curl --location --request POST 'https://biz-api.happytalk.io/v1/api/counselors/work_count' \
--header 'HT-Client-Id: 고객센터에서 발급 받은 key' \
--header 'HT-Client-Secret: 고객센터에서 발급 받은 token' \
--header 'Content-Type: application/json' \
--data-raw '{
    "date" : "2032-03-23"
}'

Response (Json)

Parameter

Field Name Type Description
code Int 성공, 실패 여부
site_id bigInt 호출된 고객사 사이트 아이디
response_time datetime 응답 일시
request_date date 요청 일자
work_cs_count String 상담 가능 상담원 인원수
close_cs_count String 상담 불가능 상담원 인원수

Example

Success
{
    "code": 0,
    "site_id": "1000235642",
    "response_time": "2023-03-23 15:21:30",
    "request_date": "2023-03-23",
    "work_cs_count": 1,
    "close_cs_count": 0
}
Failure

Fail Code 정보

Data Dictionary

Data Dictionary

None

None