tys.products.retrieve()
Esta página aún no está disponible en tu idioma.
retrieve(idOrSku: string, options?: RequestOptions): Promise<Product>Parameters
Section titled “Parameters”idOrSkustringObligatorioThe product's TryYourSize ID or your SKU (URL-encoded for you, so TEE/01 works).
optionsRequestOptionsOpcionalReturns
Section titled “Returns”Promise<Product>: The product.
idstringObligatorioexternal_idstringObligatorioThe brand's SKU or style ID (unique per brand).
namestringObligatoriocategoryGarmentCategoryObligatorioThe garment type; it sets which POMs are needed.
published_versionintegerOpcionalGarment version shoppers are fitted against, if any.
draft_versionintegerOpcionalGarment version being edited, if any.
created_atstringObligatorioupdated_atstringObligatoriofit_group_idstringOpcionalThe fit group whose garment this product uses (absent until grouped).
brand_idstringOpcionalThe brand the product belongs to; every store of the brand sees it.
home_store_idstringOpcionalThe store the product was created in.
retired_atstringOpcionalSet when the product is retired; shoppers no longer get a size for it.
availablebooleanOpcionalWhether the store it was read through offers it (false in the brand list, see stores).
Example
Section titled “Example”const product = await tys.products.retrieve("TEE-001"); // TryYourSize ID or your SKUproduct = tys.products.retrieve("TEE-001") # TryYourSize ID or your SKUcurl https://api.tryyoursize.com/v1/products/TEE-001 \ -H "Authorization: Bearer $TRYYOURSIZE_SECRET_KEY" \ -H "TYS-Version: 2026-10-25"See also
Section titled “See also”¿Te ha resultado útil esta página?
Gracias. Leemos todas las respuestas.