Skip to main content
StateSet home page
Search...
⌘K
Talk to us
Dashboard
Dashboard
Search...
Navigation
Lifecycle & Workflows
iCommerce Order Lifecycle
Documentation
Guides
API Reference
Resources
Documentation
GitHub
Community
Newsletter
Get started
StateSet iCommerce Docs
Developer Guide
StateSet iCommerce Engine CLI
iCommerce Intro
iCommerce Architecture
iCommerce Skills
StateSet iCommerce Quickstart
StateSet API
Features
ResponseCX
StateSet ResponseCX CLI
StateSet Sandbox
Sandbox SDK (Node.js)
Sandbox SDK (Python)
StateSet Sequencer Architecture
Set L2
Response ChatGPT App Guide
Agentic Commerce Protocol Handler
Agentic Commerce Protocol Checkout Guide
Universal Commerce Protocol Handler
NSR-L Language Reference
Neuro-Symbolic Architecture
StateSet Computer Use Agent
StateSet Agents
Platform
StateSet Overview
StateSet: The Agentic Operating System
iCommerce Intro
Global Commerce Architecture
Autonomous Agent Architecture
StateSet One
API Reference
Authentication
API Design Guidelines
Overview
Getting Started
Architecture
Features
Reporting
Integrations
API Changelog
StateSet Response
ResponseCX
StateSet Agentic OS: Autonomous Agents for Next-Gen Commerce
Authentication
Models
Agent Framework and SDK
Computer Use AI Agents
ReasonCX
Realtime Voice
StateSet ResponseCX
Stateset responsecx
Stateset responsecx architecture
Stateset responsecx workflows
StateSet ResponseCX CLI
StateSet iCommerce
Overview
Agent Sandbox
Lifecycle & Workflows
iCommerce Order Lifecycle
iCommerce Returns Workflow
CLI
Messaging & Payments
Deployment
StateSet Commerce
StateSet Commerce Network API
Getting Started
Authentication
Core Concepts
Advanced
StateSet Sandbox
About StateSet Sandboxes
StateSet Sandbox Quickstart
Architecture & Operations
SDKs
StateSet ACP
Agentic Commerce Protocol
ACP Overview
StateSet ACP Quickstart
Reference
StateSet Sequencer
StateSet VES System Overview
StateSet Sequencer Architecture
StateSet Sequencer Quickstart
Sequencer Operations
x402 payments reference
StateSet UCP
About the Universal Commerce Protocol
StateSet UCP Quickstart
StateSet Cloud
Stateset Cloud Overview
Authentication
API Keys
Tools
StateSet iCommerce Engine CLI
Architecture
Setup
Deploy the ACP Handler
Sync Server API Basics
On this page
iCommerce Order Lifecycle
1) Create an Order
2) Validate and Authorize Payment
3) Reserve Inventory
4) Fulfill and Ship
5) Post-Purchase Actions
Related Documentation
StateSet iCommerce
Lifecycle & Workflows
iCommerce Order Lifecycle
Copy page
End-to-end flow from order creation to fulfillment and returns.
Copy page
iCommerce Order Lifecycle
This guide walks through a typical order lifecycle in the embedded iCommerce engine.
1) Create an Order
Orders can be created through the SDKs or the CLI. Start with a minimal order payload, then enrich with payment, shipping, and customer details.
2) Validate and Authorize Payment
Validate totals, taxes, and discounts before authorizing payment. For agent workflows, ensure the action is explicit and auditable.
3) Reserve Inventory
Inventory is reserved against the order to prevent oversells. Reservations can be updated if the order changes.
4) Fulfill and Ship
When fulfillment begins, create a shipment record and update the order status. Tracking details flow back to the customer.
5) Post-Purchase Actions
Handle returns, exchanges, and refunds with deterministic actions tied to the original order and inventory adjustments.
Related Documentation
Examples
Returns Quickstart
Orders Quickstart
iCommerce Agent Sandbox Costs
iCommerce Returns Workflow
⌘I