Skip to main content
POST
Cancel a checkout
Cancelling only works while the checkout is open (400 otherwise). A 409 means it was modified concurrently.

Authorizations

x-api-key
string
header
required

Your secret key, from app.agentaos.ai -> Settings -> Developers -> API Keys. The key's prefix is both its identity and its environment: sk_test_... (sandbox, free, no verification) or sk_live_... (real money, requires business verification). A missing or invalid key returns 401.

Path Parameters

sessionId
string
required

The public session_id (not the internal id UUID).

Response

The checkout was cancelled.

success
boolean
required