Salla Docs
Merchant API
  • Merchant API
  • Salla OAuth 2.0
Partner APIs
  • App API
  • Shipment API
Storefront
  • Twilight Engine
  • Twilight SDK
  • Web Components
  • Change Log
Salla CLI
Merchant API
  • Merchant API
  • Salla OAuth 2.0
Partner APIs
  • App API
  • Shipment API
Storefront
  • Twilight Engine
  • Twilight SDK
  • Web Components
  • Change Log
Salla CLI
Salla - Opensource
Salla - Developers Community
  1. Product
  • Overview
  • Languages
  • Notify
  • Event
  • Storage
  • Configuration
  • Forms
  • Helpers
  • Auth
    • Login
    • Logout
    • Verify
    • Resend
    • Register
    • Refresh
  • Cart
    • Latest
    • Details
    • Quick Add
    • Add Item
    • Delete Item
    • Delete Image
    • Add Coupon
    • Remove Coupon
    • Get Upload Image
    • Get Quick Order Settings
    • Create Quick Order
    • Order Status
    • Get Current Cart Id
    • Price Quote
  • Wishlist
    • Add
    • Remove
    • Toggle
  • Loyalty
    • Get Program
    • Exchange
    • Reset
  • Comment
    • Add Comment
    • Fetch
    • Get Page Comments
    • Get Product Comments
  • Profile
    • Update profile
    • Update contact
  • Product
    • Get price
    • Product availability
    • Categories
    • Offer details
    • Search products
    • Get Gift Details
    • Add Gift To Cart
    • Upload Gift Image
    • Get Product Details
    • Fetch
    • Fetch Options
    • Size Guides
  • Order
    • Create cart from order
    • Cancel
    • Send invoice
    • Show order
  • Booking
    • Add
  • Rating
    • Order
    • Store
    • Products
    • Shipping
  • Currency
    • Change
    • List
  • Component
    • Reviews
    • Menus
  1. Product

Size Guides

This endpoint is used to fetch the size guide for a specific product in an online store. The endpoint takes a product_id parameter, which is the ID of the product for which the size guide is being fetched.
TIP
The Size Guides endpoint has been implemented in the Product Size Guide Web Component, and It's all setup to save developer's time and effort.

Payload#

SizeGuidesPayload
product_id
number 
required
The product ID

Response#

Success
Error
product.getSizeGuides.success
success
boolean 
optional
Response flag
status
enum<number> 
optional
Allowed values:
200201202
data
object 
optional
Data is available when the success is true
name
string 
optional
This value contains the name of the size guide. It is a string value that can be used to identify the size guide.
description
string 
optional
This value contains a description of the size guide. It is a string value that provides additional information about the size guide, such as how to use it or what it contains.

Usage#

To perform the action of retrieving the size guide for any product, the developer may call the method getSizeGuides() and pass in the product ID as an argument as follows:

Events#

This endpoint may trigger two events, the onSizeGuideFetched and onSizeGuideFetchFailed events.

onSizeGuideFetched#

This event is triggered when the action of retrieving the size guide for any product is done without having any errors coming back from the backend.

onSizeGuideFetchFailed#

This event is triggered when the action of retrieving retrieving the size guide for any product is not completed and an error has occurred.
Previous
Fetch Options
Next
Order