Light Mode
List Special Offers
GET
/specialoffersLast modified: 23 days ago
This endpoint allows you to list all special offers related to the store.
Request
Query Params
per_page
integer
optional
Products limit per page
page
integer
optional
The Pagination page number
Request samples
Responses
Success(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
No schema defined
Example
{
"status": 200,
"success": true,
"data": [
{
"id": 1000479948,
"name": "اشتري 1 واحصل على الاخر مجانا",
"message": "اشتري قطعة واحصل على قطعة واحدة مجاناً من التصنيفات التالية",
"expiry_date": null,
"start_date": null,
"offer_type": "buy_x_get_y",
"status": "active",
"show_price_after_discount": null,
"show_discounts_table_message": false,
"buy": {
"type": "category",
"quantity": 1,
"categories": [
{
"id": 1032561074,
"name": "الفساتين",
"urls": {
"customer": "https://salla.sa/dev-wofftr4xsra5xtlv/الفساتين/c1032561074",
"admin": "https://s.salla.sa/categories"
},
"items": [],
"parent_id": 0,
"status": "active",
"sort_order": 1,
"update_at": {
"date": "2022-04-25 19:46:26.000000",
"timezone_type": 3,
"timezone": "Asia/Riyadh"
}
}
]
},
"get": {
"type": "category",
"discount_type": "free-product",
"categories": [
{
"id": 1548055,
"name": "الفساتين",
"avatar": "sicon-store2",
"created_at": "2021-11-01T13:46:06.000000Z",
"updated_at": "2022-04-25T16:46:26.000000Z",
"deleted_at": null,
"store_id": 577778,
"parent_id": 0,
"products_counts": 4,
"show_in_menu": 0,
"sort_order": 1,
"status": "active",
"has_hidden_products": 0,
"show_in_app": 1,
"extra_attributes": [],
"custom_url": null
}
],
"discount_amount": "0.00"
}
},
{
"id": 1799075371,
"name": "new offer",
"message": "اشتري قطعة واحصل على خصم 5 ر.س من المنتجات التالية",
"expiry_date": "2024-02-14 15:20:00",
"start_date": null,
"offer_type": "fixed_amount",
"status": "active",
"show_price_after_discount": null,
"show_discounts_table_message": false,
"applied_to": "product",
"buy": {
"min_amount": 10,
"min_items": 0,
"products": []
},
"get": {
"discount_amount": "5.00"
}
},
{
"id": 1410023903,
"name": "نسبة من المشتريات",
"message": "احصل على خصم {offer_percent}",
"expiry_date": "2022-06-26 20:45:00",
"start_date": "2022-06-21 09:50:00",
"offer_type": "percentage",
"status": "active",
"show_price_after_discount": false,
"show_discounts_table_message": false,
"applied_to": "order",
"buy": {
"min_amount": 200,
"min_items": 0
},
"get": {
"discount_amount": "10.00"
}
}
],
"pagination": {
"count": 3,
"total": 3,
"perPage": 30,
"currentPage": 1,
"totalPages": 1,
"links": []
}
}
Last modified: 23 days ago