Fetch Upsells
Retrieve a list of upsell offers from your store.
Endpoint
GET /api/upsell/searchQuery Parameters
| Name | Type | Description |
|---|---|---|
| page | int | Page number (optional) |
| limit | int | Items per page (optional) |
| search | string | Search by name or title |
Response
json
{
"results": [
{
"_id": "string",
"storeId": "string",
"creatdBy": "string",
"name": "string",
"title": "string",
"description": "string",
"product": {
"_id": "string",
"name": "string"
},
"collections": ["string"],
"products": ["string"],
"discount": "string",
"createdAt": "2024-01-01T00:00:00.000Z"
}
],
"paginate": {
"total": 1,
"per_page": 20,
"current_page": 1,
"last_page": 1
}
}