tray-multicd

Manage distribution centers and per-center stock via Tray's Multi-CD API.

14|Updated Mar 21, 2026
One-click install
npx skills add https://github.com/tray-tecnologia/tray-api-claude-plugin --skill tray-multicd
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tray-multicd
Source: https://github.com/tray-tecnologia/tray-api-claude-plugin/tree/main/skills/multicd
Command: npx skills add https://github.com/tray-tecnologia/tray-api-claude-plugin --skill tray-multicd

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enables developers to manage multiple distribution centers (CDs) and per-center inventory across a Tray store, removing manual reconciliation and enabling accurate, region-aware stock allocation and fulfillment decisions.

Core Features & Use Cases

  • List, create, update, and delete distribution centers with address, CEP, priority and activation status.
  • Query and update stock per product or per variant at each distribution center and paginate results.
  • Webhook-driven synchronization using product_stock and variant_stock events to keep external systems and ERPs in sync.
  • Use Case: Route orders to the best CD based on availability, priority and proximity and update per-CD stock from warehouse systems.

Quick Start

List distribution centers and update product 100 stock to 150 units at the São Paulo distribution center using the Tray Multi-CD endpoints and your access_token.

Frequently Asked Questions about tray-multicd

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

FAQPage Schema
How do I manage per-CD stock for products across multiple distribution centers in Tray?

Per-CD stock management in Tray uses the Multi-CD API to query and update inventory levels for specific products or variants at each distribution center. You list centers, then apply stock updates per product or variant using paginated results.

What's the best way to sync external ERP inventory with Tray distribution centers?

Webhook-driven synchronization using product_stock and variant_stock events keeps external systems and ERPs in sync with Tray distribution centers. You configure webhooks to trigger updates whenever stock changes occur, ensuring accurate region-aware fulfillment.

Can I create and configure distribution centers with custom priority and address through the Tray API?

Creating distribution centers through the Tray Multi-CD API supports setting address, CEP, priority, and activation status. You can list, create, update, and delete centers to route orders based on availability, priority, and proximity.

Do I need an access_token to query and update inventory across distribution centers?

Authenticated requests with an access_token query parameter are required to manage distributed inventory and distribution centers using the Tray Multi-CD API. Every listing, stock update, and center configuration operation requires this authentication.

Does the Tray Multi-CD API support paginated listings for large product catalogs?

Paginated listings are supported for querying distribution centers and per-center stock across large product catalogs. This allows you to retrieve distribution center inventory data in manageable chunks without exceeding response limits.

Why use multiple distribution centers instead of a single stock pool for e-commerce fulfillment?

Multiple distribution centers enable region-aware stock allocation and accurate fulfillment decisions by routing orders to the best CD based on availability, priority, and proximity. This removes manual reconciliation and optimizes delivery across distributed warehouses.