मुख्य सामग्री पर जाएं
POST
JavaScript

प्राधिकरण

Authorization
string
header
आवश्यक

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

पथ पैरामीटर

credit_entitlement_id
string
आवश्यक

Credit Entitlement ID

customer_id
string
आवश्यक

Customer ID

बॉडी

application/json

Request to create a ledger entry (credit or debit)

amount
string
आवश्यक

Amount to credit or debit

entry_type
enum<string>
आवश्यक

Entry type: credit or debit

उपलब्ध विकल्प:
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

प्रतिक्रिया

Ledger entry created successfully

Response for creating a ledger entry

amount
string
आवश्यक
balance_after
string
आवश्यक
balance_before
string
आवश्यक
created_at
string<date-time>
आवश्यक
credit_entitlement_id
string
आवश्यक
customer_id
string
आवश्यक
entry_type
enum<string>
आवश्यक
उपलब्ध विकल्प:
credit,
debit
id
string
आवश्यक
is_credit
boolean
आवश्यक
overage_after
string
आवश्यक
overage_before
string
आवश्यक
grant_id
string | null
reason
string | null
अंतिम संशोधन 1 अप्रैल 2026