PATCH
/
v0
/
business
/
{business_id}
/
external-account
/
{external_account_id}
Update External Account
curl --request PATCH \
  --url https://api.sandbox.getasset.com/v0/business/{business_id}/external-account/{external_account_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "status": "connected",
  "disconnected_at": "2023-11-07T05:31:56Z",
  "type": "business",
  "cursor": "<string>",
  "last_synced_at": "2023-11-07T05:31:56Z",
  "last_balanced_at": "2023-11-07T05:31:56Z",
  "external_balance": 123
}'
{
  "business_id": "biz_Pk2fNFDd8wj7EFeLWJywc7",
  "type": "business",
  "ledger_id": "ldg_Ns6rRRLYVZPh4cVB7MDby5",
  "contribution_ledger_id": "ldg_Ns6rRRLYVZPh4cVB7MDby5",
  "distribution_ledger_id": "ldg_Ns6rRRLYVZPh4cVB7MDby5",
  "source": "manual",
  "external_id": "<string>",
  "metadata_": {},
  "name": "ABC Business Checking",
  "mask": "1234",
  "linked_item_id": "lni_R2fAXCjqJPdpYata112zyW",
  "status": "connected",
  "disconnected_at": "2023-11-07T05:31:56Z",
  "last_synced_at": "2023-11-07T05:31:56Z",
  "last_balanced_at": "2023-11-07T05:31:56Z",
  "external_balance": 123,
  "last_statement_end_date": "2023-11-07T05:31:56Z",
  "id": "eac_Ns6rRRLYVZPh4cVB7MDby5"
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

business_id
string<biz_string>
required
external_account_id
string<eac_string>
required

Body

application/json
status
enum<string> | null

The updated status of the External Account

Available options:
connected,
disconnected,
untracked
Examples:

"connected"

"disconnected"

disconnected_at
string<date-time> | null

The datetime when the External Account is disconnected

type
enum<string> | null

The type of the External Account (business or personal)

Available options:
business,
personal
Examples:

"business"

"personal"

cursor
string | null

The Plaid cursor of the External Account

last_synced_at
string<date-time> | null

The datetime when the External Account was last synced

last_balanced_at
string<date-time> | null

The datetime when the External Account was last balanced

external_balance

The current balance of the External Account

Response

Successful Response

business_id
string<biz_string>
required

The ID of the Business associated with the External Account

Examples:

"biz_Pk2fNFDd8wj7EFeLWJywc7"

type
enum<string>
required

The type of the External Account

Available options:
business,
personal
source
enum<string>
required

The source of the External Account

Available options:
manual,
plaid
external_id
string | null
required

The external ID of the External Account

Maximum length: 255
disconnected_at
string<date-time> | null
required

Datetime when the external account was disconnected

last_synced_at
string<date-time> | null
required

Datetime when the external account was last synced

last_balanced_at
string<date-time> | null
required

Datetime when the external account was last balanced

external_balance
number | null
required

The current balance of the External Account

last_statement_end_date
string<date-time> | null
required

Datetime when the external account balance was last updated

id
string<eac_string>
required

The ID of the External Account

Examples:

"eac_Ns6rRRLYVZPh4cVB7MDby5"

ledger_id
string<ldg_string> | null

The ID of the Bank Ledger associated with the Business External Account

Examples:

"ldg_Ns6rRRLYVZPh4cVB7MDby5"

contribution_ledger_id
string<ldg_string> | null

The ID of the Contribution Ledger associated with the Personal External Account

Examples:

"ldg_Ns6rRRLYVZPh4cVB7MDby5"

distribution_ledger_id
string<ldg_string> | null

The ID of the Distribution Ledger associated with the Personal External Account

Examples:

"ldg_Ns6rRRLYVZPh4cVB7MDby5"

metadata_
object | null
name
string | null

The name of the External Account

Maximum length: 255
Examples:

"ABC Business Checking"

mask
string | null

The mask of the External Account

Maximum length: 255
Examples:

"1234"

linked_item_id
string<lni_string> | null

The ID of the Linked Item associated with the External Account

Examples:

"lni_R2fAXCjqJPdpYata112zyW"

status
enum<string>

The status of the External Account

Available options:
connected,
disconnected,
untracked