Skip to content

Recommendation

Type@tryyoursize/sdk

interface Recommendation
productstringRequired
statusRecommendationStatusRequired
sizestring | nullRequired

The recommended size in the store's own label (its size map), or null.

studioSizestring | nullRequired

The same size as entered in TryYourSize Studio, or null.

wearableSizesstring[]Optional

Sizes that can be worn on this body, in the store's labels (when simulated).

{
"product": "SKU-123",
"status": "ready",
"size": "M",
"studioSize": "M",
"wearableSizes": ["M", "L"]
}

status is one of:

  • ready: size is the recommended size.
  • computing: a try-on the shopper started is running; you get another recommendation when it finishes.
  • none: no size of this garment can be worn on this body.
  • signed_out: no TryYourSize session on your site.
  • unavailable: signed in, but no size for this product yet (no garment data, no body yet, or not tried on). Page views never start a simulation; the shopper does, with “See it on you”.

Was this page helpful?