Requires read_product access scope. More access scope
The Variant List By SKU API allows users to retrieve all product variants associated with a specific SKU. This endpoint is useful for identifying variants under the same SKU, enabling efficient management and troubleshooting of product variants.This API is especially useful for:
Retrieve all variants under the same SKU to manage grouped products effectively.
Support inventory and pricing adjustments for products sharing the same SKU.
Additional details about the variant's dimensions or origin.
variants[ ].extend.length
number
No
10
length
variants[ ].extend.width
number
No
10
width
variants[ ].extend.height
number
No
10
height
variants[ ].extend.dimension_unit
string
No
"in"
dimension_unit
variants[ ].extend.origin_country_code
string
No
"AS"
Country of origin code of the product.
variants[ ].extend.hs_code
string
No
"6211439"
HS codes are the international standard for commodity classification, and Shoplazza can automatically generate HS codes based on commodity information.
Error Response
Error responses in the API can be represented using two different fields: errors and error. Both fields provide details about issues encountered during request processing. Below is an explanation of the fields with their respective examples and descriptions.
Field
Type
Example
Description
errors
Array
["No Context"]
A list of errors encountered during the request processing.
Field
Type
Example
Description
error
Array
"store is not active"
Indicates an error encountered during the process.
Error Details
Status Code
Message
Possible Reason
Example Response
400
Bad Request
Invalid input format or request structure (e.g., missing required fields or incorrect data types).
Bad Request
Unauthorized
The request is missing valid authentication credentials or the credentials provided are invalid.
Unauthorized
API Structure Overview
Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!