Main API비즈니스 API
GET /business/info
마이페이지 정보 조회
마이페이지 정보 조회
마이페이지에 표시할 기업 정보를 조회합니다.
| 항목 | 값 |
|---|---|
| 메서드 | GET |
| 경로 | /business/info |
| 인증 | 필요 |
요청
GET /business/info HTTP/1.1
Host: api.glowb.com
Authorization: Bearer eyJhbGciOiJIUzI1NiIs...curl "https://api.glowb.com/business/info" \
-H "Authorization: Bearer {access_token}"const response = await fetch('/business/info', {
headers: {
'Authorization': `Bearer ${accessToken}`
}
});
const info = await response.json();응답 (200 OK)
{
"status": 200,
"code": null,
"message": "기업 정보 조회 완료",
"data": {
"memberId": "facebook_business",
"businessName": "facebook",
"businessProfileImageUrl": "https://d3mp6eqt0w2808.cloudfront.net/img/profile/business/...",
"licenseFileName": "https://glowb-input.s3.../license/...",
"license": "1111123412314123",
"managerName": "facebook",
"tel": "01012341234",
"email": "facebook@gmail.com",
"remainCredit": 9876877,
"contractSignStatus": "SIGNED"
}
}data 필드
| 필드 | 타입 | 설명 |
|---|---|---|
memberId | String | 기업 회원 ID |
businessName | String | 기업명 |
businessProfileImageUrl | String | 프로필 이미지 URL (없으면 null) |
licenseFileName | String | 사업자등록증 파일 URL (없으면 null) |
license | String | 사업자등록번호 |
managerName | String | 담당자명 (없으면 null) |
tel | String | 연락처 (없으면 null) |
email | String | 이메일 |
remainCredit | Integer | 잔여 크레딧 |
contractSignStatus | String | 기업 서비스 이용 계약 상태 — NONE / SIGNED / EXCEPTION |
contractSignStatus 값
| 값 | 의미 | 캠페인 생성 |
|---|---|---|
NONE | 서명된 계약 없음 — 마이페이지에서 계약서 작성 모달 표시 | ❌ 차단 |
SIGNED | 서명 완료 | ✅ 가능 |
EXCEPTION | 관리자 지정 예외 계정 (계약 없이 사용 가능) | ✅ 가능 |
프론트에서 마이페이지 계약서 작성 모달 표시 여부는
/ai/business/contract/mypage의 빈 리스트 여부가 아니라 본 필드(contractSignStatus) 값으로 판단해야 합니다. EXCEPTION 기업은 계약 레코드가 없어도 모달을 띄우면 안 됩니다.