Alzurk API

Database connected 91 endpoints across 26 groups
Base URL: https://api.alzurk.com/api/

Auth

POST /api/auth/signUp.php Register a new customer account
POST /api/auth/signIn.php Log in
POST /api/auth/googleSignIn.php Continue with Google
POST /api/auth/emailVerify.php Verify email with the code sent at signup
POST /api/auth/forgetPassword.php Request a password reset code
POST /api/auth/resetPassword.php Reset password with the emailed code
POST /api/auth/changePassword.php Change password (logged in)
POST /api/auth/updateProfile.php Update the logged-in customer's profile

Products

GET /api/products/getProducts.php List products (filterable)
GET /api/products/getProductById.php Get one product
POST /api/products/addProduct.php Create a product
POST /api/products/updateProduct.php Update a product
POST /api/products/deleteProduct.php Delete/deactivate a product
POST /api/products/notifyMe.php "Notify me" signup for a coming-soon product

Categories

GET /api/category/getCategory.php List categories
POST /api/category/addCategory.php Create a category
POST /api/category/updateCategory.php Update a category
POST /api/category/deleteCategory.php Delete/deactivate a category

Banners (homepage hero)

GET /api/banners/getBanners.php List banners
POST /api/banners/addBanner.php Create a banner
POST /api/banners/updateBanner.php Update a banner
POST /api/banners/deleteBanner.php Delete a banner

Announcement Bar

GET /api/announcements/getAnnouncements.php List announcement bar slides
POST /api/announcements/addAnnouncement.php Create a slide
POST /api/announcements/updateAnnouncement.php Update a slide
POST /api/announcements/deleteAnnouncement.php Delete a slide

Our Story Sections

GET /api/storySections/getStorySections.php List story sections
POST /api/storySections/addStorySection.php Create a section
POST /api/storySections/updateStorySection.php Update a section
POST /api/storySections/deleteStorySection.php Delete a section

Gallery

GET /api/gallery/getGalleryImages.php List gallery images
POST /api/gallery/addGalleryImage.php Add a gallery image
POST /api/gallery/updateGalleryImage.php Update a gallery image
POST /api/gallery/deleteGalleryImage.php Delete a gallery image

Orders / Checkout

POST /api/orders/createOrder.php Place an order (guest or logged in)
GET /api/orders/getOrderById.php Get one order
GET /api/orders/getOrders.php List the logged-in customer's orders
GET /api/orders/getAllOrders.php List all orders (portal)
POST /api/orders/updateOrdersStatus.php Update order/payment status (portal)
GET /api/orders/verifyInvoice.php Public invoice-authenticity verification (QR code target)

Wishlist

GET /api/wishlist/getWishlist.php Get the logged-in customer's wishlist
POST /api/wishlist/addWishlist.php Add a product to wishlist
POST /api/wishlist/removeWishlist.php Remove a product from wishlist

Promo Codes

GET /api/promoCodes/getPromos.php List promo codes (portal)
GET /api/promoCodes/getPromoById.php Get one promo code
POST /api/promoCodes/applyPromo.php Validate/apply a code at checkout
POST /api/promoCodes/addPromo.php Create a promo code
POST /api/promoCodes/updatePromo.php Update a promo code
POST /api/promoCodes/deletePromo.php Delete a promo code

Newsletter

POST /api/newsletter/subscribe.php Subscribe an email
POST /api/newsletter/unsubscribe.php Unsubscribe an email

Inquiries

POST /api/inquiries/submit.php Submit a contact / custom-order / price-request inquiry

Content & Settings (public)

GET /api/content/getContentPages.php Get static page content (About, policies, etc.)
GET /api/content/getFaqs.php List FAQ items
GET /api/settings/getPublicSettings.php Get public site settings (company info, social links)

Portal — Auth

POST /api/_portal/auth/portalLogin.php Portal staff login
POST /api/_portal/auth/portalForgetPass.php Request a portal password reset OTP
POST /api/_portal/auth/portalVerfiyOtp.php Verify the reset OTP
POST /api/_portal/auth/portalUpdatePass.php Set a new portal password

Portal — Dashboard

GET /api/_portal/dashboard/getStats.php Aggregate stats (revenue, orders, top products, etc.)

Portal — Customers

GET /api/_portal/customers/getCustomers.php List customer accounts
POST /api/_portal/customers/updateCustomerStatus.php Block/unblock a customer

Portal — Products

GET /api/_portal/products/getNotifyRequests.php List "notify me" signups for a product

Portal — Content Pages

GET /api/_portal/content/getContentPages.php Get all content pages (editable form)
POST /api/_portal/content/updateContentPage.php Update a content page
POST /api/_portal/content/uploadContentImage.php Upload an image used inside content

Portal — FAQ

GET /api/_portal/faq/getFaqs.php List FAQ items (portal)
POST /api/_portal/faq/addFaq.php Add an FAQ item
POST /api/_portal/faq/updateFaq.php Update an FAQ item
POST /api/_portal/faq/deleteFaq.php Delete an FAQ item

Portal — Settings

GET /api/_portal/settings/getSettings.php Get all settings (incl. private ones)
POST /api/_portal/settings/updateSettings.php Update settings
POST /api/_portal/settings/uploadLogo.php Upload the company logo
POST /api/_portal/settings/sendTestEmail.php Send a test email with current SMTP settings

Portal — Users (staff accounts)

GET /api/_portal/users/getUser.php List/get portal staff accounts
POST /api/_portal/users/addUser.php Add a staff account
POST /api/_portal/users/updateUser.php Update a staff account
POST /api/_portal/users/deleteUser.php Delete a staff account

Portal — Email Templates

GET /api/_portal/emailTemplates/getTemplates.php List email templates
GET /api/_portal/emailTemplates/getTemplateById.php Get one template
POST /api/_portal/emailTemplates/updateTemplate.php Update a template
POST /api/_portal/emailTemplates/restoreDefault.php Restore a template's default content
POST /api/_portal/emailTemplates/previewTemplate.php Render a live preview of a template

Portal — Email Campaigns

GET /api/_portal/campaigns/getCampaigns.php List sent/draft campaigns
GET /api/_portal/campaigns/getEligibleCustomers.php Count customers eligible for a campaign
POST /api/_portal/campaigns/sendCampaign.php Send a campaign
POST /api/_portal/campaigns/sendTestEmail.php Send a test campaign email

Portal — Newsletter

GET /api/_portal/newsletter/getSubscribers.php List newsletter subscribers

Portal — Wishlist

GET /api/_portal/wishlist/getWishlist.php Wishlist analytics (most-wishlisted products)

Portal — Inquiries

GET /api/_portal/inquiries/getInquiries.php List inquiries
POST /api/_portal/inquiries/updateInquiryStatus.php Update an inquiry's status