Cancel an investment session
DELETE/investment_sessions/:id
Alias of /partner/investment_sessions (#23636).
Cancels a session so its link stops working. Valid while the session is
pending, in_progress, or abandoned; repeating the call on an
already-canceled session returns the same 200. A completed or expired
session cannot be canceled (422 session_not_cancelable).
Request
Responses
- 200
- 401
- 403
- 404
- 422
Session canceled (state canceled in the response)
Authentication required or token is invalid/expired. This error occurs when:
- No Authorization header is provided
- The access token is invalid or malformed
- The access token has expired
- The access token has been revoked
To resolve: Obtain a new access token using the OAuth 2.0 flow.
The authenticated user does not have permission to access this resource. This typically means:
- The user is authenticated but lacks the required OAuth scope
- The resource belongs to a different user
- The user's role doesn't allow this operation
Check that your OAuth token includes the necessary scopes for this endpoint.
The requested resource does not exist or is not visible to this token.
One or more request fields failed validation.