Webhook Payloads
신용 기반 청구
신용 기반 청구 이벤트가 발생할 때 가상 크레딧(API 호출, 토큰, 컴퓨트 시간)의 부여, 소비, 만료, 이월 또는 잔액 알림 등 웹훅 엔드포인트로 전송되는 페이로드입니다. 이 웹훅은 Customer Wallets(금전적 잔액)과 관련이 없습니다.
신용 기반 청구 웹훅 이벤트
다음 웹훅 이벤트는 가상 크레딧 권한(API 호출, 토큰, 컴퓨트 시간)의 수명 주기 변화를 추적하는 데 사용됩니다. 이 이벤트는 Customer Wallets(금전적 잔액)과 관련이 없습니다.원장 이벤트
모든 원장 이벤트(credit.added부터 credit.manual_adjustment까지)는 아래 스키마에 문서화된 동일한 CreditLedgerEntryResponse 페이로드를 공유합니다.
저잔액 이벤트 (credit.balance_low)
해당 이벤트는 임계값 알림에 중점을 둔 다른 페이로드(CreditBalanceLowPayload)를 사용합니다:
string
크레딧 잔액으로 인해 알림이 발생한 고객입니다.
string
이 크레딧 권한과 연결된 구독입니다.
string
잔액이 낮은 크레딧 권한입니다.
string
크레딧 권한의 표시 이름입니다.
string
알림 발생 시점의 현재 크레딧 잔액입니다.
string
이 구독의 청구 주기마다 발행되는 전체 크레딧입니다.
integer
설정된 저잔액 임계값 백분율입니다.
string
임계값에 해당하는 절대 크레딧 금액입니다.
사전 알림을 위한 credit.balance_low 사용
고객이 크레딧이 소진되기 전에 알림을 보내려면 credit.balance_low 웹훅을 사용하세요:
Get Customer Balance
API를 통해 고객의 현재 잔액을 확인하세요.
Create Ledger Entry
고객 잔액을 수동으로 충전하거나 차감하세요.
웹훅 페이로드 스키마
웹훅 페이로드 스키마
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년 7월 9일