AUTHENTICATION · V1
Revoke a customer session Revoke a customer session issued by this integration.
DELETE /api/v1/auth/customer-sessions/{id}
Authorization Use a server-side API key with the listed grants and permitted resource access.
Path parameters
idstring · required Opaque identifier in the authorized resource scope. Nested identifiers must belong to their parent resource. Response 204 No content
A successful deletion has no response body.
Errors Authentication failures return 401 or 403. Inaccessible resources return 404. Business and idempotency conflicts return 409. Rate limits return 429 with retry guidance.
Error handling guide REQUEST API key
curl --request DELETE 'https://api.wincora.com/api/v1/auth/customer-sessions/id_example' \
--header 'X-Api-Key: YOUR_API_KEY' const response = await fetch ( 'https://api.wincora.com/api/v1/auth/customer-sessions/id_example' , {
method: 'DELETE' ,
headers: {
"X-Api-Key" : process.env. WINCORA_API_KEY
}
});
if ( ! response.ok) throw new Error ( await response. text ());
// No response body. import os
import requests
response = requests.request(
'DELETE' ,
'https://api.wincora.com/api/v1/auth/customer-sessions/id_example' ,
headers = {
"X-Api-Key" : os.environ[ "WINCORA_API_KEY" ]
},
timeout = 30 ,
)
response.raise_for_status() Keep this API key on your server. Never embed it in browser or mobile code.