DEL
Delete a Link account
Soft-deletes a Link account. Blocks deletion if the account has active
sub-accounts or pending transfers. To delete all sub-accounts together with
the main account in one atomic operation, set the optional
deleteAllSubAccounts body flag to true — in that mode only pending
transfers block deletion, and either all accounts are deleted or none are.
Path Params
-
enterpriseIdstring requiredYour enterprise id. -
accountIdstring requiredThe account ID to delete.
Header Params
-
user-idstring requiredUser id of the user making the request.
Body Params
object
Optional body for the delete account request. Contains the
deleteAllSubAccounts flag,
which controls whether sub-accounts are deleted together with the main account.-
deleteAllSubAccountsbooleanDelete all sub-accounts together with the main account in a single atomic operation. When true, deletion is skipped if any account (main or sub-account) has pending transfers, and either every non-deleted sub-account and the main account are deleted, or none are. When false or omitted, deletion fails with 409 if the account still has active sub-accounts.
Responses
200
OK
Response Body
object
-
idstring required -
venueIdstring required -
credentialsarray of objects requiredcredentials object
-
idstring required -
accessLevelsarray of string enums requiredreadwriteread_write -
expirationDatestring
-
-
statusstring enum requiredactiveinactivedeletedpending_credentialsrestricted -
namestring required -
descriptionstring required -
whitelistingEnabledboolean required -
parentAccountstring -
usersarray of objectsusers object
-
permissionsarray of string enums requiredlink.account.adminlink.account.transferlink.account.view -
userIdstring required
-
-
createdDatestring date-time required -
modifiedDatestring date-time required
401
Unauthorized
Response Body
object
Standard structured error response payload for Link API v1 error responses.
Contains an error name and human-readable error message.
-
errorNamestring required -
errorstring required
403
Forbidden
Response Body
object
Standard structured error response payload for Link API v1 error responses.
Contains an error name and human-readable error message.
-
errorNamestring required -
errorstring required
404
Not Found
Response Body
object
Standard structured error response payload for Link API v1 error responses.
Contains an error name and human-readable error message.
-
errorNamestring required -
errorstring required
409
Conflict
Response Body
object
Standard structured error response payload for Link API v1 error responses.
Contains an error name and human-readable error message.
-
errorNamestring required -
errorstring required
500
Internal Server Error
Response Body
object
Standard structured error response payload for Link API v1 error responses.
Contains an error name and human-readable error message.
-
errorNamestring required -
errorstring required