tys.products.garments.list()
Garment versions, newest first (a single page: has_more is always false).
list(idOrSku: string, options?: RequestOptions): PagePromise<GarmentVersionPage, GarmentVersion>Parameters
Section titled “Parameters”idOrSkustringRequiredThe product's TryYourSize ID or your SKU (URL-encoded for you, so TEE/01 works).
optionsRequestOptionsOptionalReturns
Section titled “Returns”PagePromise<GarmentVersionPage, GarmentVersion>: The product’s garment versions, newest first (a single page). Await it for one page ({ data, has_more, next_cursor }), or for await over every item. See PagePromise.
Example
Section titled “Example”const { data } = await tys.products.garments.list("TEE-001"); // newest firstversions = tys.products.garments.list("TEE-001") # newest firstcurl https://api.tryyoursize.com/v1/products/TEE-001/garments \ -H "Authorization: Bearer $TRYYOURSIZE_SECRET_KEY" \ -H "TYS-Version: 2026-10-25"See also
Section titled “See also”Was this page helpful?
Thank you. We read every answer.