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日