콘텐츠로 이동

상담 종료

Endpoint

[POST] API URL 정보

https://patch-biz-api.happytalk.io/v1/chat/end
https://biz-api.happytalk.io/v1/chat/end

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
uuid String (20) Y 고객사 고객 식별 정보 (최소 5자 ~ 최대 20자)
room_id String (30) Y 상담방 번호
end_type int (1) N 상담방 종료 코드

Example

REST API Sample
curl --location --request POST 'https://patch-biz-api.happytalk.io/v1/chat/isCounselor' \
--header 'HT-Client-Id: 고객센터에서 발급 받은 key' \
--header 'HT-Client-Secret: 고객센터에서 발급 받은 token' \
--header 'Content-Type: application/json' \
--data-raw '{
    "uuid" : "고객사 고객 식별 정보",
    "room_id" : "상담방 번호",
    "end_type" : "상담방 종료 코드"
}'
curl --location --request POST 'https://biz-api.happytalk.io/v1/chat/isCounselor' \
--header 'HT-Client-Id: 고객센터에서 발급 받은 key' \
--header 'HT-Client-Secret: 고객센터에서 발급 받은 token' \
--header 'Content-Type: application/json' \
--data-raw '{
    "uuid" : "고객사 고객 식별 정보",
    "room_id" : "상담방 번호",
    "end_type" : "상담방 종료 코드"
}'

Response (Json)

Parameter

Field Name Type Description
code Int 성공, 실패여부
message String 오류 메시지 (성공시 공란)

Example

Success
{
    "code": 0,
    "message": ""
}
Failure

Fail Code 정보

Data Dictionary

Data Dictionary
Type Description
0 상담원 종료
1 고객 종료
2 매니저 종료

None