tys.products.sizeMap.retrieve()
retrieve(idOrSku: string, options?: RequestOptions): Promise<ProductSizeMap>Parameters
Section titled “Parameters”idOrSkustringRequiredThe product's TryYourSize ID or your SKU (URL-encoded for you, so TEE/01 works).
optionsRequestOptionsOptionalReturns
Section titled “Returns”Promise<ProductSizeMap>: The size map: Studio size → your size label.
entriesobject[]Requiredunmapped_shop_valuesstring[]OptionalVariant size values of the product with no Studio size yet (read only).
Example
Section titled “Example”const map = await tys.products.sizeMap.retrieve("TEE-001");console.log(map.entries, map.unmapped_shop_values);size_map = tys.products.size_map.retrieve("TEE-001")print(size_map["entries"], size_map.get("unmapped_shop_values"))curl https://api.tryyoursize.com/v1/products/TEE-001/size_map \ -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.