# 부가기능

## 1. GetSealURL - 인감 및 첨부문서 등록 팝업 URL

![인감 및 첨부문서 등록 팝업 URL 미리보기](https://developers.popbill.com/images/reference/taxinvoice/getSealURL.png)

**전자세금계산서에 첨부될 인감, 사업자등록증, 통장사본을 등록하는 팝업 URL을 반환합니다.**

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

```php
function GetSealURL($CorpNum, $UserID = null)
```

> 인감을 등록한 이후 세금계산서를 발행하는 경우, 자동으로 등록된 인감이 첨부되어 세금계산서가 발행됩니다.

### 요청

**Parameters**

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

### 응답

String - 요청에 대한 응답 URL

### 예외

**PopbillException**

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

## 2. AttachFile - 파일 첨부

“임시저장” 상태의 세금계산서에 1개의 파일을 첨부합니다. (최대 5개)

```php
function AttachFile($CorpNum, $MgtKeyType, $MgtKey, $FilePath, $UserID = null, $DisplayName)
```

### 요청

**Parameters**

- CorpNum `type: String` `length: 10` `required: Y` `description: 팝빌회원 사업자번호 ('-' 제외)`
- MgtKeyType `type: ENumMgtKeyType` `length: -` `required: Y` `description: 문서번호 유형 (택 1)`
  - `SELL`: 매출
  - `BUY`: 매입
  - `TRUSTEE`: 위수탁
- MgtKey `type: String` `length: 24` `required: Y` `description: 파트너가 할당한 문서번호`
- FilePath `type: String` `length: -` `required: Y` `description: 첨부파일의 경로`
- UserID `type: String` `length: 50` `required: N` `description: 팝빌회원 아이디`
- DisplayName `type: String` `length: 255` `required: Y` `description: 파일명`

### 응답

**Response**

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

### 예외

**PopbillException**

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

## 3. AttachFileBinary - 파일 첨부(바이너리)

“임시저장” 상태의 세금계산서에 1개의 파일(바이너리)을 첨부합니다. (최대 5개)

```php
function AttachFileBinary($CorpNum, $MgtKeyType, $MgtKey, $BinaryFile, $UserID = null)
```

### 요청

**Parameters**

- CorpNum `type: String` `length: 10` `required: Y` `description: 팝빌회원 사업자번호 ('-' 제외)`
- MgtKeyType `type: ENumMgtKeyType` `length: -` `required: Y` `description: 문서번호 유형 (택 1)`
  - `SELL`: 매출
  - `BUY`: 매입
  - `TRUSTEE`: 위수탁
- MgtKey `type: String` `length: 24` `required: Y` `description: 파트너가 할당한 문서번호`
- BinaryFile `type: BinaryFile` `length: -` `required: Y` `description: 첨부 파일`
  - fileName `type: String` `length: 255` `required: Y` `description: 파일명`
  - fileData `type: BLOB` `length: -` `required: Y` `description: 파일의 바이너리 데이터`
- UserID `type: String` `length: 50` `required: N` `description: 팝빌회원 아이디`

### 응답

**Response**

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

### 예외

**PopbillException**

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

## 4. DeleteFile - 첨부파일 삭제

“임시저장” 상태의 세금계산서에 첨부된 1개의 파일을 삭제합니다.

- 파일 식별을 위해 첨부시 할당되는 ‘FileID’는 함수 [\[GetFiles – 첨부파일 목록 확인\]](https://developers.popbill.com/reference/taxinvoice/php/api/etc#GetFiles) 를 호출하여 확인합니다.

```php
function DeleteFile($CorpNum, $MgtKeyType, $MgtKey, $FileID, $UserID = null)
```

### 요청

**Parameters**

- CorpNum `type: String` `length: 10` `required: Y` `description: 팝빌회원 사업자번호 ('-' 제외)`
- MgtKeyType `type: ENumMgtKeyType` `length: -` `required: Y` `description: 문서번호 유형 (택 1)`
  - `SELL`: 매출
  - `BUY`: 매입
  - `TRUSTEE`: 위수탁
- MgtKey `type: String` `length: 24` `required: Y` `description: 파트너가 할당한 문서번호`
- FileID `type: String` `length: 255` `required: Y` `description: 팝빌이 할당한 파일 식별번호`
  - 함수 [\[GetFiles – 첨부파일 목록 확인\]](https://developers.popbill.com/reference/taxinvoice/php/api/etc#GetFiles)의 응답 객체 AttachedFile의 변수 'attachedFile'를 통해 확인 가능
- UserID `type: String` `length: 50` `required: N` `description: 팝빌회원 아이디`

### 응답

**Response**

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

### 예외

**PopbillException**

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

## 5. GetFiles - 첨부파일 목록 확인

세금계산서에 첨부된 파일목록을 확인합니다.

```php
function GetFiles($CorpNum, $MgtKeyType, $MgtKey)
```

### 요청

**Parameters**

- CorpNum `type: String` `length: 10` `required: Y` `description: 팝빌회원 사업자번호 ('-' 제외)`
- MgtKeyType `type: ENumMgtKeyType` `length: -` `required: Y` `description: 문서번호 유형 (택 1)`
  - `SELL`: 매출
  - `BUY`: 매입
  - `TRUSTEE`: 위수탁
- MgtKey `type: String` `length: 24` `required: Y` `description: 파트너가 할당한 문서번호`

### 응답

**AttachedFile\[ ]**

- serialNum `type: Integer` `length: 1` `description: 첨부파일 일련번호`
- attachedFile `type: String` `length: 255` `description: 팝빌이 할당한 파일 식별번호`
  - 팝빌이 첨부파일 관리를 위해 할당한 식별번호
  - 함수 [\[DeleteFile – 첨부파일 삭제\]](https://developers.popbill.com/reference/taxinvoice/php/api/etc#DeleteFile)호출을 위한 필수값
- displayName `type: String` `length: 255` `description: 파일명`
- regDT `type: String` `length: 14` `description: 첨부일시`
  - 형식 : yyyyMMddHHmmss

### 예외

**PopbillException**

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

## 6. SendEmail - 메일 재전송

세금계산서와 관련된 안내 메일을 재전송 합니다.

```php
function SendEmail($CorpNum, $MgtKeyType, $MgtKey, $Receiver, $UserID = null)
```

### 요청

**Parameters**

- CorpNum `type: String` `length: 10` `required: Y` `description: 팝빌회원 사업자번호 ('-' 제외)`
- MgtKeyType `type: ENumMgtKeyType` `length: -` `required: Y` `description: 문서번호 유형 (택 1)`
  - `SELL`: 매출
  - `BUY`: 매입
  - `TRUSTEE`: 위수탁
- MgtKey `type: String` `length: 24` `required: Y` `description: 메일 재전송할 세금계산서 문서번호`
- Receiver `type: String` `length: -` `required: Y` `description: 수신자 메일주소`
- UserID `type: String` `length: 50` `required: N` `description: 팝빌회원 아이디`

### 응답

**Response**

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

### 예외

**PopbillException**

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

## 7. SendSMS - 문자 재전송

세금계산서와 관련된 안내 SMS(단문) 문자를 재전송하는 함수로, 팝빌 사이트 \[ 문자 > 결과 > 전송결과 ] 메뉴에서 전송결과를 확인할 수 있습니다.

- 메시지는 최대 90byte까지 입력 가능하고, 초과한 내용은 자동으로 삭제되어 전송합니다. (한글 최대 45자)

```php
function SendSMS($CorpNum, $MgtKeyType, $MgtKey, $Sender, $Receiver, $Contents, $UserID = null)
```

> API 호출 시 포인트가 차감됩니다.

### 요청

**Parameters**

- CorpNum `type: String` `length: 10` `required: Y` `description: 팝빌회원 사업자번호 ('-' 제외)`
- MgtKeyType `type: ENumMgtKeyType` `length: -` `required: Y` `description: 문서번호 유형 (택 1)`
  - `SELL`: 매출
  - `BUY`: 매입
  - `TRUSTEE`: 위수탁
- MgtKey `type: String` `length: 24` `required: Y` `description: 파트너가 할당한 문서번호`
- Sender `type: String` `length: -` `required: Y` `description: 발신번호`
- Receiver `type: String` `length: -` `required: Y` `description: 수신번호`
- Contents `type: String` `length: 90` `required: Y` `description: 메시지 내용`
  - 최대 90 byte까지 입력 가능하고, 초과한 내용은 자동으로 삭제되어 전송
- UserID `type: String` `length: 50` `required: N` `description: 팝빌회원 아이디`

### 응답

**Response**

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

### 예외

**PopbillException**

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

## 8. SendFAX - 팩스 전송

세금계산서를 팩스로 전송하는 함수로, 팝빌 사이트 \[ 팩스 > 결과 > 전송결과 ] 메뉴에서 전송결과를 확인할 수 있습니다.

```php
function SendFAX($CorpNum, $MgtKeyType, $MgtKey, $Sender, $Receiver, $UserID = null)
```

> API 호출 시 포인트가 차감됩니다.

### 요청

**Parameters**

- CorpNum `type: String` `length: 10` `required: Y` `description: 팝빌회원 사업자번호 ('-' 제외)`
- MgtKeyType `type: ENumMgtKeyType` `length: -` `required: Y` `description: 문서번호 유형 (택 1)`
  - `SELL`: 매출
  - `BUY`: 매입
  - `TRUSTEE`: 위수탁
- MgtKey `type: String` `length: 24` `required: Y` `description: 파트너가 할당한 문서번호`
- Sender `type: String` `length: -` `required: Y` `description: 발신번호`
- Receiver `type: String` `length: -` `required: Y` `description: 수신번호`
- UserID `type: String` `length: 50` `required: N` `description: 팝빌회원 아이디`

### 응답

**Response**

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

### 예외

**PopbillException**

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

## 9. AttachStatement - 전자명세서 첨부

팝빌 전자명세서 API를 통해 발행한 전자명세서를 세금계산서에 첨부합니다.

```php
function AttachStatement($CorpNum, $MgtKeyType, $MgtKey, $SubItemCode, $SubMgtKey, $UserID = null)
```

### 요청

**Parameters**

- CorpNum `type: String` `length: 10` `required: Y` `description: 팝빌회원 사업자번호 ('-' 제외)`
- MgtKeyType `type: ENumMgtKeyType` `length: -` `required: Y` `description: 문서번호 유형 (택 1)`
  - `SELL`: 매출
  - `BUY`: 매입
  - `TRUSTEE`: 위수탁
- MgtKey `type: String` `length: 24` `required: Y` `description: 파트너가 할당한 문서번호`
- SubItemCode `type: Integer` `length: 3` `required: Y` `description: 첨부할 전자명세서 문서 유형 (택 1)`
  - `121`: 거래명세서
  - `122`: 청구서
  - `123`: 견적서
  - `124`: 발주서
  - `125`: 입금표
  - `126`: 영수증
  - 전자명세서 발행시 입력한 값과 동일하게 작성
- SubMgtKey `type: String` `length: 24` `required: Y` `description: 첨부할 전자명세서 문서번호`
- UserID `type: String` `length: 50` `required: N` `description: 팝빌회원 아이디`

### 응답

**Response**

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

### 예외

**PopbillException**

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

## 10. DetachStatement - 전자명세서 첨부해제

세금계산서에 첨부된 전자명세서를 해제합니다.

```php
function DetachStatement($CorpNum, $MgtKeyType, $MgtKey, $SubItemCode, $SubMgtKey, $UserID = null)
```

### 요청

**Parameters**

- CorpNum `type: String` `length: 10` `required: Y` `description: 팝빌회원 사업자번호 ('-' 제외)`
- MgtKeyType `type: ENumMgtKeyType` `length: -` `required: Y` `description: 문서번호 유형 (택 1)`
  - `SELL`: 매출
  - `BUY`: 매입
  - `TRUSTEE`: 위수탁
- MgtKey `type: String` `length: 24` `required: Y` `description: 파트너가 할당한 문서번호`
- SubItemCode `type: Integer` `length: 3` `required: Y` `description: 첨부해제할 전자명세서 문서 유형 (택 1)`
  - `121`: 거래명세서
  - `122`: 청구서
  - `123`: 견적서
  - `124`: 발주서
  - `125`: 입금표
  - `126`: 영수증
  - 전자명세서 발행시 입력한 값과 동일하게 작성
- SubMgtKey `type: String` `length: 24` `required: Y` `description: 첨부해제할 전자명세서 문서번호`
- UserID `type: String` `length: 50` `required: N` `description: 팝빌회원 아이디`

### 응답

**Response**

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

### 예외

**PopbillException**

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

## 11. AssignMgtKey - 문서번호 할당

팝빌 사이트를 통해 발행하여 문서번호가 할당되지 않은 세금계산서에 문서번호를 할당합니다.

```php
function AssignMgtKey($CorpNum, $MgtKeyType, $itemKey, $MgtKey, $UserID = null)
```

### 요청

**Parameters**

- CorpNum `type: String` `length: 10` `required: Y` `description: 팝빌회원 사업자번호 ('-' 제외)`
- MgtKeyType `type: ENumMgtKeyType` `length: -` `required: Y` `description: 문서번호 유형 (택 1)`
  - `SELL`: 매출
  - `BUY`: 매입
  - `TRUSTEE`: 위수탁
- itemKey `type: String` `length: 18` `required: Y` `description: 팝빌에서 할당한 식별번호`
  - 함수 [\[Search – 목록 조회\]](https://developers.popbill.com/reference/taxinvoice/php/api/info#Search)를 통하여 TaxinvoiceInfo의 'itemKey'를 확인
- MgtKey `type: String` `length: 24` `required: Y` `description: 파트너가 할당한 문서번호`
- UserID `type: String` `length: 50` `required: N` `description: 팝빌회원 아이디`

### 응답

**Response**

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

### 예외

**PopbillException**

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

## 12. ListEmailConfig - 알림메일 발송설정 조회

세금계산서 관련 메일 항목에 대한 발송설정을 확인합니다.

```php
function ListEmailConfig($CorpNum, $UserID = null)
```

### 요청

**Parameters**

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

### 응답

**TIEmailSendConfig\[ ]**

- emailType `type: String` `length: -` `description: 메일 전송 유형`
  - `TAX_ISSUE_INVOICER`: (정발행) 공급자에게 세금계산서가 발행 되었음을 알려주는 메일
  - `TAX_CHECK`: (정발행) 공급자에게 세금계산서가 수신확인 되었음을 알려주는 메일
  - `TAX_CANCEL_ISSUE`: (정발행) 공급받는자에게 세금계산서가 발행취소 되었음을 알려주는 메일
  - `TAX_REQUEST`: (역발행) 공급자에게 세금계산서를 전자서명 하여 발행을 요청하는 메일
  - `TAX_CANCEL_REQUEST`: (역발행) 공급자에게 역발행 요청이 취소 되었음을 알려주는 메일
  - `TAX_REFUSE`: (역발행) 공급받는자에게 세금계산서가 거부 되었음을 알려주는 메일
  - `TAX_REVERSE_ISSUE`: (역발행) 공급받는자에게 전자세금계산서 발행 사실을 안내하는 메일
  - `TAX_TRUST_ISSUE`: (위수탁 발행) 공급받는자에게 세금계산서가 발행 되었음을 알려주는 메일
  - `TAX_TRUST_ISSUE_TRUSTEE`: (위수탁 발행) 수탁자에게 세금계산서가 발행 되었음을 알려주는 메일
  - `TAX_TRUST_ISSUE_INVOICER`: (위수탁 발행) 공급자에게 세금계산서가 발행 되었음을 알려주는 메일
  - `TAX_TRUST_CANCEL_ISSUE`: (위수탁 발행) 공급받는자에게 세금계산서가 발행취소 되었음을 알려주는 메일
  - `TAX_TRUST_CANCEL_ISSUE_INVOICER`: (위수탁 발행) 공급자에게 세금계산서가 발행취소 되었음을 알려주는 메일
  - `TAX_CLOSEDOWN`: (처리결과) 거래처의 휴폐업 여부를 확인하여 안내하는 메일
  - `TAX_NTSFAIL_INVOICER`: (처리결과) 세금계산서 국세청 전송실패를 안내하는 메일
  - `ETC_CERT_EXPIRATION`: (정기발송) 팝빌에 등록된 인증서의 만료예정을 안내하는 메일
- sendYN `type: Boolean` `length: -` `description: 전송 여부`
  - `true`: 전송
  - `false`: 미전송

### 예외

**PopbillException**

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

## 13. UpdateEmailConfig - 알림메일 발송설정 수정

세금계산서 관련 메일 항목에 대한 발송설정을 수정합니다.

```php
function UpdateEmailConfig($corpNum, $emailType, $sendYN, $userID = null)
```

### 요청

**Parameters**

- corpNum `type: String` `length: 10` `required: Y` `description: 팝빌회원 사업자번호 ('-' 제외)`
- emailType `type: String` `length: -` `required: Y` `description: 메일 전송 유형 (택 1)`
  - `TAX_ISSUE_INVOICER`: (정발행) 공급자에게 전자세금계산서 발행 사실을 안내하는 메일
  - `TAX_CHECK`: (정발행) 공급자에게 전자세금계산서 수신확인 사실을 안내하는 메일
  - `TAX_CANCEL_ISSUE`: (정발행) 공급받는자에게 전자세금계산서 발행취소 사실을 안내하는 메일
  - `TAX_REQUEST`: (역발행) 공급자에게 전자세금계산서 발행을 요청하는 메일
  - `TAX_CANCEL_REQUEST`: (역발행) 공급자에게 역발행 요청이 취소 되었음을 알려주는 메일
  - `TAX_REFUSE`: (역발행) 공급받는자에게 전자세금계산서 거부 사실을 안내하는 메일
  - `TAX_REVERSE_ISSUE`: (역발행) 공급받는자에게 전자세금계산서 발행 사실을 안내하는 메일
  - `TAX_TRUST_ISSUE`: (위수탁 발행) 공급받는자에게 전자세금계산서 발행 사실을 안내하는 메일
  - `TAX_TRUST_ISSUE_TRUSTEE`: (위수탁 발행) 수탁자에게 전자세금계산서 발행 사실을 안내하는 메일
  - `TAX_TRUST_ISSUE_INVOICER`: (위수탁 발행) 공급자에게 전자세금계산서 발행 사실을 안내하는 메일
  - `TAX_TRUST_CANCEL_ISSUE`: (위수탁 발행) 공급받는자에게 전자세금계산서 발행취소 사실을 안내하는 메일
  - `TAX_TRUST_CANCEL_ISSUE_INVOICER`: (위수탁 발행) 공급자에게 전자세금계산서 발행취소 사실을 안내하는 메일
  - `TAX_CLOSEDOWN`: (처리결과) 거래처의 휴폐업 여부를 확인하여 안내하는 메일
  - `TAX_NTSFAIL_INVOICER`: (처리결과) 전자세금계산서 국세청 전송실패를 안내하는 메일
  - `ETC_CERT_EXPIRATION`: (정기발송) 팝빌에 등록된 인증서의 만료예정을 안내하는 메일
- sendYN `type: Boolean` `length: -` `required: Y` `description: 메일 전송 여부`
  - `true`: 전송
  - `false`: 미전송
- userID `type: String` `length: 50` `required: N` `description: 팝빌회원 아이디`

### 응답

**Response**

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

### 예외

**PopbillException**

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

## 14. GetSendToNTSConfig - 국세청 전송 옵션 설정 상태 확인

연동회원의 국세청 전송 옵션 설정 상태를 확인합니다. [\[참고\] 팝빌 국세청 전송 정책](https://developers.popbill.com/guide/taxinvoice/introduction/policy-of-send-to-nts)

```php
function GetSendToNTSConfig($CorpNum, $UserID = null)
```

> 국세청 전송 옵션 설정은 팝빌 사이트 (https\://www\.popbill.com) 로그인 > 전자세금계산서 > 관리 > 환경설정 메뉴에서 설정할 수 있으며, API로 설정은 불가능 합니다.

### 요청

**Parameters**

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

### 응답

Boolean - true : (발행 즉시 전송) / false : (익일 자동 전송)

### 예외

**PopbillException**

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