API

영수증 조회

작성일 2026.04.23 | 수정일 2026.04.29

GET/crm-core/v1/plans/me/receipts/{logId}

결제 로그 1건과 연결된 과금 스냅샷을 조합한 영수증을 반환합니다. overageOnly=true면 초과 요금만 골라 별도 영수증으로 재계산합니다(VAT 포함가 → 공급가액·부가세 역산).

Path Params

NameTypeRequiredDescription
logIdstring*결제 로그 ID

Query Params

NameTypeRequiredDescription
overageOnlystringtrue면 초과 요금만 명세 (subtotal/tax 재계산)

Response

NameTypeRequiredDescription
logobject*결제 로그 (BillingLogResponseDto, 18 필드)
snapshotobject | null연결된 과금 스냅샷 (있는 경우)
overageOnlyboolean*응답이 초과 요금 전용 모드인지 여부
receiptobject초과 요금 영수증 명세 (overageOnly=true 일 때만)
itemsarray<object>*초과 라인 아이템 목록
subtotalnumber*공급가액
taxAmountnumber*부가세
totalChargenumber*총 결제 금액

Structure

코드 예제

const crypto = require('crypto');

const apiKey = 'NCSXXXXXXXXXXXXX';
const apiSecret = 'YOUR_API_SECRET';
const dateTime = new Date().toISOString();
const salt = crypto.randomBytes(16).toString('hex');
const signature = crypto.createHmac('sha256', apiSecret).update(dateTime + salt).digest('hex');
const authHeader = HMAC-SHA256 apiKey=${apiKey}, date=${dateTime}, salt=${salt}, signature=${signature};

const response = await fetch('https://api.solapi.com/crm-core/v1/plans/me/receipts/CRMSBL_240401_001?overageOnly=false', {
method: 'GET',
headers: { 'Authorization': authHeader, 'Content-Type': 'application/json' }
});
const data = await response.json();

import hmac, hashlib, secrets, requests
from datetime import datetime, timezone

api_key = 'NCSXXXXXXXXXXXXX'
api_secret = 'YOUR_API_SECRET'
date_time = datetime.now(timezone.utc).strftime('%Y-%m-%dT%H:%M:%SZ')
salt = secrets.token_hex(16)
signature = hmac.new(api_secret.encode(), (date_time + salt).encode(), hashlib.sha256).hexdigest()
auth_header = f'HMAC-SHA256 apiKey={api_key}, date={date_time}, salt={salt}, signature={signature}'

response = requests.get('https://api.solapi.com/crm-core/v1/plans/me/receipts/CRMSBL_240401_001?overageOnly=false', headers={
'Authorization': auth_header,
'Content-Type': 'application/json'
}, params={
"overageOnly": "false"
})
data = response.json()

API_KEY="NCSXXXXXXXXXXXXX"
API_SECRET="YOUR_API_SECRET"
DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
SALT=$(openssl rand -hex 16)
SIGNATURE=$(echo -n "${DATE}${SALT}" | openssl dgst -sha256 -hmac "${API_SECRET}" | awk '{print $NF}')
AUTH="HMAC-SHA256 apiKey=${API_KEY}, date=${DATE}, salt=${SALT}, signature=${SIGNATURE}"

curl -X GET 'https://api.solapi.com/crm-core/v1/plans/me/receipts/CRMSBL_240401_001?overageOnly=false' \
-H "Authorization: ${AUTH}" \
-H "Content-Type: application/json"

lightbulb

영수증의 모든 금액은 **VAT 포함가** 기준이며, `receipt`의 `subtotal`/`taxAmount`는 `splitVatInclusive(total)` 로 역산된 값입니다.

lightbulb

**401 응답**: `{ "errorCode": "Unauthorized", "errorMessage": "권한이 없습니다." }`