See also the Transaction response object.

This functionality is specific to Braintree Marketplace merchants.

gateway.transaction.releaseFromEscrow("transaction_id", function(err, result) {

If the transaction can't be found, it will return a notFoundError.

When you release a Braintree Marketplace transaction's funds from escrow, we'll disburse the service fee less any processing fees to the master merchant account and the remaining funds to the sub-merchant. This occurs on the business day after you submit the release request.

The escrowStatus of a transaction must be held before its funds can be released from escrow.

transactionId required, String

The id of the transaction you want to release from escrow.