Create Upsell
Create a new upsell offer in your store.
Endpoint
POST /api/upsell/createRequest Body
| Field | Type | Required | Description |
|---|---|---|---|
| storeId | string | Yes | Store ID |
| creatdBy | string | No | Creator user ID |
| name | string | No | Internal name |
| title | string | No | Display title |
| description | string | No | Description |
| product | object | Yes | Main product object |
| collections | array | No | Collection IDs |
| products | array | No | Related product IDs |
| discount | string | No | Discount ID |
Example
json
{
"name": "Summer Upsell",
"title": "Get 20% Off on Accessories",
"description": "Special offer for summer collection.",
"product": {
"_id": "product_id",
"name": "Main Product"
},
"collections": ["collection_id1", "collection_id2"],
"products": ["product_id1", "product_id2"],
"discount": "discount_id"
}Response
json
{
"status": "success",
"data": {
"_id": "string",
"name": "Summer Upsell",
...
}
}