v1.2
Commerce resource APIs
Six new resource APIs are live under /api/v1, all on the scoped, idempotent,
audited Agent Gateway:
- Inventory & Locations — multi-location stock; set/adjust/move across quantity states.
- Discounts — code & automatic discounts (DiscountNode model).
- Gift Cards & Store Credit — issue/redeem gift cards, per-customer store credit.
- Draft Orders — invoices/B2B/phone orders; calculate → invoice → complete.
- Metafields — typed custom data on any resource + definitions.
- Returns — RMA lifecycle + reverse logistics.
Plus platform hardening: a generalized Idempotency-Key middleware on every mutating
group, reusable scope enforcement, and a centralized webhook topic catalog
(products/*, inventory_levels/update, discounts/*, gift_cards/*, draft_orders/*,
metafields/update, returns/*, refunds/disputes, GDPR compliance topics, bulk_operations/finish).