Acp orders webhooks

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

Acp orders webhooks is an AI agent skill from the GitHub repository OrcaQubits/agentic-commerce-skills-plugins. Implement ACP order lifecycle management and webhook event delivery. Use when building order creation, status tracking, fulfillment updates, post-purchase adjustments, and HMAC-signed webhook emission.

How to use this skill

Skill file

ACP Orders & Webhooks

Before writing code

Fetch live docs:

  1. Web-search site:github.com agentic-commerce-protocol rfcs orders for the orders RFC
  2. Fetch https://developers.openai.com/commerce/guides/key-concepts/ for order lifecycle details
  3. Web-search site:github.com agentic-commerce-protocol examples orders for order webhook examples
  4. Web-search site:docs.stripe.com agentic-commerce webhook for Stripe webhook guidance

Conceptual Architecture

Order Lifecycle

After checkout completion, the order moves through these statuses:

created → confirmed → manual_review → processing → shipped → delivered
    |         |            |              |            |          |
    +─────────+────────────+──────────────+────────────+──────────+→ canceled

7 statuses:

Webhook Events

Merchants emit two event types to the agent platform:

Webhook Payload

Each webhook event contains:

HMAC Webhook Signatures

All webhook events MUST be signed:

Post-Purchase Order Adjustments

ACP supports adjustments after order creation:

| Type | Description |

|------|-------------|

| refund | Full refund |

| partial_refund | Partial amount refund |

| store_credit | Refund as store credit |

| return | Buyer returns goods |

| exchange | Swap for different item |

| cancellation | Order cancellation |

| dispute | Buyer disputes charge |

| chargeback | PSP-initiated chargeback |

Each adjustment has its own status: pending, completed, failed.

Order Object

The order contains:

Best Practices

Fetch the orders RFC and webhook examples from the GitHub repo for exact event shapes, signature format, and field definitions before implementing.

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.