@barobill-sdk/corpstate
v1.0.3
Published
바로빌 사업자등록 상태조회 API SDK
Readme
@barobill-sdk/corpstate
바로빌 사업자등록 상태조회 API TypeScript SDK (비공식)
이 패키지는 바로빌의 공식 SDK가 아닌, 비공식 SDK입니다. 바로빌 API의 공식 문서는 바로빌 API 레퍼런스를 참고해 주세요.
설치
npm i @barobill-sdk/corpstate사용법
import { CorpStateClient } from '@barobill-sdk/corpstate';
const client = await CorpStateClient.create({
certKey: 'your-cert-key',
corpNum: '1234567890', // 기본 사업자등록번호 (선택)
test: true, // true: 테스트 환경 (기본값: false)
});
// 단건 조회
const result = await client.getCorpState({
TargetCorpNum: '0987654321',
});
// 다건 조회
const results = await client.getCorpStates({
TargetCorpNums: ['0987654321', '1122334455'],
});certKey: 바로빌 인증키corpNum(선택): 기본 사업자등록번호. 설정하면 API 호출 시 자동 주입됩니다.test:true이면 테스트 환경,false이면 운영 환경
주요 메서드
| 분류 | 메서드 |
|------|--------|
| 상태조회 | getCorpState, getCorpStateEx, getCorpStates, getCorpStatesEx |
| URL | getCorpStateScrapRequestURL |
| 유틸 | getErrString, ping |
관련 링크
License
ISC
