Skip to main content
POST
JavaScript

Auktoriseringar

Authorization
string
header
obligatorisk

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

Sökvägsparametrar

credit_entitlement_id
string
obligatorisk

Credit Entitlement ID

customer_id
string
obligatorisk

Customer ID

Kropp

application/json

Request to create a ledger entry (credit or debit)

amount
string
obligatorisk

Amount to credit or debit

entry_type
enum<string>
obligatorisk

Entry type: credit or debit

Tillgängliga alternativ:
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

Svar

Ledger entry created successfully

Response for creating a ledger entry

amount
string
obligatorisk
balance_after
string
obligatorisk
balance_before
string
obligatorisk
created_at
string<date-time>
obligatorisk
credit_entitlement_id
string
obligatorisk
customer_id
string
obligatorisk
entry_type
enum<string>
obligatorisk
Tillgängliga alternativ:
credit,
debit
id
string
obligatorisk
is_credit
boolean
obligatorisk
overage_after
string
obligatorisk
overage_before
string
obligatorisk
grant_id
string | null
reason
string | null
Senast ändrad 1 april 2026