Skip to main content
Execution failed because the 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_type on checkout session create
  • Invoice still IDLE (not published)

How to identify

  • 422 errors mentioning session not found or not active
  • session_id from an old test run or different merchant account

Solution

1

Verify source is publishable

Invoice/order should be ACTIVEPUT /v1/invoices/publish/:id when using document-first flow.
2

Create a new session

POST /v1/sessions/checkout (or payout/transfer/refund) immediately before execute.
3

Execute with a new reference_id

New session → new UUID v4 reference_id for the execution attempt.
Last modified on May 22, 2026