Endpoint
| Environment | Full URL |
|---|---|
| Sandbox | https://sandbox.api.prava.space/v1/sessions/:id/revoke |
| Production | https://api.prava.space/v1/sessions/:id/revoke |
Authentication
Bearer token using your secret key:Path Parameters
The
session_id of the session to revokeResponse (200)
Always
true on successful revocationExample
Response
Error Responses
| Status | Code | Cause |
|---|---|---|
| 401 | AUTH_1001 | Invalid API key |
| 401 | AUTH_1002 | Missing or invalid Authorization header |
| 404 | NOT_FOUND | Session not found or doesn’t belong to your merchant account |
Error Response Format
Notes
- Once revoked, the session token can no longer be used for any SDK operations.
- Any in-progress card collection or intent registration within the session will fail.
- Revocation is immediate and irreversible.