SaaS API전자계약 API
GET /ai/contract/{contractId}
계약서 상세 정보를 조회합니다.
계약서 상세 조회
계약서 상세 정보를 조회합니다. 크리에이터가 SENT 상태의 계약서를 최초 열람하면 자동으로 OPENED 상태로 변경됩니다.
| 항목 | 값 |
|---|---|
| 메서드 | GET |
| 경로 | /ai/contract/{contractId} |
| 인증 | Bearer Token (크리에이터) |
최초 열람 시 상태가 SENT → OPENED로 자동 변경되며, 감사 로그에 OPENED 이벤트가 기록됩니다.
요청
GET /ai/contract/1 HTTP/1.1
Host: api.glowb.com
Authorization: Bearer {access_token}curl -X GET "https://api.glowb.com/ai/contract/1" \
-H "Authorization: Bearer {access_token}"const response = await fetch('/ai/contract/1', {
headers: {
'Authorization': `Bearer ${accessToken}`,
},
});
const result = await response.json();Path Parameters
Prop
Type
응답
성공 응답 (200 OK)
{
"status": 200,
"code": null,
"message": "계약서 조회가 완료되었습니다.",
"data": {
"contractId": 1,
"applicationId": 101,
"status": "OPENED",
"campaignTitle": "여름 선크림 캠페인",
"collabNo": 123,
"contractTemplate": {
"title": "콘텐츠 제작 계약서",
"preamble": "본 계약은 갑과 을 사이에...",
"clauses": [
{
"number": 1,
"title": "계약의 목적",
"content": "본 계약은..."
}
]
},
"companyInfo": {
"companyName": "바이엇 주식회사",
"businessNumber": "265-81-02680",
"companyAddress": "서울특별시 중구 청계천로 40, 1302호 (다동, 한국관광공사 서울센터)",
"ceoName": "김동규"
},
"variableValues": {
"campaignName": "여름 선크림 캠페인",
"paymentAmount": "500000"
},
"stageName": null,
"realName": null,
"businessName": null,
"bankName": null,
"bankAccountNumber": null,
"accountHolderName": null,
"signerName": null,
"registrationNumber": null,
"address": null,
"representative": null,
"signatureImageUrl": null,
"signedPdfUrl": null,
"contractDate": null,
"sentAt": "2026-02-25T10:00:00",
"signedAt": null,
"createdAt": "2026-02-25T09:55:00"
}
}응답 필드
Prop
Type
크리에이터 입력 필드
Prop
Type
서명/PDF 결과
Prop
Type
CompanyInfo 객체
| 필드 | 타입 | 설명 |
|---|---|---|
companyName | string | 회사명 (바이엇 주식회사) |
businessNumber | string | 사업자등록번호 (265-81-02680) |
companyAddress | string | 회사 주소 |
ceoName | string | 대표자명 (김동규) |
에러 응답
계약서를 찾을 수 없음 (404)
{
"status": 404,
"code": "CONTRACT_NOT_FOUND",
"message": "계약서를 찾을 수 없습니다.",
"data": null
}접근 권한 없음 (403)
{
"status": 403,
"code": "CONTRACT_UNAUTHORIZED",
"message": "해당 계약서에 접근할 권한이 없습니다.",
"data": null
}