Petfen
  1. Flash Sale
Petfen
  • Petfen-Account
    • APIs
      • Shipping Address
        • Get List Shipping Address
        • Get Detail Shipping Address
        • Get Default Address
        • Create Shipping Address
        • Update Shipping Address
        • Delete Shipping Addres
      • Seller
        • Verify Phone Number
        • Confirm Phone Number
        • Create Shop
        • Login
        • Renew Access Token Copy
        • Change Password Copy
        • Forgot Password Copy
        • Confirm Forgot Password Copy
        • Logout Copy
      • User Bag
        • Add Item To Bag
        • List Item In Bag
        • Use Item
        • Undo Item To Bag
      • User
        • Register
        • Confirm Register with OTP
        • Login
        • Renew Access Token
        • Change Password
        • Forgot Password
        • Verify OTP Forgot Password
        • Resend OTP Forgot Password
        • Confirm Forgot Password
        • Logout
        • Get Account Info
        • List Accounts
        • Update Account
      • Shop
        • Get shop info
        • Follow Shop
        • UnFollow Shop
    • CMS
  • Petfen-Product
    • CMS
      • Internal CMS
        • Product
      • Product
      • Category
      • FlashSale
        • Get List Flash Sale
        • Create Flash Sale
        • Update Flash Sale
        • Get Detail Flash Sale
    • Client
      • Flash Sale
        • Get List Flash Sale
          GET
        • Get List Flash Sale Active
          GET
        • Get Detail Flash Sale
          GET
      • Category
        • Get List Category
        • Get Detail Category
      • Add Wishlist
        POST
      • Remove Wishlist
        POST
      • Get List Product
        GET
      • Get Detail Product
        GET
      • Get Detail Product By Id
        GET
      • Add Review
        POST
      • Get List Review
        GET
      • Get Shipping Methods List
        GET
      • Get Review Distribution
        GET
      • Get Filter Data
        GET
    • Seller
      • Product
  • Petfen-Order
    • Order - Create
      POST
    • Order - Cancel
      POST
    • Order - Update
      PUT
    • Order - List
      GET
    • Order - Detail
      GET
    • Cart - Sync
      POST
    • Cart - List
      GET
    • Order - Detail With Payment Id
      GET
    • Order statistic
      GET
  • Petfen-Payment
    • Request Payment
    • Confirm Payment
  • Petfen-voucher
    • Cms
      • Customer Group
        • Create Customer Group
        • Update Customer Group
        • Get Customer Group
        • Detail Customer Group
        • Delete Customer Group
      • Voucher
        • Create Voucher
        • Get Detail Voucher
        • Get List Voucher
    • Client
      • Get Voucher info
      • Get List Voucher
      • Get voucher code available
      • Calculate Discount
      • Check Voucher Valid
  • Petfen-Shipping
    • GHN
      • Delivery
        • Get Province
        • Get Station
        • Get Print Order Token
        • Print Order
        • Get District
        • Get Ward
        • Picking Shifts
        • Delivery Service
        • Calculate Delivery Fee
        • Calculate Expected Delivery Time
        • Create Order
        • Update Order
        • Cancel Order
        • Return Order
        • Get Order Info
        • Update COD
      • Support Ticket
        • Create Support Ticket
        • Get List Ticket
        • Get Ticket Detail
    • Service
      • Delivery
        • Get Province
        • Get District
        • Get Ward
        • Get Picking Shift
        • Get Order Info
        • Delivery Method
        • Calculate Delivery Fee
        • Calculate Expected Delivery Time
        • Create Order
        • Update Order
        • Cancel Order
        • Print Order
        • Return Order
        • Delivery Again
        • Update COD
      • Support Ticket
        • Create
        • Feedback
        • Get List
        • Get Detail
      • IPN Transaction
    • Ahamove
      • Order APIs
        • Estimate order fee with services
        • Estimate order fee with services
        • Estimate order fee with group services
        • Estimate order fee with group services
        • Create order by service ID
        • Create order by service ID
        • Create order by group service ID
        • Create order by group service ID
        • Cancel order by order_id
        • Cancel order by order_id
        • Cancel order by tracking_number
        • Cancel order by tracking_number
        • Get order detail
        • Get order detail
        • Get multiple order detail
        • Get multiple order detail
        • Get order list by tracking number
        • Get order list by tracking number
        • Get order tracking link
        • Get order tracking link
        • Get order callback logs
        • Get order callback logs
        • Update order Information
        • Update order Information
        • Rate a supplier
        • Rate a supplier
      • Master Data
        • Get cities
        • Get cities
        • Get list of services
        • Get list of services
        • Get service details
        • Get service details
      • Account APIs
        • Register account
        • Register account
        • Authenticate token
        • Authenticate token
        • Add child account
        • Add child account
        • Activate child account
        • Activate child account
        • Remove child account
        • Remove child account
        • Get child accounts list
        • Get child accounts list
        • Update user profile
        • Update user profile
    • Get list providers
    • Get list Provinces
    • Get list communes
    • Get list methods
  • Testing
  • Petfen-Invoice
    • S-Invoice
      • Login
      • SInvoice - Create invoice
      • SInvoice - Kê khai thuế
      • SInvoice - Lấy file hóa đơn chuyển đổi (pdf)
    • Partner
      • Auth Login
      • Create Invoice
      • Create Draft Invoice
      • Download Invoice File
      • Get Invoices
      • Cancel Invoice
      • Tax Declaration
      • Invoice Stat
      • Reconciliation
    • Service
      • Create Invoice
      • Update Invoice
      • Download Invoice
      • Cancel Invoice
      • Update Tax Declaration
      • Get Invoices
      • Get Invoice Stat
      • Reconciliation
  • Interal
    • Internal - Get access token
  1. Flash Sale

