UCP Agentic Commerce Discounts

•
32
•

Implements standardized Universal Commerce Protocol (UCP) discount logic, including promo code validation, allocation tracking, and error handling for checkout sessions.

This skill enables Claude to implement and manage the UCP Discount extension, which builds upon core checkout capabilities to handle complex promotional logic. It provides deep integration for managing discount codes, automatic discounts, and precise allocation tracking across line items while maintaining strict financial invariants. By leveraging real-time specification fetching, the skill ensures that discount schemas, application priorities, and standard error codes are implemented according to the latest UCP standards, making it essential for developers building agent-ready e-commerce platforms and headless shopping experiences.

主要功能

01Seamless integration with UCP shopping checkout workflows
02Standardized error handling for expired or invalid promo codes
0332 GitHub stars
04Precise discount allocation tracking across specific line items
05Support for both manual codes and automatic discount application
06Real-time UCP discount specification fetching and validation

使用场景

01Implementing complex discount priorities and combination rules
02Adding promo code functionality to a headless UCP-compliant checkout
03Debugging discount allocation logic to ensure financial invariant consistency