Ir al contenido

tys.products.create()

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

Method@tryyoursize/node

create(input: ProductInput, options?: RequestOptions): Promise<Product>
inputProductInputObligatorio
Propiedades
external_idstringObligatorio
namestringObligatorio
categoryGarmentCategoryObligatorio

The garment type; it sets which POMs are needed.

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.create({
external_id: "TEE-001", // your SKU / style ID, unique per store
name: "Basic tee",
category: "tshirt",
});

¿Te ha resultado útil esta página?