Light Mode
List Product Variants
GET
/products/{product}/variantsLast modified: 16 days ago
This endpoint allows you to list all product variants directly from this endpoint by passing the product
as a path parameter.
Request
Path Params
product
integer
required
Product ID. List of Product ID can be found here.
Request samples
Responses
Success(200)
Not Found(404)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
No schema defined
Example
{
"status": 200,
"success": true,
"data": [
{
"id": 652911549,
"price": {
"amount": 13.5,
"currency": "SAR"
},
"sale_price": {
"amount": 0,
"currency": "SAR"
},
"regular_price": {
"amount": 0,
"currency": "SAR"
},
"stock_quantity": 3000,
"barcode": "barcode-ABC",
"sku": "sku-variant-1551119600",
"related_option_values": [
667315336
],
"weight": 3,
"weight_type": "kg",
"weight_label": "٣ كجم"
}
],
"pagination": {
"count": 1,
"total": 1,
"perPage": 60,
"currentPage": 1,
"totalPages": 1,
"links": []
}
}
Last modified: 16 days ago