# marketplace-order-hook

Guides VTEX order integrations built with Feed v3 or Hook. Use it when a webhook must validate events, fetch order data, and avoid duplicate processing.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 1000 installs · ★ 46
- Author: vtex
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/vtex/skills/tree/HEAD/skills/marketplace-order-hook/SKILL.md
- Updated: 2026-10-14
- HTML: https://affpapa.org/en/nevibecode/skills/marketplace-order-hook

## What it does

This skill covers order integrations between a VTEX marketplace and systems such as ERPs, WMS platforms, or fulfillment services. It helps choose Feed v3 for pull-based consumption or Hook for push delivery, then select `FromWorkflow` for status changes or `FromOrders` for JSONata-based order filtering.

A Hook notification carries the order ID and state rather than the complete order record. The integration must fetch the full record through `GET /api/oms/pvt/orders/{orderId}`. The guidance also checks `Origin.Account`, `Origin.Key`, and the configured custom header, then uses `OrderId`, `State`, and `LastChange` to prevent duplicate work. A Hook handler that cannot return HTTP 200 within 5000ms will not meet this constraint.

Feed events remain in a queue until they are committed, while Hook delivery requires an available endpoint. The two filter modes cannot share one configuration request; VTEX responds with `409 Conflict` when both are used.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add vtex/skills --skill marketplace-order-hook -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/marketplace-order-hook/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/marketplace-order-hook/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add vtex/skills --skill marketplace-order-hook -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/marketplace-order-hook/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add vtex/skills --skill marketplace-order-hook -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/marketplace-order-hook/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install vtex/skills marketplace-order-hook
```

2. **Manually: put the files in place**
- File: `.github/skills/marketplace-order-hook/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add vtex/skills --skill marketplace-order-hook -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/vtex/skills --path skills/marketplace-order-hook
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/marketplace-order-hook/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add vtex/skills --skill marketplace-order-hook -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/vtex/skills/tree/HEAD/skills/marketplace-order-hook/SKILL.md

## When to use it
- choose Feed v3 or Hook for order updates
- filter events by status or order properties
- retrieve full order data from a notification
- validate VTEX webhook credentials
- deduplicate repeated order events

## Example prompts
- Design a VTEX Hook handler for order status changes.
- Compare Feed v3 with Hook for sending marketplace orders to an ERP.
- Review this webhook handler and add checks for `Origin.Account`, `Origin.Key`, and duplicate events keyed by `OrderId`, `State`, and `LastChange`.

## Similar
- [mcp-builder](https://affpapa.org/en/nevibecode/skills/mcp-builder.md) — skill · 130949 installs
- [claude-api](https://affpapa.org/en/nevibecode/skills/claude-api.md) — skill · 74198 installs
- [lark-im](https://affpapa.org/en/nevibecode/skills/lark-im.md) — skill · 472900 installs
- [lark-event](https://affpapa.org/en/nevibecode/skills/lark-event.md) — skill · 466800 installs
- [caveman-discover](https://affpapa.org/en/nevibecode/skills/caveman-discover.md) — skill · 104400 installs
- [migration](https://affpapa.org/en/nevibecode/skills/migration.md) — skill · 103900 installs

From the same set: [vtex/skills](https://affpapa.org/en/nevibecode/by/vtex/skills.md) — 38 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
