ライトモード
List Product Variants
GET
/products/{product}/variants最終更新: a month ago
This endpoint allows you to list all product variants directly from this endpoint by passing the product
as a path parameter.
Request
Pathパラメータ
product
integer
必須
Product ID. List of Product ID can be found here.
Request samples
Response
Success(200)
Not Found(404)
HTTP Code: 200
Content Type : JSONapplication/json
データ構造
No schema defined
例
{
"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": []
}
}
最終更新: a month ago