Create Product Option Value
Production
https://api.salla.dev/admin/v2
Production
https://api.salla.dev/admin/v2
POST
https://api.salla.dev/admin/v2
Product Option Values
Last modified:2025-05-08 12:45:57
option
as a path parameter.Note
product.type
variable set to product
, creating a new product option value will generate new variant for this new value.Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.salla.dev/admin/v2/products/options/' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "VG",
"price": 21,
"display_value": "Vg"
}'
Response Response Example
201 - Example
{
"status": 201,
"success": true,
"data": {
"id": 1130246629,
"name": "size",
"description": "The product is excellent",
"type": "radio",
"required": false,
"associated_with_order_time": 0,
"sort": 0,
"display_type": "text",
"visibility": "always",
"values": [
{
"id": 322122678,
"name": "XL",
"price": {
"amount": 180,
"currency": "SAR"
},
"display_value": "XL",
"option_id": 1130246629,
"image_url": "https://i.ibb.co/jyqRQfQ/avatar-male.webp",
"hashed_display_value": "XL"
}
],
"skus": [
{
"id": 652911549,
"price": {
"amount": 150,
"currency": "SAR"
},
"regular_price": {
"amount": 234,
"currency": "SAR"
},
"stock_quantity": 3000,
"barcode": "barcode-ABC",
"sku": "sku-variant-1551119600",
"related_option_values": [
667315336,
322122678
]
}
]
}
}
Request
Path Params
option
integer
required
Body Params application/json
Responses
Modified at 2025-05-08 12:45:57