📌
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

Rest API Doc

PreviousHow does it look from frontend?NextGraphQl Doc

Last updated 2 years ago

Was this helpful?

More information about Rest Api, please view at here:

New Api

GET List Product in Flash Sale by flashsaleId:

curl -X 'GET' \
  '{URL}\/rest/all/V1/lof-flashsales/appliedproducts-fl/1' \
  -H 'accept: application/json'
{URL}/rest/all/V1/lof-flashsales/appliedproducts-fl/1

Response

[
  {
    "entity_id": "1",
    "name": "happy new year",
    "flashsales_id": "1",
    "price_type": "0",
    "product_id": "2047",
    "type_id": "giftcard",
    "original_price": null,
    "flash_sale_price": null,
    "sku": "happy-new-year",
    "qty_limit": "0",
    "discount_amount": null
  },
  {
    "entity_id": "2",
    "name": "sanpham10",
    "flashsales_id": "1",
    "price_type": "0",
    "product_id": "2048",
    "type_id": "simple",
    "original_price": "100.000000",
    "flash_sale_price": null,
    "sku": "sanpham10",
    "qty_limit": "0",
    "discount_amount": null
  },
  {
    "entity_id": "3",
    "name": "sanpham11",
    "flashsales_id": "1",
    "price_type": "0",
    "product_id": "2049",
    "type_id": "simple",
    "original_price": "100.000000",
    "flash_sale_price": null,
    "sku": "sanpham11",
    "qty_limit": "0",
    "discount_amount": null
  }
]
https://documenter.getpostman.com/view/15644082/TzRNEVCm