# 비즈니스 채널 관리

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

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

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

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

```csharp
String GetPlusFriendMgtURL(String CorpNum, String UserID)
```

### 요청

**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 - 비즈니스 채널 목록 확인

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

```csharp
List<PlusFriend> ListPlusFriendID(String CorpNum, String UserID)
```

### 요청

**Parameters**

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

### 응답

**List\<PlusFriend>**

- plusFriendID `type: string` `length: 30` `description: 검색용 아이디`
- plusFriendName `type: string` `length: 100` `description: 채널명`
- regDT `type: string` `length: 14` `description: 등록일시`
  - 형식 : yyyyMMddHHmmss
- state `type: int` `length: 1` `description: 채널 상태`
  - `0`: 사용
  - `1`: 휴면
  - `2`: 차단
- stateDT `type: string` `length: 14` `description: 채널 상태 일시`
  - 형식 : yyyyMMddHHmmss
- bmsState `type: int?` `length: 1` `description: 브랜드 메시지 상태`
  - `1`: 심사중
  - `2`: 승인
  - `3`: 취소
  - 승인 상태의 경우 브랜드 메시지 전송대상 M, N 사용 가능
- bmsStateDT `type: string` `length: 14` `description: 브랜드 메시지 상태 일시`
  - 형식 : yyyyMMddHHmmss

### 예외

**PopbillException**

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