Skip to content
Proud to collaborate with Microsoft for Startups

stripe.checkout.get_session ​

Get a Stripe Checkout Session and its payment status

Retrieve a Checkout Session so the outcome of a payment can be confirmed server-side.

Never trust the browser's return from success_url on its own: it proves only that the shopper reached the URL. Read the session here and act on payment_status ("paid" / "unpaid" / "no_payment_required").

client_reference_id is echoed back exactly as it was set at creation, which is how a completed payment is mapped to the end-user who made it.

Acts on the CUSTOMER'S OWN Stripe account, authenticated via the org-scoped Stripe connection selected by cloud_connection_uuid.

Inputs:

  • cloud_connection_uuid: Org-scoped Stripe connection (customer's own account).
  • session_id: Checkout Session ID (cs_...).

Outputs (terminal state_data):

  • session_id: str
  • payment_status: str — paid | unpaid | no_payment_required
  • status: str — open | complete | expired
  • customer_id: str
  • client_reference_id: str — the identifier set at creation
  • subscription_id: str — set when mode=subscription
  • amount_total: int — in the currency's smallest unit
  • currency: str
  • session_metadata: json

Connection required: cloud_connection_uuid — the organization's own Stripe account credentials; there is no platform-key fallback.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-stripe
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
cloud_connection_uuiduuidYes—Org-scoped Stripe connection (customer's own account)
session_idstringYes—Checkout Session ID (cs_...)

Output Schema ​

FieldTypeRequiredDefaultDescription
session_idstringNo——
payment_statusstringNo——
statusstringNo——
customer_idstringNo——
client_reference_idstringNo——
subscription_idstringNo——
amount_totalintegerNo——
currencystringNo——
session_metadatajsonNo——
cloud_connection_uuiduuidNo——
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepstringNo——
errorstringNo——
error_typestringNo——
failed_layerintegerNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—execute—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "stripe.checkout.get_session",
  "initial_data": {
    "cloud_connection_uuid": "value",
    "session_id": "value"
  }
}