Light Mode
Update Special Offer
PUT
/specialoffers/{specialoffer}Last modified: a month ago
This endpoint allows you to update special offer details by passing the specialoffers
as a path parameter.
Request
Path Params
specialoffer
integer
required
Unique identification number assigned to the Special Offer. List of Special Offers IDs can be found here
Body Params application/json
No schema defined
Example
{
"name": "new offer",
"applied_channel": "browser_and_application",
"offer_type": "buy_x_get_y",
"applied_to": "product",
"expiry_date": "12/12/2025",
"min_purchase_amount": 100,
"min_items_count": 2,
"min_items": 0,
"buy": {
"type": "product",
"min_amount": 10,
"quantity": 3,
"products": [
401511871
],
"payment_methods": [
1473353380,
1298199463,
349994915
]
},
"get": {
"type": "product",
"discount_type": "percentage",
"discount_amount": 5,
"quantity": 20,
"products": [
401511871
]
}
}
Request samples
Responses
Success(200)
Not Found(404)
Error Validation(422)
Unauthorized(401)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
status
number
optional
Response status code, a numeric or alphanumeric identifier used to convey the outcome or status of a request, operation, or transaction in various systems and applications, typically indicating whether the action was successful, encountered an error, or resulted in a specific condition.
success
boolean
optional
Response flag, boolean indicator used to signal a particular condition or state in the response of a system or application, often representing the presence or absence of certain conditions or outcomes.
data
#/definitions/1307299optional
Example
{
"status": 200,
"success": true,
"data": {
"id": 1935541690,
"name": "new offer",
"message": "اشتري 3 قطع واحصل على 20 قطع خصم 5% من المنتجات التالية",
"expiry_date": "2025-03-17 00:00:00",
"start_date": "2023-03-17 00:00:00",
"offer_type": "buy_x_get_y",
"status": "inactive",
"show_price_after_discount": false,
"buy": {
"type": "product",
"quantity": 3,
"products": [
{
"id": 401511871,
"type": "food",
"promotion": {
"title": "Ramadan Saeed",
"sub_title": "Ramadan Mubarak Offer"
},
"status": "sale",
"is_available": true,
"sku": "",
"name": "بيتزا",
"price": {
"amount": 40.25,
"currency": "SAR"
},
"sale_price": {
"amount": 0,
"currency": "SAR"
},
"currency": "SAR",
"url": "https://salla.sa/dev-wofftr4xsra5xtlv/بيتزا/p401511871",
"thumbnail": "https://cdn.salla.sa/bYQEn/hG0U3oATexBxt4j5QjMt8jcNUi12v97KFw9Q1xTA.jpg",
"has_special_price": false,
"regular_price": {
"amount": 40.25,
"currency": "SAR"
},
"calories": "500.00",
"mpn": "23423",
"gtin": "23343231324",
"favorite": "Product is favourit"
}
]
},
"get": {
"type": "product",
"discount_type": "percentage",
"quantity": "20",
"products": []
}
}
}
Last modified: a month ago