Ucp orders webhooks

From OrcaQubits/agentic-commerce-skills-plugins · View interactive version

Ucp orders webhooks is an AI agent skill from the GitHub repository OrcaQubits/agentic-commerce-skills-plugins. Implement UCP Order capability and webhook delivery — post-purchase order management with fulfillment tracking, adjustments (refunds/returns), and cryptographically signed webhook notifications. Use when building order management or webhook infrastructure.

How to use this skill

Skill file

UCP Orders & Webhooks

Before writing code

Fetch live spec: Web-search site:ucp.dev specification order and fetch the page for the exact order data model, webhook envelope, and signature format.

Also fetch https://ucp.dev/latest/specification/reference/ for adjustment types, fulfillment event types, and line item status derivation rules.

Conceptual Architecture

Order Capability (`dev.ucp.shopping.order`)

Orders represent the post-purchase lifecycle. An order is created when a checkout completes successfully. The order contains:

Line Item Status Derivation

Status is derived from quantities, not stored:

Fulfillment Event Types (open string enum)

Common values: processing, shipped, in_transit, delivered, failed_attempt, canceled, undeliverable, returned_to_sender. The set is extensible — new values may appear.

Adjustment Types (open string enum)

Common values: refund, return, credit, price_adjustment, dispute, cancellation. Also extensible.

Webhook Delivery

Webhook Signature (Detached JWT)

This is critical for security:

  1. Signing (Business side):
  1. Verification (Platform side):

Implementation Guidance

Business:

Platform:

Fetch the conformance test suite at https://github.com/Universal-Commerce-Protocol/conformance for webhook test cases.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.