session_id is missing, expired, or does not match the operation type.
The problem
Sessions are short-lived intents. If too much time passes between creating a session and calling executions, the session may no longer be active. Other causes:- Using a payout session ID with
executions/collection - Wrong
source_id/source_typeon checkout session create - Invoice still
IDLE(not published)
How to identify
- 422 errors mentioning session not found or not active
session_idfrom an old test run or different merchant account
Solution
Verify source is publishable
Invoice/order should be
ACTIVE — PUT /v1/invoices/publish/:id when using document-first flow.Create a new session
POST /v1/sessions/checkout (or payout/transfer/refund) immediately before execute.