Light Mode
Create Advertisement
POST
/advertisementsLast modified: 22 days ago
This endpoint allows you to create an advertisement post of the store on its pages.
Request
Body Params application/json
No schema defined
Example
{
"title": "Adv Title",
"description": "Adv Description",
"type": {
"name": "product",
"id": 1261174103,
"link": null
},
"expire_date": "2022-12-31",
"pages": [
"all"
]
}
Request samples
Responses
Success(200)
Error Validation(422)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
No schema defined
Example
{
"status": 200,
"success": true,
"data": {
"id": 1549230938,
"title": "Adv Title",
"description": "Adv Description",
"type": {
"id": 1261174103,
"name": "product",
"link": null
},
"style": {
"icon": "sicon-bell",
"font_color": "#ffffff",
"background_color": "#9d8383"
},
"expire_date": {
"date": "2022-12-12 00:00:00.000000",
"timezone_type": 3,
"timezone": "Asia/Riyadh"
},
"pages": [
"all"
]
}
}
Last modified: 22 days ago