SaaSFlow
DevelopersAPIReferenceaccounts

Delete preview

Preview what deleting an account would do to transfers in other accounts, without changing anything. Deleting an account removes its transactions, and a…

Authentication

Checking whether you're signed in…
GET
/companies/{companyId}/accounts/{accountId}/delete_preview

Authorization

headerAuthorization<token>

A SaaSFlow API key (format sf_…) or an OAuth bearer token. Paste only the key — the proxy adds the Bearer prefix. Create an API key in Settings → Company settings → API keys — see API keys.

Path Parameters

companyId*string
Length1 <= length
accountId*string
Length1 <= length

Response Body

The transfers in other accounts the delete would reopen or remove

application/json
  1. response
otherAccounts*array<>

Per other account, the transfers linked to this account, directly or through a transit account. Transit accounts are left out. Empty when nothing elsewhere is linked.

Example Request
curl -X GET 'https://api.saasflow.com/companies/string/accounts/string/delete_preview'
Example Response
{  "otherAccounts": [    {      "accountId": "string",      "reopenedTransferCount": 0,      "removedCounterCount": 0    }  ]}