# 비즈니스 채널 관리

## 1. GetPlusFriendMgtURL - 비즈니스 채널 등록 팝업 URL

![비즈니스 채널 등록 팝업 URL 미리보기](https://developers.popbill.com/images/reference/kakaotalk/getPlustFriendMgtURL.png)

**비즈니스 채널을 등록하는 팝업 URL을 반환합니다.**

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

```pb
function string getPlusFriendMgtURL(string corpnum, string userid) throws popbillexception
```

### 요청

**Parameters**

- corpnum `type: string` `length: 10` `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. ListPlusFriendID - 비즈니스 채널 목록 확인

팝빌에 등록한 연동회원의 비즈니스 채널 목록을 확인합니다.

```pb
subroutine listplusfriendid(string corpnum, ref plusfriend ref_list[]) throws popbillexception
```

### 요청

**Parameters**

- corpnum `type: string` `length: 10` `required: Y` `description: 팝빌회원 사업자번호 ('-' 제외)`
- ref\_list `type: ref PlusFriend[ ]` `length: -` `required: Y` `description: 서브루틴 반환 결과값`
  - plusFriendID `type: string` `length: 30` `required: N` `description: 검색용 아이디`
  - plusFriendName `type: string` `length: 100` `required: N` `description: 채널명`
  - regDT `type: string` `length: 14` `required: N` `description: 등록일시`
    - 형식 : yyyyMMddHHmmss
  - state `type: string` `length: 1` `required: N` `description: 채널 상태`
    - `0`: 사용
    - `1`: 휴면
    - `2`: 차단
  - stateDT `type: string` `length: 14` `required: N` `description: 채널 상태 일시`
    - 형식 : yyyyMMddHHmmss

### 응답

plusfriend\[ ] - 요청 파라미터의 `ref_list` 확인

### 예외

**PopbillException**

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