| Field | Type | Required | Description |
|---|---|---|---|
amount |
long | ✔️ | The credit amount in cents. Must be greater than zero. |
action |
Action | ✔️ | Whether to increase or decrease the credit balance. |
currency |
Optional<String> | ➖ | The currency code (e.g. "USD"). Defaults to USD if not provided. |
idempotencyKey |
String | ✔️ | A unique key to ensure the adjustment is applied only once. Repeated requests with the same key return the original ledger entry. |
note |
Optional<String> | ➖ | An optional note to attach to the ledger entry. |