See also the MerchantAccount response object.

availability

This method is only supported for merchants using Braintree Auth.

Java
Copy
Copied
MerchantAccountRequest request = new MerchantAccountRequest().currency("USD");
BraintreeGateway gateway = new BraintreeGateway(merchantAccessToken);
Result<MerchantAccount> result = gateway.merchantAccount().createForCurrency(request);

if (result.isSuccess()) {
  System.out.println(result.getTarget().getCurrencyIsoCode());
}

If called with an unsupported currency, returns a validation error. For more information see currency support.

Parameters
.currency(…) required, string

Currency code of a supported currency. See the ISO 4217 codes.

.id(…) string

The ID of the merchant account, referenced when creating transactions.

See also

Still have questions?

If you can’t find an answer, contact our Support team