Transaction
Update External Account
API Overview
Authentication
Journal Entry
Ledger
Reports
Transaction
Transaction
Update External Account
PATCH
/
v0
/
business
/
{business_id}
/
external-account
/
{external_account_id}
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,
"id": "eac_Ns6rRRLYVZPh4cVB7MDby5"
}
Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Body
application/json
Response
200
application/json
Successful Response
The response is of type object
.
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,
"id": "eac_Ns6rRRLYVZPh4cVB7MDby5"
}