단말기 상태이상 정보 요청
단말기 상태이상과 관련된 API 기능을 제공합니다.
단말기 상태에 이상이 있는 데이터를 조회할 수 있습니다.
기본 호출 구문
const API = axios.create({ baseURL: `http://api.ubcn.co.kr/api`, headers: { "Access-Control-Allow-Origin": "*", "company": "{company}", "token": "{token}", },});
// get, post 모두 지원합니다.// 조회 당일(고정)의 데이터만 출력됩니다.
const res = await API.get("/controlerror");
// 결과 출력console.log(res.data);
// 프로세스가 제대로 완료되지 않은 경우 에러 코드가 존재합니다.if (res.code != null) { return alert(res.decription);}
Schema
결과 값에 들어 있는 필드는 다음과 같습니다.
필드명 | 상세필드명 | 필수 | 타입 | 설명 | 비고 |
---|---|---|---|---|---|
decription | - | Y | String | API 상세설명 | - |
message | - | Y | String | 응답 메시지 | - |
type | - | Y | String | API 유형 | - |
requestDate | - | Y | String | 요청일자 | YYYYMMDD |
controlErrorList | statusDate | Y | String | 상태 수신일자 | YYYYMMDD |
statusTime | Y | String | 상태 수신시간 | HH24MISS | |
terminalID | Y | String | 단말기 ID | - | |
terminalCode | Y | String | 단말기코드 | - | |
placeCode | Y | String | 위치코드(점포코드) | - | |
placeSeq | Y | String | 위치순번(POS번호) | - | |
cabNo | Y | String | 캐비넷번호 | - | |
statusCode | Y | String | 상태코드 | - | |
controlError | Y | String | 상태코드 내용 | - |