v1.57
Products API for apps: batch reads, filters, bulk variant updates
Read and edit a whole catalog in a handful of requests. The Agent Gateway products API now does what apps need for bulk editing.
New for app developers
- List products with their variants.
GET /products?include=variantsreturns up to 250 products per call with every variant's price, compare-at price, SKU and stock. Filter bystatus,vendor,product_type,tag,collection_id,query(title, handle or SKU),idsandupdated_at_min/max, choose fields withfields=, and page with apage_infocursor andLinkheader.GET /products/countcounts matches. See Products. - Bulk variant update.
POST /products/variants/bulk_updatechanges up to 250 variants in one call, with a result per variant andIdempotency-Keyreplay. See Bulk edit prices. - Rate-limit headers. Every response carries
X-PlatformDTC-Api-Call-Limit: used/limitplusRateLimit-Limit,RateLimit-RemainingandRateLimit-Reset; a429addsRetry-After. One budget per key across the whole gateway. See Rate limits.
Changed
- One money format on the gateway. Product and variant amounts are decimal strings in the store currency,
"19.99", withcurrencyon each product, in the list, the product detail and every write response. The product detail used to return integer cents and the list returned numbers in dollars. The dashboard API (/api/v1/products) still uses integer cents. GET /products/{id}on the gateway always returns variants and images.
Fixed
- The install docs sent merchants to
api.platformdtc.com/api/v1/appstore/oauth/authorize, which answers a browser with401. The consent page ishttps://platformdtc.com/apps/authorize. See Install flow. - The public API reference now documents
GET/PUT /products/{id}, variant updates andGET /collections.