Ir al contenido

tys.products.create()

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

Methodtryyoursize

Create a product. external_id (SKU / style ID) is unique per store (409).

def create(*, external_id: str, name: str, category: str, idempotency_key: Optional[str] = None) -> Product
external_idstrObligatorio

Your SKU / style ID, unique per store (409 otherwise).

namestrObligatorio

The product name.

categorystrObligatorio

The garment category, e.g. tshirt, jeans.

idempotency_keyOptional[str]Opcional= None

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).

product = tys.products.create(external_id="TEE-001", name="Basic tee", category="tshirt")

¿Te ha resultado útil esta página?