Skip to main content
POST
JavaScript

인증

Authorization
string
header
필수

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

경로 매개변수

credit_entitlement_id
string
필수

Credit Entitlement ID

customer_id
string
필수

Customer ID

본문

application/json

Request to create a ledger entry (credit or debit)

amount
string
필수

Amount to credit or debit

entry_type
enum<string>
필수

Entry type: credit or debit

사용 가능한 옵션:
credit,
debit
expires_at
string<date-time> | null

Expiration for credited amount (only for credit type)

idempotency_key
string | null

Idempotency key to prevent duplicate entries

metadata
null | Metadata · object

Optional metadata (max 50 key-value pairs, key max 40 chars, value max 500 chars)

reason
string | null

Human-readable reason for the entry

응답

Ledger entry created successfully

Response for creating a ledger entry

amount
string
필수
balance_after
string
필수
balance_before
string
필수
created_at
string<date-time>
필수
credit_entitlement_id
string
필수
customer_id
string
필수
entry_type
enum<string>
필수
사용 가능한 옵션:
credit,
debit
id
string
필수
is_credit
boolean
필수
overage_after
string
필수
overage_before
string
필수
grant_id
string | null
reason
string | null
마지막 수정일 2026년 4월 1일