ucp-discount

Apply, validate, and allocate UCP discount codes across checkout line items.

35|16|Updated Mar 4, 2026
One-click install
npx skills add https://github.com/OrcaQubits/agentic-commerce-claude-plugins --skill ucp-discount
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ucp-discount
Source: https://github.com/OrcaQubits/agentic-commerce-claude-plugins/tree/main/ucp-agentic-commerce/skills/ucp-discount
Command: npx skills add https://github.com/OrcaQubits/agentic-commerce-claude-plugins --skill ucp-discount

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the application, validation, and tracking of discount codes within the Universal Commerce Protocol (UCP) checkout process, ensuring accurate pricing and a smooth customer experience.

Core Features & Use Cases

  • Discount Code Application: Apply multiple discount codes submitted by a buyer during checkout.
  • Validation & Error Handling: Validate codes against UCP specifications and handle errors like expired, invalid, or already applied codes.
  • Allocation Tracking: Precisely track how discounts are distributed across line items and the total order.
  • Use Case: When a customer enters a promo code like "SUMMER20" during checkout, this Skill verifies its validity, applies the discount, and updates the order total, while also handling cases where the code might be expired or already used.

Quick Start

Use the ucp-discount skill to apply the discount codes 'SAVE10' and 'FREESHIP' to the current checkout session.

Frequently Asked Questions about ucp-discount

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I validate promo codes during a UCP checkout flow?

Discount allocation tracking distributes applied promo code amounts across individual line items, ensuring the sum of all allocations equals the total applied discount amount without pricing discrepancies.

Can I apply multiple discount codes in one UCP checkout session?

You can apply multiple discount codes in one UCP checkout session by submitting several buyer-provided promo codes, validating each against UCP specifications, and updating the order total accordingly.

What happens when an expired or invalid discount code is submitted in a UCP checkout?

When an expired or invalid discount code is submitted in a UCP checkout, the validation process catches the error based on UCP error codes and prevents the invalid discount from applying to the order.

Does this approach require specific dependencies to manage UCP discount codes?

Managing UCP discount codes requires no external dependencies, as the validation and allocation logic operates independently within the Universal Commerce Protocol checkout process.

Why does my discount allocation not match the applied promo code amount?

Discount allocation mismatches occur when the sum of line item allocations does not equal the applied discount amount, violating the allocation invariant that this checkout process is designed to enforce.