
Cancel sessionPOST
OpenStock Docs
POST
/
api/checkout-api/sessions/{session_id}/cancelcheckout_apiCancels a session that has not been paid. Completed sessions cannot be cancelled.
Authorization#
AuthorizationBearer <token>In: header. A store API key starting with sk_ that has the checkout_api permission.
Path parameters#
session_idrequiredstringThe session to cancel.
Responses#
- 200Session cancelled.
- 400The session is already completed.
- 404Unknown session.
- 401Missing, malformed, disabled or expired API key.