Pages
Get Pages
The List Pages API provides a list of all the pages on an e-commerce website that are displayed in the footer, along with their URLs.
Endpoint:
api/customer/pages
Http Method:
GET
Success Response:
You can check more details about Get Pages Resource.
{
"code": 200,
"data": [
{
"id": 61,
"slug": "terms-and-conditions",
"title_en": "Terms And Conditions",
"title_ar": "الأحكام والشروط",
"in_footer": true,
//...
},
]
}
Check the following section to learn more about the Page API Reference
Page Details
The "Page Details" API enables easy retrieval of comprehensive information for specific e-commerce website pages like "privacy-policy," "about-us," or "terms-and-conditions," enhancing user understanding when clicking on footer links.
Endpoint:
api/customer/pages/{slug}
Http Method:
GET
Request Parameters:
slug
: The slug is a URL-friendly version of the page link.
Success Response:
You can check more details about Page Details Resource.
{
"code": 200,
"message": "success",
"data": {
"id": 4,
"slug": "about-us",
"title_en": "About Us",
"title_ar": "عن إتصال",
"content_ar": "<div style=\"text-align: right; \"><p class=\"MsoNormal\" dir=\"RTL\" style=\"line-height: normal; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; direction: rtl; unicode-bidi: embed;\"><b><span lang=\"AR-SA\" style=\"font-size:10.5pt;font-family:\n"Arial","sans-serif";mso-fareast-font-family:"Times New Roman";color:#7B858A\">مرحبا\nبكم في ...",
"content_en": "<p style=\"box-sizing: inherit; margin-bottom: 0.9rem; color: rgb(123, 133, 138); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px;\"><span style=\"box-sizing: inherit; font-weight: 700;\">Welcome to ...",
"active": true,
"flag": "GENERAL",
"in_footer": true,
"order": 1,
"created_at": "2022-12-28T09:54:05.000000Z",
"updated_at": "2022-12-28T09:54:05.000000Z",
"iframe_url_ar": null,
"iframe_url_en": null,
"show_title": true,
"type": "html"
},
"meta": []
}
Check the following section to learn more about the Page Details API Reference