Last update 25/08/2022

Lightning Deal

Sellers are regularly invited to participate in different website promotions. If you received an invitation to participate in a lightening deal and want to join, use the resources below.
Remember that this type of offers has a reserved stock and the promotion ends when the stock is used up.





Check items in a lightning deal

Perform the query below to check the items included in a lightening deal:

Example:

curl -X GET -H 'Authorization: Bearer $ACCESS_TOKEN' https://api.mercadolibre.com/seller-promotions/promotions/LGH-MLA1000/items?promotion_type=LIGHTNING

Response:

{
  "results": [
    {
           "id": "MLA910489378",
           "status": "candidate",
           "price": 4464,
           "original_price": 4899,
           "max_original_price": 7048,
           "stock": {
               "min": 6,
               "max": 10
           }
       },
       {
           "id": "MLA902703770",
           "status": "candidate",
           "price": 32289,
           "original_price": 35399,
           "max_original_price": 50983,
           "stock": {
               "min": 6,
               "max": 14
           }
       }
  ],
  "paging": {
    "offset": 0,
    "limit": 50,
    "total": 4
  }
}

Response fields

id: item identification.
status: promotion item status. (see table)
price: promotion item price. A candidate, item status makes reference to suggested price.
original_price: current item price.
max_original_price: maximum price for an item as original_price to participate in a promotion.
stock: information value about the minimum and maximum stock to assigned to a promotion.


Item status

The table below shows the possible item statuses in this type of promotion.

Status Description
candidate candidate item to participate in the promotion.
pending programmed promotion item.
started item active for a deal.
finished Item deleted from campaign.


Specify items for a lightning deal.

Once you are invited to participate in a lightening deal, you can specify the candidates to be included. Remember that you need to report the stock to be available for this promotion. When the available stock is used up the item promotion will be automatically ended.


Request:

curl -X POST -H 'Authorization: Bearer $ACCESS_TOKEN' 
-d '{ 
   "deal_price":"DEAL_PRICE",
   "original_price":$LIST_PRICE,
   "stock": $STOCK,
   "promotion_type":"$PROMOTION_TYPE"
}' https://api.mercadolibre.com/seller-promotions/items/$ITEM_ID

Example:

curl -X POST -H 'Authorization: Bearer $ACCESS_TOKEN' 
-d '{ 
   "deal_price": 14999,
   "original_price": 17000,
   "stock":11,
   "promotion_type":"LIGHTNING"
}' https://api.mercadolibre.com/seller-promotions/items/MLA876768946

Response:

{
  "price": 14999,
  "original_price": 17000
}

Parameters

deal_price: promotion item price.
original_price: item price before inclusion in the promotion.
stock: stock of item to be reserved for this promotion.
promotion_type: type of promotion (LIGHTNING).


Delete items

Use this resource to remove an item offer.

Request:

curl -X DELETE -H 'Authorization: Bearer $ACCESS_TOKEN' https://api.mercadolibre.com/seller-promotions/items/$ITEM_ID?promotion_type=$PROMOTION_TYPE

Example:

curl -X DELETE -H 'Authorization: Bearer $ACCESS_TOKEN' https://api.mercadolibre.com/seller-promotions/items/MLA632979587?promotion_type=LIGHTNING

Response: Status 200 OK

banner footer

Subscribe to our Newletter

or register to recieve the latest news about our API