UCP Adapter For WooCommerce is a powerful WordPress plugin that provides REST API endpoints for Universal Commerce Platform (UCP) integration. It enables seamless communication between your WordPress site and external commerce platforms through secure, standardized API endpoints.
Thank you for using our plugin! This add-on connects your WordPress site to the powerful world of WordPress’s Agentic Commerce, allowing you to create automated shopping assistants for your users.
Our plugin leverages WordPress’s MCP (Model Context Protocol) servers plugin and the open Universal Commerce Protocol (UCP) standard to enable secure, intelligent commerce actions. Here’s what you can build:
The plugin acts as a Platform within the UCP framework, facilitating secure communication between your users (buyers), WordPress Merchants, and payment or credential providers. It implements these key UCP capabilities:
Imagine a user in your site’s chat asking, “Find me a red coffee mug under $20.” The plugin-powered agent can:
* Query the WordPress Catalog across multiple stores.
* Return filtered, interactive results.
* Guide the user through selecting a variant, adding it to cart, and checking out—all without leaving your WordPress environment.
* Get this client https://github.com/dhirajpatra/adk-agent-gcp/tree/main/ai-agents-adk/ucp_recommendation_system to connect your site with AI agent.
Build custom UCP adapters for platforms like:
* Custom e-commerce solutions
* Membership plugins
* Digital product handlers
* MemberPress
Endpoint: POST /wp-json/ucp/v1/session
Headers:
Content-Type: application/json
X-UCP-API-Key: your-api-key
Body:
json
{
"platform": "woocommerce",
"user_data": {
"user_id": 123,
"email": "user@gmail.com"
}
}
Response:
json
{
"success": true,
"session_id": "ucp_abc123...",
"expires_at": 1234567890,
"message": "Session created successfully."
}
Endpoint: PUT /wp-json/ucp/v1/update/{session_id}
Body:
json
{
"action": "add_item",
"data": {
"product_id": 456,
"quantity": 2
}
}
Endpoint: POST /wp-json/ucp/v1/complete/{session_id}
Body:
json
{
"status": "completed",
"metadata": {
"order_id": 789
}
}
Endpoint: GET /wp-json/ucp/v1/sessions
Parameters:
* page: Page number (optional, default 1)
* limit: Results per page (optional, default 10)
Response:
json
{
"success": true,
"data": [
{
"session_id": "ucp_abc123...",
"status": "active",
"created_at": "2024-01-01 12:00:00",
"expires": 1234567890
}
],
"meta": {
"page": 1,
"limit": 10,
"total": 5
}
}
Endpoint: GET /wp-json/ucp/v1/product/search
Parameters:
* search: Search query (required)
* page: Page number (optional, default 1)
* limit: Results per page (optional, default 10)
Response:
json
{
"success": true,
"data": [
{
"id": 123,
"name": "T-Shirt",
"price": "20.00",
"image": "https://example.com/image.jpg",
"permalink": "https://example.com/product/t-shirt"
}
],
"meta": {
"page": 1,
"limit": 10,
"search": "shirt",
"count": 1
}
}
add_item – Add an item to the sessionupdate_item – Update an existing itemremove_item – Remove an item from the sessionset_data – Set custom session dataUCP Adapter For WooCommerce stores session data temporarily in your WordPress database. This data is automatically cleaned up based on your configured retention settings. The plugin does not send any data to external services.
Session data may include:
* User identifiers
* Platform information
* Custom data provided via API calls
It is your responsibility to ensure compliance with privacy regulations (GDPR, CCPA, etc.) when using this plugin.
Developed with WordPress coding standards and best practices in mind.
Support Forum: https://wordpress.org/support/plugin/ucp-adapter-for-woocommerce