Tray Customer Management
Manages customer records for Tray e-commerce, including registration, Brazilian document validation, and newsletter status.
This skill integrates Claude Code with the Tray e-commerce Customer API, allowing developers to manage customer data with precision. It handles the complete lifecycle of customer records—including creation, updates, and filtering—while enforcing strict Brazilian business rules such as CPF/CNPJ validation. By automating the inclusion of mandatory fields like birth date and the required 'Customer' JSON wrapper, it prevents common API errors and ensures seamless synchronization between external systems and the Tray platform.
主な機能
01Automated Brazilian CPF and CNPJ document validation
0210 GitHub stars
03Support for both individual (PF) and corporate (PJ) entities
04Integrated newsletter opt-in management for LGPD compliance
05Full CRUD operations for Tray e-commerce customer profiles
06Pre-request payload validation to prevent 400 Bad Request errors
ユースケース
01Filtering and segmenting store customers by newsletter subscription status
02Automating new customer registration with validated Brazilian credentials
03Synchronizing customer databases between an external ERP and a Tray store