콘텐츠로 이동

서비스 이용내역 조회

Endpoint

[POST] API URL 정보

https://patch-customer.happytalk.io/user/api/service_history/format/json
https://customer.happytalk.io/user/api/service_history/format/json

Auth Description

인증 방법
Body에 해피톡 고객센터를 통하여 발급받은 고객사 토큰 값을 삽입하여 API 통신 시도
고객사 토큰은 설정 > 회사 정보 관리 > 상단 시스템 정보 > TOKEN 에서 확인하실 수 있습니다.

Request (Json)

None

Body

Field Name Type (Length) Required Description Default
token String Y 고객사 토큰
start_date String Y 검색 시작 일시 (Y-m-d h:i:s)
end_date String Y 검색 종료 일시 (Y-m-d h:i:s)

조회시 주의사항

최대 조회기간은 하루입니다.

Example

REST API Sample
curl --location --request POST 'https://patch-customer.happytalk.io/user/api/service_history/format/json' \
--header 'Content-Type: application/json' \
--data-raw '{
    "token" : "고객사 토큰",
    "start_date" : "2021-09-23 00:00:00",
    "end_date" : "2021-09-23 23:59:59"
}'
curl --location --request POST 'https://customer.happytalk.io/user/api/service_history/format/json' \
--header 'Content-Type: application/json' \
--data-raw '{
    "token" : "고객사 토큰",
    "start_date" : "2021-09-23 00:00:00",
    "end_date" : "2021-09-23 23:59:59"
}'

Response (Json)

Parameter

Field Name Type Description
result String success : 성공 , fail : 실패
data object 서비스 이용 내역

참고 사항

data는 세부 내용에 대한 Depth가 있는 관계로 Data Dictionary에 정의하였습니다.
"서비스 이용 내역" 링크를 클릭하시면 이동됩니다.

Example

Success
{
  "result": "success",
  "data": [
    {
      "id": "146708",
      "type": "A",
      "kind": "S",
      "request_user": "test-lc",
      "request_content": "상담분류 변경 [628f30f25ecb0kr2t2PdFgGn030HL2번방] - 상품문의(샘플)>일반상담(샘플) → 상품문의(샘플)>불만접수(샘플)",
      "request_date": "2022-05-26 17:14:28",
      "apply_id": "37197",
      "apply_content": "성공",
      "apply_date": "2022-05-26 17:14:28"
    },
    {
      "id": "146665",
      "type": "A",
      "kind": "S",
      "request_user": "test-lc",
      "request_content": "[WEB] test-lc(37197)상담원 로그인. IP - (IP정보)",
      "request_date": "2022-05-26 16:35:41",
      "apply_id": "37197",
      "apply_content": "로그인",
      "apply_date": "2022-05-26 16:35:41"
    }
  ]
}
Failure

Fail Code 정보

Data Dictionary

Data Dictionary

None

Field Name Type Description
id String 이용내역 고유 ID
type String 이용내역 구분
kind String 이용내역 종류
request_user String 이벤트 발생자
request_content String 이벤트 내용
request_date String 이벤트 발생 일시
apply_id String 적용 ID
apply_content String 적용 내용
apply_date String 적용 일시
Type Description
M 수동
A 자동
Type Description
A 아카이브
K 키 발급
S 매니저 액션