Webhook Payloads
신용 기반 청구
신용 기반 청구 이벤트가 발생할 때 가상 크레딧(API 호출, 토큰, 컴퓨트 시간)의 부여, 소비, 만료, 이월 또는 잔액 알림 등 웹훅 엔드포인트로 전송되는 페이로드입니다. 이 웹훅은 Customer Wallets(금전적 잔액)과 관련이 없습니다.
신용 기반 청구 웹훅 이벤트
다음 웹훅 이벤트는 가상 크레딧 권한(API 호출, 토큰, 컴퓨트 시간)의 수명 주기 변화를 추적하는 데 사용됩니다. 이 이벤트는 Customer Wallets(금전적 잔액)과 관련이 없습니다.원장 이벤트
모든 원장 이벤트(credit.added부터 credit.manual_adjustment까지)는 아래 스키마에 문서화된 동일한 CreditLedgerEntryResponse 페이로드를 공유합니다.
저잔액 이벤트 (credit.balance_low)
해당 이벤트는 임계값 알림에 중점을 둔 다른 페이로드(CreditBalanceLowPayload)를 사용합니다:
string
이 크레딧 entitlement가 속한 브랜드입니다.
string
크레딧 잔액으로 인해 알림이 트리거된 고객입니다.
string
이 크레딧 entitlement와 연결된 구독입니다.
string
잔액이 부족한 크레딧 entitlement입니다.
string
크레딧 entitlement의 표시 이름입니다.
string
알림이 발생한 시점의 현재 크레딧 잔액입니다.
string
이 구독에 대해 결제 주기마다 발행되는 총 크레딧입니다.
integer
구성된 잔액 부족 임계값 백분율입니다.
string
임계값에 해당하는 절대 크레딧 금액입니다.
Proactive Alerts에 credit.balance_low 사용
크레딧이 소진되기 전에 고객에게 알림을 보내려면 credit.balance_low webhook을 사용하세요:
Get Customer Balance
API를 통해 고객의 현재 잔액을 확인합니다.
Create Ledger Entry
고객의 잔액에 수동으로 크레딧을 추가하거나 차감합니다.
Webhook Payload Schema
Response for a ledger entry
Brand id this credit ledger entry belongs to
Metadata associated with the credit grant's source (the subscription or payment created at checkout). Empty when the grant has no resolvable source (e.g. credits granted directly via the API).
사용 가능한 옵션:
credit_added, credit_deducted, credit_expired, credit_rolled_over, rollover_forfeited, overage_charged, overage_reset, auto_top_up, manual_adjustment, refund 마지막 수정일 2026년 8월 6일