marketplace-fulfillment

Implement VTEX External Seller fulfillment with reservation-based orders and OMS invoice updates.

Updated Mar 27, 2026
One-click install
npx skills add https://github.com/exilonX/ap2 --skill marketplace-fulfillment-exilonx
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: marketplace-fulfillment
Source: https://github.com/exilonX/ap2/tree/main/.agents/skills/marketplace-fulfillment
Command: npx skills add https://github.com/exilonX/ap2 --skill marketplace-fulfillment-exilonx

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill solves the integration gap when building an External Seller fulfillment connector for VTEX marketplace by providing the fulfillment simulation, reservation-based order placement, authorize-fulfillment dispatch, and OMS invoice/tracking follow-up workflow with correct ID mapping.

Core Features & Use Cases

  • Fulfillment simulation (indexation + checkout): Implement POST /pvt/orderForms/simulation to return per-item availability plus aligned logisticsInfo and SLAs (including pickup-in-point when offered), while meeting the 2.5s SLA.
  • Reservation-based order placement and dispatch: Implement POST /pvt/orders (array in, array out) to create reservations and return them as orderId, then handle POST /pvt/orders/{sellerOrderId}/fulfill to commit the reservation into a firm order and return OMS-ready receipt data.
  • OMS invoice and tracking for marketplace: Call POST /api/oms/pvt/orders/{marketplaceOrderId}/invoice for Output invoices and PATCH /api/oms/pvt/orders/{marketplaceOrderId}/invoice/{invoiceNumber} for tracking, including correct partial invoicing per split shipment.

Use case: a seller-side service must answer VTEX within the simulation SLA, place orders with a reservation id, then generate correct invoices and tracking updates in OMS so customers see accurate shipment status.

Quick Start

Use marketplace-fulfillment to implement VTEX External Seller fulfillment: simulate logistics and SLAs, place reservation orders with correct orderId echoing, authorize and dispatch fulfillment, then send marketplace OMS invoices and tracking updates using the marketplaceOrderId.

Frequently Asked Questions about marketplace-fulfillment

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

FAQPage Schema
How do I implement VTEX External Seller fulfillment simulation with correct SLAs?

Implement VTEX fulfillment simulation by handling `POST /pvt/orderForms/simulation` to return per-item availability and aligned logisticsInfo within a strict 2.5s latency limit. The response must include accurate SLAs and pickup-in-point options to validate checkout indexation.

How does reservation-based order placement work for VTEX marketplace connectors?

Reservation-based order placement uses `POST /pvt/orders` to accept an array of items and echo back an array containing the reservation `orderId`. You then authorize dispatch via `POST /pvt/orders/{sellerOrderId}/fulfill` to convert the reservation into a firm order.

Why do my VTEX OMS invoice calls fail when using the reservation orderId?

OMS invoice and tracking calls fail because you must map and use `marketplaceOrderId` in OMS endpoints, not the reservation id. Send invoices to `POST /api/oms/pvt/orders/{marketplaceOrderId}/invoice` and tracking updates via PATCH to the same marketplace order path.

Can I send partial invoices for split shipments through the VTEX OMS API?

Yes, you can send partial invoices for split shipments by calling `POST /api/oms/pvt/orders/{marketplaceOrderId}/invoice` for each Output invoice. Update tracking for each split shipment using `PATCH /api/oms/pvt/orders/{marketplaceOrderId}/invoice/{invoiceNumber}`.

What is the correct response shape for VTEX external seller order placement?

The correct response shape for `POST /pvt/orders` is an array-in, array-out structure. Your external seller connector must echo back the array containing the newly created reservation `orderId` so VTEX can correctly link the marketplace order with the seller's fulfillment system.