Create Advertisement
POST
/advertisementsThis endpoint allows you to create an advertisement post of the store on its pages.
Request
Advertisement Title.
Advertisement Description. 🌐 Support multi-language
Advertisement Type
Advertisement ID. The type.id
variable is requiredif
type.name
is any of these values: ["category" , "page" , "product"]
Advertisement Link. The type.link
is requiredif
type.name
is external_link
Advertisement expiry date.
Which pages should the advertisement appear on.
{
"title": "Adv Title",
"description": "Adv Description",
"type": {
"name": "product",
"id": 1261174103,
"link": null
},
"expire_date": "2022-12-31",
"pages": [
"all"
]
}
Request samples
[api.label.responses]
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.
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.
Advertisement ID
Advertisement Title
Advertisement Description. 🌐 Support multi-language
Which pages should the advertisement appear on
{
"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"
]
}
}