capabilities.work

Checkout Session and Line Items

A 3-step recipe with Stripe. We can help you get access.

Recipe · 3 steps

Checkout Session and Line Items

with Stripe
Works with AI assistants

Create a Checkout Session and inspect its line items.

  1. Create a hosted Checkout Session for the supplied price.
  2. Retrieve the session to confirm its hosted URL and status.
  3. List the line items attached to the checkout session.
What you'll need to have ready
  • price: ID of the price to sell through checkout.
  • quantity: Quantity of the line item (defaults to 1 if omitted).
  • mode: Checkout mode (payment, subscription, or setup).
  • successUrl: URL to redirect to after a successful checkout.
For your developer

Arazzo workflow stripe:checkout-session-and-lineitems, 3 operations: postCheckoutSessions → getCheckoutSessionsSession → getCheckoutSessionsSessionLineItems. Specs on APIs.io.