Delete Connected Account
This endpoint allows a bank client to delete their connection request to a linked (remote) account. The deletion applies regardless of the current status of the connection — whether it is approved or still pending. The operation is scoped to the authenticated client's own connection requests.
Endpoint
DELETE /api/LinkedAccount/{linkedUserProfileId}
Authentication
Bearer token required. Obtain via:
POST https://api.banking.netevia.dev/api/auth/v2
Include in header: Authorization: Bearer {token}
Token lifetime: 10 minutes. Refresh via POST /api/auth/refresh.
When to use
Use this endpoint when a customer wants to remove a linked external account connection from their profile. This is applicable whether the link was recently requested and is still pending approval, or has already been fully approved and active. Only the authenticated customer can delete their own linked account entries.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| linkedUserProfileId | integer (int32) | Yes | The unique ID of the linked account connection request to delete. Obtain this ID from the list of connection requests. |
Response
200 OK
The connection request was successfully deleted. No response body is returned.
Error Codes
| Code | When it happens |
|---|---|
| 400 | The request is invalid, or the specified linkedUserProfileId does not exist |
| 401 | Token missing, expired, or invalid |
| 403 | Insufficient permissions — the authenticated client does not own the specified connection request |
| 404 | The linked account connection request with the given ID was not found |
| 500 | Internal server error |
Common Mistakes
- Providing a
linkedUserProfileIdthat belongs to a different customer — only the authenticated client's own connection requests can be deleted. - Using an invalid or non-integer value for
linkedUserProfileId— the field must be a valid integer. - Attempting to delete an already-deleted or non-existent connection request, which will result in a 400 Bad Request response.
Related Endpoints
GET /api/LinkedAccount— Retrieve the list of linked account connection requests (use this to obtain validlinkedUserProfileIdvalues)POST /api/LinkedAccount— Create a new linked account connection request
Example
curl -X DELETE https://api.banking.netevia.dev/api/LinkedAccount/12345 \
-H "Authorization: Bearer YOUR_TOKEN" 200Success
