Skip to content

tys.products.garments.list()

Method@tryyoursize/node

Garment versions, newest first (a single page: has_more is always false).

list(idOrSku: string, options?: RequestOptions): PagePromise<GarmentVersionPage, GarmentVersion>
idOrSkustringRequired

The product's TryYourSize ID or your SKU (URL-encoded for you, so TEE/01 works).

optionsRequestOptionsOptional

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.

const { data } = await tys.products.garments.list("TEE-001"); // newest first

Was this page helpful?