Ir al contenido

tys.products.retrieve()

Esta página aún no está disponible en tu idioma.

Method@tryyoursize/node

retrieve(idOrSku: string, options?: RequestOptions): Promise<Product>
idOrSkustringObligatorio

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

optionsRequestOptionsOpcional

Promise<Product>: The product.

idstringObligatorio
external_idstringObligatorio

The brand's SKU or style ID (unique per brand).

namestringObligatorio
categoryGarmentCategoryObligatorio

The garment type; it sets which POMs are needed.

published_versionintegerOpcional

Garment version shoppers are fitted against, if any.

draft_versionintegerOpcional

Garment version being edited, if any.

created_atstringObligatorio
updated_atstringObligatorio
fit_group_idstringOpcional

The fit group whose garment this product uses (absent until grouped).

brand_idstringOpcional

The brand the product belongs to; every store of the brand sees it.

home_store_idstringOpcional

The store the product was created in.

retired_atstringOpcional

Set when the product is retired; shoppers no longer get a size for it.

availablebooleanOpcional

Whether the store it was read through offers it (false in the brand list, see stores).

const product = await tys.products.retrieve("TEE-001"); // TryYourSize ID or your SKU

¿Te ha resultado útil esta página?