Light Mode
Special Offer Details
GET
/specialoffers/{specialoffer}Last modified: a month ago
This endpoint allows you to return the complete details for a specific special offer by passing the specialoffer
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
Request samples
Responses
Success(200)
Not Found(404)
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": 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"
}
}
}
Last modified: a month ago