Update funding account

> **Important:** You can't update the details of a funding account that is associated with a processing account. Use this method to update the details of a funding account that is associated with a funding recipient. To update a funding account, you need its fundingAccountId. Our gateway returned the fundingAccountId when you created the funding account. **Note:** If you don’t have the fundingAccountId, use our [List Funding Accounts](https://docs.payroc.com/api/schema/funding/funding-accounts/list) method to search for the funding account. You can update the following details about the funding account: - Account type. - Account holder's name. - ACH information for the account.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path Parameters

fundingAccountIdintegerRequired
Unique identifier of the funding account.

Request

This endpoint expects an object.
typeenumRequired
Type of funding account.
Allowed values:
useenumRequired
Indicates if we send funds or withdraw funds from the account. - `credit` - Send funds to the account. - `debit` - Withdraw funds from the account. - `creditAndDebit` - Send funds and withdraw funds from the account. **Note:** If the funding account is associated with a funding recipient, we accept only a value of `credit`.
Allowed values:
nameOnAccountstringRequired
Name of the account holder.
paymentMethodslist of objectsRequired
Array of paymentMethod objects.
metadatamap from strings to stringsOptional

Metadata object you can use to include custom data with your request.

Response

Successful request. We updated the funding account.

Errors