Skip to content

[Feature request] Allow custom memo for wallet balance updates #4155

Closed
DoktorShift/lnbits
#2

Description

@CabtonWithaK

Description

The /users/api/v1/balance endpoint currently allows an administrator to credit or debit a wallet by providing a wallet ID and an amount.

However, the resulting transaction always uses a generic memo:

Admin credit for positive balance updates
Admin debit for negative balance updates

It would be useful if the API allowed the caller to optionally provide a custom memo for the balance operation.

Proposed API

For example:

{
"id": "wallet_id",
"amount": 5000,
"memo": "Manual refund"
}

For a debit:

{
"id": "wallet_id",
"amount": -2500,
"memo": "Balance correction"
}

The supplied memo should then be used as the transaction memo.

For superusers, the debit/credit modal is extended so a memo can also be set in UI

Image

Backwards compatibility

The memo parameter should be optional. If no memo is provided, the current behaviour should remain unchanged:

Positive amount → Admin credit
Negative amount → Admin debit

Benefit

This would make balance adjustments much more useful for applications integrating with LNbits, as transactions could contain meaningful context instead of a generic Admin credit or Admin debit description.

Thanks!

Activity

  1. CabtonWithaK commented on Sep 8, 2026

    @CabtonWithaK
    Author

    wicked sick, this feature got implemented faster than an on chain transaction! thanks a lot @DoktorShift and @talvasconcelos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions