Credit Entitlements
Tạo mục sổ cái
Tạo một mục sổ cái để ghi có hoặc ghi nợ số dư của khách hàng
POST
JavaScript
Documentation Index
Fetch the complete documentation index at: https://docs.dodopayments.com/llms.txt
Use this file to discover all available pages before exploring further.
Ủy quyền
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Tham số đường dẫn
Credit Entitlement ID
Customer ID
Nội dung
application/json
Request to create a ledger entry (credit or debit)
Amount to credit or debit
Entry type: credit or debit
Tùy chọn có sẵn:
credit, debit Expiration for credited amount (only for credit type)
Idempotency key to prevent duplicate entries
Optional metadata (max 50 key-value pairs, key max 40 chars, value max 500 chars)
Human-readable reason for the entry
Phản hồi
Ledger entry created successfully
Response for creating a ledger entry
Tùy chọn có sẵn:
credit, debit Last modified on March 2, 2026
JavaScript