tray-variacoes

Manage product variant CRUD operations through the Tray API.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides clear, actionable instructions and examples to interact with the Tray API endpoints for product variants so developers can avoid manual API discovery, inconsistent payloads, and incorrect attribute inheritance when managing SKUs.

Core Features & Use Cases

  • CRUD for Variants: Guidance for listing, retrieving, creating, updating, and deleting product variants via the Tray endpoints.
  • Attribute Inheritance & Values: Explains how variants inherit fields from the parent product (price, weight, dimensions) and how to structure the values array for attributes like color and size.
  • Pagination and Media: Details pagination parameters and points out that variant images are handled through the separate images API endpoint.

Quick Start

Add size and color variations to product 456 with individual prices and stock values using the configured access_token.

Frequently Asked Questions about tray-variacoes

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

FAQPage Schema
How do I create product variants and SKUs using the Tray ecommerce API?

Product variants inherit fields like price, weight, and dimensions from the parent product in the Tray API, meaning child SKUs automatically adopt parent values unless explicitly overridden in the variant payload.

How do I list and retrieve Tray product variants with pagination?

Retrieve product variants through the Tray API by applying pagination parameters to the listing endpoint, allowing you to systematically fetch and manage large catalogs of SKUs efficiently.

How do I update stock and pricing per variant in the Tray API?

Do I need a product_id to manage product variants via the Tray API? Yes, a product_id is required to create variants, alongside an access_token passed as a query parameter for authentication, ensuring SKUs are correctly linked to their parent product.

Does the Tray API handle variant images through the product variants endpoint?

Variant images are not handled through the product variants endpoint; the Tray API manages media separately through a dedicated images API endpoint to associate pictures with specific SKUs.