> For the complete documentation index, see [llms.txt](https://docs.mythmc.ovh/banco/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mythmc.ovh/banco/development/depositing-or-withdrawing-from-an-account.md).

# Depositing or withdrawing from an account

You can deposit or withdraw a specific amount of money from account by using banco's AccountManager:

```java
...

public void testDeposit(final @NotNull UUID playerUuid) {
    BigDecimal amount = BigDecimal.valueOf(1.5);
    
    // First, we'll get player's account
    Account account = Banco.get().getAccountManager().get(playerUuid);
    if (account == null)
        return;
        
    // Then we can deposit money by using deposit(account, amount)
    Banco.get().getAccountManager().deposit(account, amount);
}

public void testWithdraw(final @NotNull UUID playerUuid) {
    BigDecimal amount = BigDecimal.valueOf(1.5);
    
    // First, we'll get player's account
    Account account = Banco.get().getAccountManager().get(playerUuid);
    if (account == null)
        return;
        
    // Then we can withdraw money by using withdraw(account, amount)
    Banco.get().getAccountManager().withdraw(account, amount);
}
```
