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
    }
  }
}