Download the PHP package mahesh-rajawat/module-agentic-ucp-checkout without Composer
On this page you can find all versions of the php package mahesh-rajawat/module-agentic-ucp-checkout. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mahesh-rajawat/module-agentic-ucp-checkout
More information about mahesh-rajawat/module-agentic-ucp-checkout
Files in mahesh-rajawat/module-agentic-ucp-checkout
Package module-agentic-ucp-checkout
Short Description Universal Commerce Protocol (UCP) checkout module for Magento 2 — catalog, cart, shipping, billing, order, and tracking endpoints
License MIT
Homepage https://github.com/mahesh-rajawat/magento2-ucp-agentic
Informations about the package module-agentic-ucp-checkout
MSR_AgenticUcpCheckout
Companion module to MSR_AgenticUcp that gives AI agents a complete REST API for e-commerce: browse the catalog, manage a guest cart, go through checkout, place orders, and track shipments — all over a single UCP-authenticated session.
Requirements
| Dependency | Version |
|---|---|
| Magento Open Source / Adobe Commerce | 2.4.6+ |
| PHP | 8.1+ |
| MSR_AgenticUcp | 1.0.0+ |
Installation
How it works
Every request must carry a Bearer token obtained from
POST /rest/V1/ucp/auth (provided by MSR_AgenticUcp). The token
encodes the agent's DID, which is used to maintain an isolated guest
cart for each agent identity across requests.
REST API
All routes are under /rest/V1/ucp/.
Catalog
| Method | Endpoint | Description |
|---|---|---|
| GET | /V1/ucp/catalog |
Browse products. Optional pageSize param (default 10). Returns name, SKU, price, special price, tier prices, stock status. |
| GET | /V1/ucp/search |
Full-text product search. Required q param. |
Cart
| Method | Endpoint | Description |
|---|---|---|
| GET | /V1/ucp/cart |
View cart contents, item list, subtotal, grand total. |
| POST | /V1/ucp/cart |
Add item. Body: { "sku": "SKU-001", "qty": 2 }. Creates cart automatically. |
| DELETE | /V1/ucp/cart/:itemId |
Remove one line item by cart item ID. |
| DELETE | /V1/ucp/cart |
Clear the entire cart. |
Checkout
| Method | Endpoint | Description |
|---|---|---|
| POST | /V1/ucp/checkout/shipping |
Set shipping address and method. Pass billing_same_as_shipping: true (default) to copy to billing. |
| POST | /V1/ucp/checkout/billing |
Set a separate billing address (only when different from shipping). |
| GET | /V1/ucp/checkout/shipping-methods |
List available shipping methods with carrier, code, label, and cost. |
| GET | /V1/ucp/checkout/payment-methods |
List available payment methods with code and title. |
| GET | /V1/ucp/checkout/totals |
Full totals: subtotal, shipping, tax, discount, grand total, currency. |
Order
| Method | Endpoint | Description |
|---|---|---|
| POST | /V1/ucp/order |
Place the order. Requires X-UCP-Human-Confirmation header. Body: { "payment_method_code": "checkmo", "email": "[email protected]" }. |
| GET | /V1/ucp/order/:orderId |
Track by increment ID (e.g. 000000001) or numeric order ID. Returns status, shipping address, tracking numbers, items. |
Inventory
| Method | Endpoint | Description |
|---|---|---|
| GET | /V1/ucp/inventory |
Check stock. ?sku=SKU-001 or ?sku=SKU-001,SKU-002. Returns in-stock flag and qty per SKU. |
Example: full checkout flow
Session management
Model/Cart/SessionManager maintains an isolated guest cart per agent
identity. The agent DID is extracted from the Bearer token's sub
claim and hashed with SHA-256 to form a cache key with a 24-hour TTL.
This means each registered agent always resumes its own cart, even
across separate HTTP requests.
Module structure
See also
MSR_AgenticUcp— core module: authentication, policy engine, admin UI, audit logUCP_Testing_Guide.md— step-by-step setup and live chat testing instructionslocal_testing_ollama/— terminal chat clients (ucp_chat.py,ucp_chat.js)
All versions of module-agentic-ucp-checkout with dependencies
magento/framework Version >=103.0.0
mahesh-rajawat/module-agentic-ucp Version ^1.0