# 홈택스 인증 관리

## 1. GetCertificatePopUpURL - 홈택스 인증정보 등록 팝업 URL

![홈택스 인증정보 등록 팝업 URL 미리보기](https://developers.popbill.com/images/reference/httaxinvoice/getCertificatePopUpURL.png)

**홈택스 인증정보를 등록하는 팝업 URL을 반환합니다.**

- 권장 사이즈 : width = 800px / height = 660px
- 반환되는 URL은 30초 동안만 사용이 가능합니다.
- 반환되는 URL에서만 유효한 세션을 포함하고 있습니다.

```vb
Function GetCertificatePopUpURL(CorpNum, UserID)
```

### 요청

**Parameters**

- CorpNum `type: String` `length: 10` `required: Y` `description: 팝빌회원 사업자번호 ('-' 제외)`
- UserID `type: String` `length: 50` `required: N` `description: 팝빌회원 아이디`

### 응답

String - 요청에 대한 응답 URL

### 예외

**Err**

- Number `type: Long` `length: -` `description: API 처리 실패에 대한 오류코드`
  - 음의 정수 8자리 숫자값 [\[참고\] 오류코드](https://developers.popbill.com/error-code)
- Description `type: String` `length: -` `description: API 처리 실패에 대한 오류메시지`

## 2. GetCertificateExpireDate - 인증서 만료일자 확인

팝빌에 등록된 인증서의 만료일자를 확인합니다.

```vb
Function GetCertificateExpireDate(CorpNum, UserID)
```

### 요청

**Parameters**

- CorpNum `type: String` `length: 10` `required: Y` `description: 팝빌회원 사업자번호 ('-' 제외)`
- UserID `type: String` `length: 50` `required: N` `description: 팝빌회원 아이디`

### 응답

String - 팝빌에 등록된 인증서 만료일자 (형식 : yyyyMMdd)

### 예외

**Err**

- Number `type: Long` `length: -` `description: API 처리 실패에 대한 오류코드`
  - 음의 정수 8자리 숫자값 [\[참고\] 오류코드](https://developers.popbill.com/error-code)
- Description `type: String` `length: -` `description: API 처리 실패에 대한 오류메시지`

## 3. CheckCertValidation - 인증서 유효성 검증

팝빌에 등록된 인증서로 홈택스 로그인 가능 여부를 확인합니다.

```vb
Function CheckCertValidation(CorpNum, UserID)
```

### 요청

**Parameters**

- CorpNum `type: String` `length: 10` `required: Y` `description: 팝빌회원 사업자번호 ('-' 제외)`
- UserID `type: String` `length: 50` `required: N` `description: 팝빌회원 아이디`

### 응답

**Response**

- code `type: Long` `length: -` `description: API 처리에 대한 응답코드`
  - `1`: 성공
- message `type: String` `length: -` `description: API 처리에 대한 응답메시지`

### 예외

**Err**

- Number `type: Long` `length: -` `description: API 처리 실패에 대한 오류코드`
  - 음의 정수 8자리 숫자값 [\[참고\] 오류코드](https://developers.popbill.com/error-code)
- Description `type: String` `length: -` `description: API 처리 실패에 대한 오류메시지`

## 4. RegistDeptUser - 부서사용자 계정 등록

팝빌에 전자세금계산서 전용 부서사용자를 등록합니다.

```vb
Function RegistDeptUser (CorpNum, DeptUserID, DeptUserPWD, UserID)
```

### 요청

**Parameters**

- CorpNum `type: String` `length: 10` `required: Y` `description: 팝빌회원 사업자번호 ('-' 제외)`
- DeptUserID `type: String` `length: 50` `required: Y` `description: 전자세금계산서 전용 부서사용자 아이디`
- DeptUserPWD `type: String` `length: 50` `required: Y` `description: 전자세금계산서 전용 부서사용자 비밀번호`
- UserID `type: String` `length: 50` `required: N` `description: 팝빌회원 아이디`

### 응답

**Response**

- code `type: Long` `length: -` `description: API 처리에 대한 응답코드`
  - `1`: 성공
- message `type: String` `length: -` `description: API 처리에 대한 응답메시지`

### 예외

**Err**

- Number `type: Long` `length: -` `description: API 처리 실패에 대한 오류코드`
  - 음의 정수 8자리 숫자값 [\[참고\] 오류코드](https://developers.popbill.com/error-code)
- Description `type: String` `length: -` `description: API 처리 실패에 대한 오류메시지`

## 5. CheckDeptUser - 부서사용자 등록 여부

팝빌에 부서사용자 등록 여부를 확인합니다.

```vb
Function CheckDeptUser(CorpNum, UserID)
```

### 요청

**Parameters**

- CorpNum `type: String` `length: 10` `required: Y` `description: 팝빌회원 사업자번호 ('-' 제외)`
- UserID `type: String` `length: 50` `required: N` `description: 팝빌회원 아이디`

### 응답

**Response**

- code `type: Long` `length: -` `description: API 처리에 대한 응답코드`
  - `1`: 성공
- message `type: String` `length: -` `description: API 처리에 대한 응답메시지`

### 예외

**Err**

- Number `type: Long` `length: -` `description: API 처리 실패에 대한 오류코드`
  - 음의 정수 8자리 숫자값 [\[참고\] 오류코드](https://developers.popbill.com/error-code)
- Description `type: String` `length: -` `description: API 처리 실패에 대한 오류메시지`

## 6. CheckLoginDeptUser - 부서사용자 유효성 검증

팝빌에 등록된 부서사용자로 홈택스 로그인 가능 여부를 확인합니다.

```vb
Function CheckLoginDeptUser(CorpNum, UserID)
```

### 요청

**Parameters**

- CorpNum `type: String` `length: 10` `required: Y` `description: 팝빌회원 사업자번호 ('-' 제외)`
- UserID `type: String` `length: 50` `required: N` `description: 팝빌회원 아이디`

### 응답

**Response**

- code `type: Long` `length: -` `description: API 처리에 대한 응답코드`
  - `1`: 성공
- message `type: String` `length: -` `description: API 처리에 대한 응답메시지`

### 예외

**Err**

- Number `type: Long` `length: -` `description: API 처리 실패에 대한 오류코드`
  - 음의 정수 8자리 숫자값 [\[참고\] 오류코드](https://developers.popbill.com/error-code)
- Description `type: String` `length: -` `description: API 처리 실패에 대한 오류메시지`

## 7. DeleteDeptUser - 부서사용자 계정 삭제

팝빌에 등록된 부서사용자 계정을 삭제합니다.

```vb
Function DeleteDeptUser(CorpNum, UserID)
```

### 요청

**Parameters**

- CorpNum `type: String` `length: 10` `required: Y` `description: 팝빌회원 사업자번호 ('-' 제외)`
- UserID `type: String` `length: 50` `required: N` `description: 팝빌회원 아이디`

### 응답

**Response**

- code `type: Long` `length: -` `description: API 처리에 대한 응답코드`
  - `1`: 성공
- message `type: String` `length: -` `description: API 처리에 대한 응답메시지`

### 예외

**Err**

- Number `type: Long` `length: -` `description: API 처리 실패에 대한 오류코드`
  - 음의 정수 8자리 숫자값 [\[참고\] 오류코드](https://developers.popbill.com/error-code)
- Description `type: String` `length: -` `description: API 처리 실패에 대한 오류메시지`
