What problem does it solve?
Provides clear, actionable documentation and examples to manage discount coupons in Tray, removing uncertainty about endpoints, payload formats, authentication, pagination, and relationship handling so developers can implement coupon workflows reliably.
Core Features & Use Cases
- Full CRUD for coupons: list, retrieve, create, update, and delete discount coupons via the /discount_coupons endpoints.
- Relationship management: bind coupons to customers, products, categories, brands, and shipping methods using the create_relationship endpoint and correct payload wrappers.
- Practical guidance: explains authentication (access_token query), pagination limits, required form-encoded wrappers, field meanings (code, type, value, limits), and best practices for batch operations and constraints.
Quick Start
Create a 10% coupon named PROMO10 valid for 30 days and bind it to product IDs 456 and 789 using the Tray /discount_coupons endpoints and the create_relationship POST.