Affiliate Logout¶
Ends the authenticated affiliate cabinet session by revoking its current session. This route is for an affiliate login session. Affiliate API credentials managed by staff remain controlled by the affiliate API token management commands.
POST
https://{some_domain}/api/affiliate/logout
Authorization¶
Send the affiliate session JWT in the Authorization header, using the affiliate cabinet's existing token format.
Request¶
No action parameters are required. The HTTP gateway envelope is:
{ "data": {} }
Success (200)¶
{}
Errors¶
| HTTP | error |
Description |
|---|---|---|
| 401 | INCORRECT_TOKEN |
Token is missing, invalid, expired, or no longer active. |
| 503 | SESSION_GUARD_UNAVAILABLE |
SessionGuard is unavailable or could not accept the logout into its persistence queue. A 503 does not report a synchronous SQLite commit failure. |
The route keeps the existing successful 200 response body ({}). A successful response means revocation was applied to the cache and its persistence operation was accepted; it is not a SQLite commit acknowledgement. Logout takes effect for platform authorization immediately; Data Lake access to a shared session JWT remains governed by its own license and expiry checks.