Skip to main content

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:

Page Resource

You can check more details about Get Pages Resource.

200 OK - If the page is successful
{
"code": 200,
"data": [
{
"id": 61,
"slug": "terms-and-conditions",
"title_en": "Terms And Conditions",
"title_ar": "الأحكام والشروط",
"in_footer": true,
//...
},
]
}
info

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:

Page Resource

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&quot;Arial&quot;,&quot;sans-serif&quot;;mso-fareast-font-family:&quot;Times New Roman&quot;;color:#7B858A\">مرحبا\nبكم في ...",
"content_en": "<p style=\"box-sizing: inherit; margin-bottom: 0.9rem; color: rgb(123, 133, 138); font-family: &quot;Helvetica Neue&quot;, 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": []
}
info

Check the following section to learn more about the Page Details API Reference