Skip to content
Reponse.ai LogoDocs
DocsAPISDKsGuides

Search Documentation

Search for an article...

Getting Started

  • Overview
  • Architecture
  • Installation
  • Authentication
  • First Request

Products & Collections

  • Products — List
  • Products — Get
  • Products — Metafields
  • Collections — List
  • Collections — Get
  • Collections — Products

Cart & Checkout

  • Cart — Create
  • Cart — Get
  • Cart — Add Item
  • Cart — Update Item
  • Cart — Remove Item
  • Cart — Apply Promotion
  • Checkout — Stripe
  • Checkout — Payment Intent
  • Checkout — ACP

Orders & Fulfillment

  • Orders — Create
  • Orders — Get
  • Orders — Confirm
  • Orders — Cancel
  • Orders — Fulfill
  • Orders — Refund

Commerce

  • Inventory — Get
  • Inventory — Update
  • Shipping — Rates
  • Discounts — List
  • Discounts — Create
  • Discounts — Validate
  • Subscriptions — Manage

Loyalty & Gift Cards

  • Loyalty — Balance
  • Loyalty — Redeem
  • Loyalty — Referral
  • Gift Cards — List
  • Gift Cards — Redeem

Tickets & Support

  • Tickets — List
  • Tickets — Create
  • Tickets — Reply

Platform

  • Product Feed — JSON
  • Product Feed — CSV
  • Theme — Get
  • Approvals — Execute
  • Approvals — Reject
  • Geocode

SDKs

  • SDK Overview
  • TypeScript SDK
  • React Hooks

Guides

  • Chat Widget
  • Shopify Sync
  • Storefront Starter
  • Loyalty Program
  • Discounts & Promotions
  • Subscriptions
  • Klaviyo Integration
  • Custom Domains
  • Agentic Commerce (ACP)
  • A2A Protocol
  • AI Engines
  • MCP Server

Webhooks

  • Webhooks Overview
  • Events Reference
  • Shopify Webhooks
  • Stripe Webhooks
  • Reviews (Stamped / Trustpilot)
  • Logistics
  • Email Inbound

Resources

  • Environment Variables
  • Rate Limits
  • Changelog
DocsCart & CheckoutCheckout — Payment Intent

Checkout — Payment Intent

Create a Stripe PaymentIntent for a cart (headless / embedded checkout).

1 min read/Last updated Jul 22, 2026
On this page

Overview

Resolves the market context, applies discounts and shipping, then creates a Stripe PaymentIntent. Returns the `client_secret` you use to confirm payment on the client. Requires the workspace to have a Stripe secret key configured.

Authentication

This endpoint requires a Bearer token. Include your workspace API key in the `Authorization` header.

Authorization: Bearer <your_api_key>

Request

**POST** `/v1/checkout/intent`

Body parameters

NameTypeRequiredDescription
cart_idstring (uuid)✅Cart to check out.
market_idstring (uuid)❌Market context (defaults to domestic).
customer_emailstring❌Customer email.
shipping_addressobject❌Shipping address for rate resolution.
discount_codesstring[]❌Codes to apply at checkout.

Response

json
{
  "client_secret": "pi_..._secret_...",
  "amount": 5398,
  "currency": "eur",
  "breakdown": { "subtotal": 5998, "discount": 600, "shipping": 0 }
}

SDK example

typescript
const { data } = await reponse.checkout.createIntent({
  body: { cart_id: cartId, customer_email: "buyer@example.com" }
});

Errors

StatusMeaning
400cart_id required, Stripe not configured, or no market.
404Cart not found.
PreviousCheckout — Stripe
NextCheckout — ACP