Skip to main content
POST
JavaScript

Autorisierungen

Authorization
string
header
erforderlich

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

Pfadparameter

credit_entitlement_id
string
erforderlich

Credit Entitlement ID

customer_id
string
erforderlich

Customer ID

Body

application/json

Request to create a ledger entry (credit or debit)

amount
string
erforderlich

Amount to credit or debit

entry_type
enum<string>
erforderlich

Entry type: credit or debit

Verfügbare Optionen:
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

Antwort

Ledger entry created successfully

Response for creating a ledger entry

amount
string
erforderlich
balance_after
string
erforderlich
balance_before
string
erforderlich
created_at
string<date-time>
erforderlich
credit_entitlement_id
string
erforderlich
customer_id
string
erforderlich
entry_type
enum<string>
erforderlich
Verfügbare Optionen:
credit,
debit
id
string
erforderlich
is_credit
boolean
erforderlich
overage_after
string
erforderlich
overage_before
string
erforderlich
grant_id
string | null
reason
string | null
Zuletzt geändert am 1. April 2026