Pular para o conteúdo principal
POST
JavaScript

Autorizações

Authorization
string
header
obrigatório

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

Parâmetros de caminho

credit_entitlement_id
string
obrigatório

Credit Entitlement ID

customer_id
string
obrigatório

Customer ID

Corpo

application/json

Request to create a ledger entry (credit or debit)

amount
string
obrigatório

Amount to credit or debit

entry_type
enum<string>
obrigatório

Entry type: credit or debit

Opções disponíveis:
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

Resposta

Ledger entry created successfully

Response for creating a ledger entry

amount
string
obrigatório
balance_after
string
obrigatório
balance_before
string
obrigatório
created_at
string<date-time>
obrigatório
credit_entitlement_id
string
obrigatório
customer_id
string
obrigatório
entry_type
enum<string>
obrigatório
Opções disponíveis:
credit,
debit
id
string
obrigatório
is_credit
boolean
obrigatório
overage_after
string
obrigatório
overage_before
string
obrigatório
grant_id
string | null
reason
string | null
Última modificação em 1 de abril de 2026