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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

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


All versions of module-agentic-ucp-checkout with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1.0
magento/framework Version >=103.0.0
mahesh-rajawat/module-agentic-ucp Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package mahesh-rajawat/module-agentic-ucp-checkout contains the following files

Loading the files please wait ...