Glowb Dev Docs
SaaS API견적서

POST /ai/business/quotations

견적서 발급 — 번호 발급·재발행 판정, PDF 업로드 URL

견적서 발급

다운로드 버튼을 누르면 호출합니다. 같은 견적서가 있으면 그 번호·내용을 그대로 돌려주고(reused: true), 아니면 새 번호 또는 새 버전(-vN)으로 발행합니다. 규칙은 견적서 개요 페이지를 봅니다. 어느 경우든 PDF 업로드 URL 을 함께 줍니다 — 언어를 바꿔 다시 받을 때도 같은 번호로 다시 그려 올립니다.

항목값
메서드POST
경로/ai/business/quotations
인증기업

요청

필드타입필수설명
typeString예SIMPLE / CAMPAIGN / DETAIL
collabNoInteger조건DETAIL 은 필수. CAMPAIGN 은 생성한 캠페인을 고를 때만
simpleRowsArray조건SIMPLE 일 때. creatorCountry(String), budget(원, VAT 별도)
campaignObject조건CAMPAIGN 캠페인 생성 전일 때(아래)

campaign(캠페인 생성 전 입력) — 캠페인 생성 폼과 같은 값 형식을 씁니다. 같은 값으로 캠페인을 만들면 이 견적서에 연결됩니다.

필드타입필수설명
campaignNameString아니오캠페인명
snsTypeString예INSTAGRAM 등
snsContentFormatString아니오INSTAGRAM_REELS 등. 캠페인 연결에 쓰이므로 보내는 것을 권장
nationString아니오캠페인 진행 국가
creatorTargetCountryString예ISO 2자리(KR). 비우면 nation 으로 채운다
headcountInteger예예상 인원
budgetLong예예산(원, VAT 별도)
secondaryUsageMonthsInteger아니오2차 활용 기간(개월), -1 은 영구

최소 예산(크리에이터 국가 기준) 검증은 프론트가 합니다. 서버는 필수값만 확인합니다.

{
  "type": "CAMPAIGN",
  "campaign": {
    "campaignName": "[qabrand] 세럼 캠페인",
    "snsType": "INSTAGRAM",
    "snsContentFormat": "INSTAGRAM_REELS",
    "nation": "북미",
    "creatorTargetCountry": "KR",
    "headcount": 2,
    "budget": 700000,
    "secondaryUsageMonths": 3
  }
}

응답 (200 OK)

{
  "status": 200,
  "code": null,
  "message": "발급 완료",
  "data": {
    "reused": false,
    "quotation": {
      "quotationNo": "Q-C-20261027-001",
      "baseNo": "Q-C-20261027-001",
      "version": 1,
      "type": "CAMPAIGN",
      "collabNo": null,
      "refQuotationNo": null,
      "issuedAt": "2026-10-27T16:40:00",
      "validUntil": "2026-11-10",
      "expired": false,
      "supplyAmount": 700000,
      "vatAmount": 70000,
      "totalAmount": 770000,
      "content": { "type": "CAMPAIGN", "recipient": { "businessName": "큐에이브랜드", "address1": "...", "address2": "..." }, "campaign": { "...": "..." } },
      "pdfUrl": null,
      "lang": null
    },
    "upload": {
      "uploadUrl": "https://glowb-input.s3...&X-Amz-Signature=...",
      "publicUrl": "https://glowb-input.s3.ap-southeast-1.amazonaws.com/quotation/biz1/Q-C-20261027-001/1793087000000.pdf"
    }
  }
}

content 구조

종류필드
공통type, recipient(businessName, address1, address2 — 계정 정보)
SIMPLErows(creatorCountry, budget)
CAMPAIGNcampaign(campaignName, snsType, snsContentFormat, nation, creatorTargetCountry, headcount, budget, secondaryUsageMonths). 비어 있는 선택 항목은 null — PDF 내역에서 빼고 그린다
DETAILcampaign(campaignName, snsType, snsContentFormat, creatorTargetCountry, secondaryUsageMonths), showPrice, items(applicationId, creatorName, handle, amount), selectedCount, selectedTotal, operatingFee, budget, overBudget

세부 견적서(DETAIL):

  • items[].amount 는 선정으로 차감된 크리에이터별 금액입니다. showPrice 가 false 면 amount 를 빼고 내려옵니다 — 크리에이터별 행 대신 합산 한 줄(selectedTotal, 계정명 나열)로 그립니다.
  • operatingFee 는 실제로 걸린 착수금 금액입니다(0 이면 운영 수수료 행 없음). 공급가액 = selectedTotal + operatingFee.
  • budget 은 캠페인 최초 입금액(착수금 판정과 같은 기준), overBudget 이면 비고에 "예산을 초과한 금액은 보유 크레딧에서 차감되었습니다." 를 넣습니다.
  • refQuotationNo 는 기준 캠페인 견적번호(없으면 null)입니다.

에러 응답

코드HTTP설명
QUOTATION_INPUT_REQUIRED400필수 입력 누락. args.field 에 빠진 항목(simpleRows, budget, snsType, creatorTargetCountry, headcount, collabNo 등)
CAMPAIGN_CREATOR_TARGET_COUNTRY_INVALID400크리에이터 국가가 국가 코드로 바뀌지 않음
QUOTATION_SELECTION_REQUIRED400DETAIL 인데 크리에이터 선정 전
CAMPAIGN_NOT_FOUND404캠페인 없음
CAMPAIGN_NOT_OWNED403호출 기업이 볼 수 없는 캠페인

On this page