BankAccount bankAccount =  Marketplace.mine().owner_customer.bank_accounts.query().first();
HashMap<String, Object> payload = new HashMap<String, Object>();
payload.put("amount", 2000);
payload.put("description", "Credit from order escrow to marketplace bank account");
Credit credit = bankAccount.credit(payload);

BankAccount marketplaceAccount =  Marketplace.mine().owner_customer.bank_accounts.query().first();

HashMap<String, Object> payload = new HashMap<String, Object>();
payload.put("amount", 2000);
payload.put("description", "Credit from order escrow to marketplace bank account");

Credit credit = order.creditTo(marketplaceAccount, payload);
Edit order-credit-marketplace