Force-expire a checkout session
POST
/checkout-sessions/{id}/expire
Authentication
Bearer Token API Key (header: X-API-Key)
Path Parameters
id
string
required
path
Responses
200
Session expired
No response body
curl -X POST 'https://platform-api.anyspend.com/api/v1/checkout-sessions/string/expire' \ -H 'Authorization: Bearer YOUR_API_TOKEN'
const response = await fetch('https://platform-api.anyspend.com/api/v1/checkout-sessions/string/expire', { method: 'POST', headers: { "Authorization": "Bearer YOUR_API_TOKEN" }});const data = await response.json();console.log(data);
import requestsheaders = { 'Authorization': 'Bearer YOUR_API_TOKEN'}response = requests.post('https://platform-api.anyspend.com/api/v1/checkout-sessions/string/expire', headers=headers)print(response.json())
API Playground
Try this endpoint
POST
/checkout-sessions/{id}/expire

