# 보기/인쇄

## 1. GetPopUpURL - 현금영수증 팝업 URL

![현금영수증 팝업 URL 미리보기](https://developers.popbill.com/images/reference/cashbill/getPopUpURL.png)

**현금영수증 1건의 팝업 URL을 반환합니다.**

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

```pb
function string getpopupurl(string corpnum, string mgtkey, string userid) throws popbillexception
```

### 요청

**Parameters**

- corpnum `type: string` `length: 10` `required: Y` `description: 팝빌회원 사업자번호 ('-' 제외)`
- mgtkey `type: string` `length: 24` `required: Y` `description: 파트너가 할당한 문서번호`
- userid `type: string` `length: 50` `required: N` `description: 팝빌회원 아이디`

### 응답

string - 요청에 대한 응답 URL

### 예외

**PopbillException**

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

## 2. GetViewURL - 현금영수증 팝업 URL \[보기 전용]

![현금영수증 팝업 URL \[보기 전용\] 미리보기](https://developers.popbill.com/images/reference/cashbill/getViewURL.png)

**현금영수증 1건의 팝업 URL을 반환합니다.**

- 권장 사이즈 : width = 680px / height = 750px
- 페이지 하단에 기능 버튼이 존재하지 않습니다.
- 반환되는 URL은 30초 동안만 사용이 가능합니다.
- 반환되는 URL에서만 유효한 세션을 포함하고 있습니다.

```pb
function string getviewurl(string corpnum, string mgtkey, string userid) throws popbillexception
```

### 요청

**Parameters**

- corpnum `type: string` `length: 10` `required: Y` `description: 팝빌회원 사업자번호 ('-' 제외)`
- mgtkey `type: string` `length: 24` `required: Y` `description: 파트너가 할당한 문서번호`
- userid `type: string` `length: 50` `required: N` `description: 팝빌회원 아이디`

### 응답

string - 요청에 대한 응답 URL

### 예외

**PopbillException**

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

## 3. GetPrintURL - 인쇄 팝업 URL

![인쇄 팝업 URL 미리보기](https://developers.popbill.com/images/reference/cashbill/getPrintURL.png)

**현금영수증 1건의 인쇄 팝업 URL을 반환합니다.**

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

```pb
function string getprinturl(string corpnum, string mgtkey, string userid) throws popbillexception
```

### 요청

**Parameters**

- corpnum `type: string` `length: 10` `required: Y` `description: 팝빌회원 사업자번호 ('-' 제외)`
- mgtkey `type: string` `length: 24` `required: Y` `description: 파트너가 할당한 문서번호`
- userid `type: string` `length: 50` `required: N` `description: 팝빌회원 아이디`

### 응답

string - 요청에 대한 응답 URL

### 예외

**PopbillException**

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

## 4. GetMassPrintURL - 다건 인쇄 팝업 URL

![다건 인쇄 팝업 URL 미리보기](https://developers.popbill.com/images/reference/cashbill/getMassPrintURL.png)

**현금영수증 다건의 인쇄 팝업 URL을 반환합니다.**

- 권장 사이즈 : width = 820px / height = 725px
- 1회 호출에 최대 100건까지 인쇄가 가능합니다.
- 반환되는 URL은 30초 동안만 사용이 가능합니다.
- 반환되는 URL에서만 유효한 세션을 포함하고 있습니다.

```pb
function string getmassprinturl(string corpnum, string mgtkeylist[], string userid) throws popbillexception
```

### 요청

**Parameters**

- corpnum `type: string` `length: 10` `required: Y` `description: 팝빌회원 사업자번호 ('-' 제외)`
- mgtkeylist `type: string[ ]` `length: 100` `required: Y` `description: 문서번호 목록`
  - 최대 : 100건
- userid `type: string` `length: 50` `required: N` `description: 팝빌회원 아이디`

### 응답

string - 요청에 대한 응답 URL

### 예외

**PopbillException**

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

## 5. GetMailURL - 메일 보기 팝업 URL

![메일 보기 팝업 URL 미리보기](https://developers.popbill.com/images/reference/cashbill/getMailURL.png)

**현금영수증 발행 안내 메일의 ‘보기’ 버튼 URL을 반환합니다.**

- 권장 사이즈 : width = 680px / height = 750px
- 반환되는 URL은 유효기간 제한 없이 사용할 수 있습니다.
- 반환되는 URL에서만 유효한 세션을 포함하고 있습니다.

```pb
function string getmailurl(string corpnum, string mgtkey, string userid) throws popbillexception
```

### 요청

**Parameters**

- corpnum `type: string` `length: 10` `required: Y` `description: 팝빌회원 사업자번호 ('-' 제외)`
- mgtkey `type: string` `length: 24` `required: Y` `description: 파트너가 할당한 문서번호`
- userid `type: string` `length: 50` `required: N` `description: 팝빌회원 아이디`

### 응답

string - 요청에 대한 응답 URL

### 예외

**PopbillException**

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

## 6. GetPDFURL - PDF 다운로드 URL

현금영수증 1건의 PDF 파일 다운로드 URL을 반환합니다.

- 반환되는 URL은 30초 동안만 사용이 가능합니다.

```pb
function string getpdfurl(string corpnum, string mgtkey, string userid) throws popbillexception
```

### 요청

**Parameters**

- corpnum `type: string` `length: 10` `required: Y` `description: 팝빌회원 사업자번호 ('-' 제외)`
- mgtkey `type: string` `length: 24` `required: Y` `description: 파트너가 할당한 문서번호`
- userid `type: string` `length: 50` `required: N` `description: 팝빌회원 아이디`

### 응답

string - 요청에 대한 응답 URL

### 예외

**PopbillException**

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