Stripe · Example Payload

Stripe Create Checkout Session Example

CommerceFinancial-ServicesFintechPaymentsT1

Stripe Create Checkout Session Example is an example object payload from Stripe, with 2 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

requestresponse

Example Payload

Raw ↑
{
  "request": {
    "method": "POST",
    "url": "https://api.stripe.com/v1/checkout/sessions",
    "headers": {
      "Authorization": "Bearer sk_test_...",
      "Content-Type": "application/x-www-form-urlencoded"
    },
    "body": {
      "mode": "payment",
      "success_url": "https://example.com/success?session_id={CHECKOUT_SESSION_ID}",
      "cancel_url": "https://example.com/cancel",
      "customer": "cus_NffrFeUfNV2Hib",
      "line_items[0][price]": "price_1NrJaN2eZvKYlo2C1UoDbagv",
      "line_items[0][quantity]": 1
    }
  },
  "response": {
    "status": 200,
    "body": {
      "id": "cs_test_a1GCXRcYpk9AzCLFVlBJSIhzO1WDTerJVLPprdmXJyQDV3JJlA3cR7fTn",
      "object": "checkout.session",
      "url": "https://checkout.stripe.com/c/pay/cs_test_a1GCXRcY...",
      "status": "open",
      "payment_status": "unpaid",
      "mode": "payment",
      "customer": "cus_NffrFeUfNV2Hib",
      "success_url": "https://example.com/success?session_id={CHECKOUT_SESSION_ID}",
      "cancel_url": "https://example.com/cancel",
      "amount_total": 2000,
      "currency": "usd",
      "created": 1694184073,
      "expires_at": 1694270473,
      "livemode": false
    }
  }
}

Work with this as data

Every example here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for examples

4 MCP tools reach this
  • find_examplesBrowse and filter every example in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This example
curl "https://apis.io/api/v1/examples/stripe-create-checkout-session-example"
All examples
curl "https://apis.io/api/v1/examples?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.