Skip to main content
POST
JavaScript

Autorizzazioni

Authorization
string
header
obbligatorio

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

Parametri del percorso

credit_entitlement_id
string
obbligatorio

Credit Entitlement ID

customer_id
string
obbligatorio

Customer ID

Corpo

application/json

Request to create a ledger entry (credit or debit)

amount
string
obbligatorio

Amount to credit or debit

entry_type
enum<string>
obbligatorio

Entry type: credit or debit

Opzioni disponibili:
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

Risposta

Ledger entry created successfully

Response for creating a ledger entry

amount
string
obbligatorio
balance_after
string
obbligatorio
balance_before
string
obbligatorio
created_at
string<date-time>
obbligatorio
credit_entitlement_id
string
obbligatorio
customer_id
string
obbligatorio
entry_type
enum<string>
obbligatorio
Opzioni disponibili:
credit,
debit
id
string
obbligatorio
is_credit
boolean
obbligatorio
overage_after
string
obbligatorio
overage_before
string
obbligatorio
grant_id
string | null
reason
string | null
Ultima modifica il 1 aprile 2026