📌
Magento 2 FlashSales
  • Overview
  • Installation
    • Setup
  • Usage
    • General Settings Flash Sale Events
    • Video Guide
    • Flash Sale Events Management
    • Create Flash Sale Event
    • Edit Flash Sale Events
    • Setup Flash Sale Events Page Collection
    • How does it look from frontend?
  • REST API & GraphQl
    • Rest API Doc
    • GraphQl Doc
Powered by GitBook
On this page

Was this helpful?

  1. REST API & GraphQl

GraphQl Doc

PreviousRest API Doc

Last updated 2 years ago

Was this helpful?

Setup addon for GraphQl at here:

Query:

Query get flashsales by id:

{

lofFlashSalesById (flashsales_id: Int) {

flashsales_id

event_name

from_date

to_date

sort_order

category_id

is_private_sale

thumbnail_image

header_banner_image

restricted_landing_page

grant_event_view

grant_event_product_price

grant_checkout_items

grant_checkout_items_groups

grant_event_view_groups

grant_event_product_price_groups

display_cart_mode

display_product_mode

cart_button_title

message_hidden_add_to_cart

is_active

status

}

}

Query list flashsales:

{

lofFlashSales (

filter : {flashsales_id: Int, event_name: String, status: String,..}

pageSize: 5

currentPage: 1

} {

items {

flashsales_id

event_name

from_date

to_date

sort_order

category_id

is_private_sale

thumbnail_image

header_banner_image

restricted_landing_page

grant_event_view

grant_event_product_price

grant_checkout_items

grant_checkout_items_groups

grant_event_view_groups

grant_event_product_price_groups

display_cart_mode

display_product_mode

cart_button_title

message_hidden_add_to_cart

is_active

status

}

total_count

}

}

https://github.com/landofcoder/module-flashsales-graph-ql