Get List Flash Sale Active

Developing
GET
/api/v1/product/flash-sale/active

Request

Header Params

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://petfen-product.local.com:8082/api/v1/product/flash-sale/active' \
--header 'X-Auth-Service;'

Responses

🟢200Success
application/json
Body

Example
[
    {
        "id": 6,
        "original_price": 100000,
        "flash_sale_price": 9000,
        "total_stock": 10,
        "remaining_stock": 10,
        "start_time": 1747901340,
        "end_time": 1757936340,
        "is_active": true,
        "purchase_limit": 5,
        "products": [
            {
                "id": 11,
                "name": "GGG - Thức ăn cho mèo con whiskas",
                "slug": "ggg-thuc-an-cho-meo-con-whiskas",
                "sku": "thuc-an-cho-meo-con-4",
                "vendor_id": 0,
                "barcode": "79",
                "trade_mark": "",
                "image": "https://atm278103-s3user.vcos.cloudstorage.com.vn/petfen_dev/products/tzpPxHx11xQwJNw2iMN9hvzVajX08znFW8H4QC93.png",
                "short_description": "Deporto caute totidem demergo coruscus conitor aperiam cenaculum. Desidero complectus color. Tondeo audio vociferor terebro copiose antiquus socius verbera timor.",
                "description": "Ocer thermae solio conculco veritas absorbeo collum vulgaris umbra. Comminor vinum advenio aureus circumvenio ventito velum necessitatibus pel umquam. Thalassinus aperio qui contabesco uberrime cena victus cavus sublime. Quae cunctatio arto concido traho vesco subseco aequus aggero. Unde aequus delego commodi vinco. Utrum vado tres delectatio aperio acsi aequus vehemens tredecim. Perspiciatis aranea nulla voluntarius ait uterque blanditiis illo.",
                "base_price": 90000,
                "discount_price": 89000,
                "has_tax": false,
                "in_stock": "yes",
                "quantity": 2,
                "is_fragile": false,
                "status": "publish",
                "shipping_type": "seller",
                "expiry_date": "",
                "created_at": "2025-05-22T16:10:31Z",
                "updated_at": "2025-05-22T16:10:31Z",
                "Variants": null,
                "Categories": null,
                "Wishlist": {
                    "id": 0,
                    "account_code": "",
                    "product_id": 0
                },
                "ProductReviews": null,
                "ProductImages": null,
                "ProductVips": null
            },
            {
                "id": 12,
                "name": "GGG - Thức ăn cho mèo con whiskas",
                "slug": "ggg-thuc-an-cho-meo-con-whiskas",
                "sku": "thuc-an-cho-meo-con-5",
                "vendor_id": 0,
                "barcode": "79",
                "trade_mark": "",
                "image": "https://atm278103-s3user.vcos.cloudstorage.com.vn/petfen_dev/products/tzpPxHx11xQwJNw2iMN9hvzVajX08znFW8H4QC93.png",
                "short_description": "Deporto caute totidem demergo coruscus conitor aperiam cenaculum. Desidero complectus color. Tondeo audio vociferor terebro copiose antiquus socius verbera timor.",
                "description": "Ocer thermae solio conculco veritas absorbeo collum vulgaris umbra. Comminor vinum advenio aureus circumvenio ventito velum necessitatibus pel umquam. Thalassinus aperio qui contabesco uberrime cena victus cavus sublime. Quae cunctatio arto concido traho vesco subseco aequus aggero. Unde aequus delego commodi vinco. Utrum vado tres delectatio aperio acsi aequus vehemens tredecim. Perspiciatis aranea nulla voluntarius ait uterque blanditiis illo.",
                "base_price": 90000,
                "discount_price": 89000,
                "has_tax": false,
                "in_stock": "yes",
                "quantity": 2,
                "is_fragile": false,
                "status": "publish",
                "shipping_type": "seller",
                "expiry_date": "",
                "created_at": "2025-05-22T16:10:37Z",
                "updated_at": "2025-05-22T16:10:37Z",
                "Variants": null,
                "Categories": null,
                "Wishlist": {
                    "id": 0,
                    "account_code": "",
                    "product_id": 0
                },
                "ProductReviews": null,
                "ProductImages": null,
                "ProductVips": null
            }
        ]
    }
]
Modified at 2025-08-30 09:36:01
Previous
Get List Flash Sale
Next
Get Detail Flash Sale
Built with