AI Agent → UCP Middleware → Magento 2 REST API
AI agents call this endpoint to discover what shopping capabilities are available.
Creates a cart and adds products. Returns cart ID and subtotal.
Provide shipping address to get available shipping methods with prices.
Select a shipping method and confirm the shipping address.
Apply a coupon code to get a discount on the order.
Choose how you want to pay for the order.
Complete the checkout and place the order.
Complete previous steps to see order summary