Add feature
Developing
POST
{{ecommercev2_url}}/features/
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST '{{ecommercev2_url}}/features/' \
--header 'Content-Type: application/json' \
--header 'x-access-token;' \
--data-raw '{
"name": "Premium Video Streaming",
"slug": "premium-video-streaming",
"groupId": "67f28b11fb2eb76e57a7f66f",
"serviceId": "507f1f77bcf86cd799439012",
"description": "High quality video streaming feature with multiple resolution support",
"hasQuantity": true,
"quantity": 100,
"isActive": true,
"units": "streams",
"hasSubscription": true,
"image": "https://example.com/images/video-streaming.jpg",
"monthlyPrice": {
"active": true,
"currencies": [
{
"currencyId": "507f1f77bcf86cd799439013",
"price": 29.99
},
{
"currencyId": "507f1f77bcf86cd799439014",
"price": 24.99
}
]
},
"annualPrice": {
"active": true,
"currencies": [
{
"currencyId": "507f1f77bcf86cd799439013",
"price": 299.99
},
{
"currencyId": "507f1f77bcf86cd799439014",
"price": 249.99
}
]
},
"pricePerUser": {
"active": false,
"currencies": []
},
"featureDependencies": [
"507f1f77bcf86cd799439015",
"507f1f77bcf86cd799439016"
]
}'
Response Response Example
{}
Request
Body Params application/json
Responses
Modified at 2025-04-20 13:06:08