curl --request POST \
--url https://api.sandbox.getasset.com/v0/business/{business_id}/external-account \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "Checking Account",
"mask": "4576",
"source": "manual",
"type": "business",
"ledger_id": "ldg_Ns6rRRLYVZPh4cVB7MDby5"
}'
{
"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"
}
curl --request POST \
--url https://api.sandbox.getasset.com/v0/business/{business_id}/external-account \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "Checking Account",
"mask": "4576",
"source": "manual",
"type": "business",
"ledger_id": "ldg_Ns6rRRLYVZPh4cVB7MDby5"
}'
{
"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"
}
The access token received from the authorization server in the OAuth 2.0 flow.
Successful Response
The response is of type object
.