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
DocsGuidesAgentic Commerce (ACP)

Agentic Commerce (ACP)

How Reponse enables agentic commerce.

3 min read/Last updated Jul 9, 2026
On this page

Overview

**Agentic Commerce** means letting AI agents discover products, build carts, and complete purchases on a shopper's behalf. Reponse implements the Agentic Commerce Protocol (ACP) — a set of machine-readable feeds, APIs, and payment flows that allow agents to transact safely.

Prerequisites

RequirementDescription
Reponse workspaceActive workspace with products
API keyWorkspace API key (Bearer token)
StripeStripe account connected to your workspace with SPT (Shared Payment Tokens) enabled
Agent clientAn AI agent capable of calling HTTP APIs (ChatGPT, Copilot, Gemini, etc.)

Architecture

Agentic commerce in Reponse is built on three pillars:

┌─────────────────────────────────────────┐
│           External AI Agent             │
└──────┬──────────────┬──────────────┬────┘
       │              │              │
  ┌────▼────┐   ┌─────▼─────┐  ┌────▼────┐
  │ACP Feed │   │MCP Server │  │A2A Proto│
  └────┬────┘   └─────┬─────┘  └────┬────┘
       │              │              │
  ┌────▼──────────────▼──────────────▼────┐
  │         Reponse Commerce Engine       │
  │  Catalog · Cart · Checkout · Orders   │
  └───────────────────────────────────────┘
ComponentPurpose
ACP FeedMachine-readable product feed optimized for agent consumption
MCP ServerTool interface for MCP-compatible agents (Claude, Cursor)
A2A ProtocolJSON-RPC protocol for agent-to-agent task delegation

Discovery

AI agents discover your storefront via a standard manifest:

GET https://your-store.com/.well-known/acp.json

The manifest lists your endpoints, capabilities, and payment configuration. It is public (no auth required) and cached for 24 hours.

Product feed

The ACP feed exposes your full catalog in an agent-optimized, gzip-compressed JSON format:

GET /api/v1/feed
Authorization: Bearer YOUR_API_KEY
json
{
  "version": "1.0",
  "merchant": "Your Brand",
  "product_count": 42,
  "generated_at": "2026-05-26T06:00:00.000Z",
  "products": [
    {
      "id": "prod_xxx",
      "title": "Organic Cotton T-Shirt",
      "description": "Soft organic cotton, available in 5 colors",
      "price": 29.99,
      "currency": "EUR",
      "availability": "in_stock",
      "url": "https://your-store.com/products/organic-tee",
      "variants": [
        {
          "id": "var_1",
          "title": "Small / Black",
          "sku": "TS-SM-BLK",
          "price": 29.99,
          "inventory_quantity": 15,
          "option_values": { "Size": "Small", "Color": "Black" },
          "availability": "in_stock"
        }
      ]
    }
  ]
}

The response is Gzip-compressed (`Content-Encoding: gzip`). Most HTTP clients decompress automatically. Cache TTL is 1 hour.

Agent capabilities

An agent interacting with Reponse can perform these actions:

CapabilityEndpointDescription
Browse catalogGET /api/v1/feedFull product feed (gzip JSON)
Search productsGET /api/v1/productsPaginated search with filters
Create cartPOST /api/v1/cartsStart a new shopping cart
Add/remove itemsPOST /api/v1/carts/{cart_id}/linesModify cart contents
Apply discountPOST /api/v1/carts/{cart_id}/promotionsApply promo codes
Checkout with SPTPOST /api/v1/checkout/acpComplete purchase with Shared Payment Token

Checkout flow

The ACP checkout flow uses Stripe Shared Payment Tokens (SPT) for secure, agent-mediated payments:

  1. Agent browses feed — discovers products via /api/v1/feed
  2. Agent creates cart — calls POST /api/v1/carts and adds items
  3. User authorizes payment — the agent's platform (e.g. ChatGPT) collects payment consent and issues a Shared Payment Token (SPT) via Stripe
  4. Agent completes checkout — sends SPT to POST /api/v1/checkout/acp
  5. Order created — Reponse creates a PaymentIntent, captures payment, creates the order, and sends confirmation emails
  6. Agent confirms — the response includes order_id and order_number for the agent to relay to the shopper
bash
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "cart_id": "cart_xyz789",
    "payment_token": "spt_1234567890abcdef",
    "shipping_address": {
      "name": "John Doe",
      "line1": "123 Rue de Rivoli",
      "city": "Paris",
      "postal_code": "75001",
      "country": "FR"
    },
    "customer_email": "john@example.com",
    "idempotency_key": "unique-request-id-abc"
  }' \
  https://your-domain.com/api/v1/checkout/acp

Successful response

json
{
  "checkout_session_id": "pi_3abc123def456",
  "status": "completed",
  "payment_intent_id": "pi_3abc123def456",
  "order_id": "uuid-of-created-order",
  "order_number": "ACP-f456",
  "order_summary": {
    "currency": "EUR",
    "subtotal": 59.98,
    "discount": 0,
    "shipping": 4.90,
    "total": 64.88,
    "line_items": [
      {
        "product_title": "Premium T-Shirt",
        "variant_id": "var_001",
        "quantity": 2,
        "unit_price": 29.99
      }
    ],
    "applied_discount_codes": []
  }
}

Checkout status values

StatusMeaning
completedPayment succeeded. Order created and confirmation email sent.
requires_action3D Secure or additional auth needed. Use client_secret to complete.
processingPayment is being processed asynchronously.
failedPayment failed. Check error details.

Troubleshooting

SymptomCauseFix
ACP feed returns emptyNo published productsPublish products in the dashboard
401 UnauthorizedInvalid API keyCheck your API key is valid and hasn't been rotated
400 Stripe not configuredMissing Stripe keysEnsure Stripe is connected in workspace settings
400 No market configurationNo market definedCreate at least one market with is_domestic: true
402 Payment declinedSPT rejectedCard issue on user's side — agent must request a new SPT
400 Invalid payment tokenSPT expired or malformedAgent must request a new SPT
Agent gets 404 on cartCart not found or wrong workspaceVerify cart_id belongs to the authenticated workspace
PreviousCustom Domains
NextA2A Protocol