Skip to main content
POST
JavaScript

Autorizaciones

Authorization
string
header
requerido

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

Parámetros de ruta

credit_entitlement_id
string
requerido

Credit Entitlement ID

customer_id
string
requerido

Customer ID

Cuerpo

application/json

Request to create a ledger entry (credit or debit)

amount
string
requerido

Amount to credit or debit

entry_type
enum<string>
requerido

Entry type: credit or debit

Opciones disponibles:
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

Respuesta

Ledger entry created successfully

Response for creating a ledger entry

amount
string
requerido
balance_after
string
requerido
balance_before
string
requerido
created_at
string<date-time>
requerido
credit_entitlement_id
string
requerido
customer_id
string
requerido
entry_type
enum<string>
requerido
Opciones disponibles:
credit,
debit
id
string
requerido
is_credit
boolean
requerido
overage_after
string
requerido
overage_before
string
requerido
grant_id
string | null
reason
string | null
Última modificación el 1 de abril de 2026