Documentation Mercado Libre

Check out all the necessary information about APIs Mercado Libre.
circulos azuis em degrade

Documentation

Last update 22/09/2026

Lightning Deal

Sellers are regularly invited to participate in website promotions. If you receive an invitation to a Lightning Deal, use the resources below to manage the eligible items.

Lightning Deals have limited stock. The promotion for an item ends automatically when its available stock runs out.

Important:
Coming soon: Eligible Lightning Deal items will support the Net Proceeds pricing model. Once available, check the seller pricing model and use the corresponding flow.

Check seller pricing model New

Before you submit or edit an item, retrieve the pricing model for the child seller. The result tells you which request body to use.

Request:

curl -X GET 'https://api.mercadolibre.com/marketplace/seller-promotions/users/$USER_ID/pricing-model' \
  -H 'Authorization: Bearer $ACCESS_TOKEN' \
  -H 'version: v2' \
  -H 'X-Caller-Id: $CALLER_ID' \
  -H 'X-Client-Id: $CLIENT_ID'

Response:

{
  "pricing_model": "net_proceeds"
}

Response field

  • pricing_model (string): seller pricing model. Possible values are net_proceeds and listing_price.

Errors when checking the pricing model

Status Description Suggested action
400 The seller identifier or API version is invalid. Verify user_id and send version: v2.
403 The application is not authorized to query the seller. Review the token and seller authorization.
404 Pricing preferences were not found for the seller. Verify the child seller identifier.
429 The request limit was reached. Retry later, following the response headers.
503 Pricing preferences are unavailable or do not contain a recognized model. Retry later.

Check items in a lightning deal

Retrieve the candidate items and items already participating in a Lightning Deal. When the child seller uses net_proceeds, the response can include optional Net Proceeds details according to the item status.

Request:

curl -X GET 'https://api.mercadolibre.com/marketplace/seller-promotions/promotions/PROMOTIONID/items?userid=USER_ID' \
  -H 'Authorization: Bearer $ACCESS_TOKEN' \
  -H 'version: v2' \
  -H 'X-Caller-Id: $CALLER_ID' \
  -H 'X-Client-Id: $CLIENT_ID'

Example:

curl -X GET 'https://api.mercadolibre.com/marketplace/seller-promotions/promotions/LGH-MLM1000/items?user_id=1317418851' \
  -H 'Authorization: Bearer $ACCESS_TOKEN' \
  -H 'version: v2' \
  -H 'X-Caller-Id: 1317417907' \
  -H 'X-Client-Id: 1317417907'

Response:

{
  "results": [
    {
      "id": "MLM2183693560",
      "status": "candidate",
      "price": 0,
      "original_price": 70,
      "currency_id": "USD",
      "start_date": "2026-09-21T07:00:00",
      "finish_date": "2026-09-21T15:00:00",
      "max_discounted_price": 59.9,
      "min_discounted_price": 1.2,
      "suggested_discounted_price": 50.4,
      "net_proceeds": {
        "suggested_discounted_price": {
          "amount": 20.68,
          "currency": "USD"
        },
        "max_discounted_price": {
          "amount": 26.58,
          "currency": "USD"
        },
        "min_discounted_price": {
          "amount": 0.15,
          "currency": "USD"
        }
      }
    },
    {
      "id": "MLM2183693561",
      "status": "pending",
      "price": 64,
      "original_price": 70,
      "currency_id": "USD",
      "start_date": "2026-09-21T07:00:00",
      "finish_date": "2026-09-21T15:00:00",
      "net_proceeds": {
        "amount": 20.68,
        "currency": "USD",
        "selling_fee": 8.32,
        "shipping_fee": 5
      }
    }
  ],
  "paging": {
    "offset": 0,
    "limit": 50,
    "total": 2,
    "searchAfter": ""
  }
}

How to read the response:

  • The fields outside net_proceeds, including price, original_price, and the discounted-price references, describe listing prices.
  • For a candidate item, net_proceeds can provide suggested, maximum, and minimum targets. Use them as references when choosing the target to submit.
  • For a pending or started item, net_proceeds can provide the estimated amount and its selling and shipping fees.
Note:
The net_proceeds object and its fields are optional. Its absence does not invalidate the item response and is not a reason to retry the request.

Net Proceeds fields:

  • amount (number, optional): estimated Net Proceeds for an item with a created participation.
  • currency (string, optional): currency of the Net Proceeds amounts.
  • selling_fee (number, optional): estimated selling fee for the participation.
  • shipping_fee (number, optional): estimated shipping fee for the participation.
  • suggested_discounted_price, max_discounted_price, and min_discounted_price (objects, optional): Net Proceeds references for a candidate item. Each reference contains amount and currency.

Item status:

  • candidate: item eligible to participate. It has not joined the promotion yet.
  • pending: participation created and scheduled.
  • started: promotion currently active for the item.
  • finished: participation ended or the item was removed from the deal.

Submit an item to a lightning deal

Before you submit or edit an item, follow this sequence:

1Check the pricing model. Use the pricing model endpoint for the child seller.

2Check Lightning Deal items. Retrieve the candidate item and its available price references.

3Select the matching flow. Use A when pricing_model is listing_price. Use B when it is net_proceeds.


Common request parameters:

  • itemId (string, required): item identifier in the path.
  • user_id (integer, required): child seller identifier in the query string.
  • promotion_id (string, required): Lightning Deal identifier.
  • promotion_type (string, required): Lightning Deal promotion type. Send LIGHTNING.
  • original_price (number): item price before the promotion.
  • stock (integer): available stock for the Lightning Deal. The item promotion ends when this stock runs out.

A Listing price flow

Use this existing request when the pricing model is listing_price.

Request:

curl -X POST 'https://api.mercadolibre.com/marketplace/seller-promotions/items/ITEMID?userid=USER_ID' \
  -H 'Authorization: Bearer $ACCESS_TOKEN' \
  -H 'Content-Type: application/json' \
  -H 'version: v2' \
  -H 'X-Caller-Id: $CALLER_ID' \
  -H 'X-Client-Id: $CLIENT_ID' \
  -d '{
    "promotion_id": "$PROMOTION_ID",
    "deal_price": $DEAL_PRICE,
    "original_price": $ORIGINAL_PRICE,
    "promotion_type": "LIGHTNING",
    "stock": $STOCK
  }'

Response:

{
  "price": 64,
  "original_price": 70,
  "currency_id": "USD"
}

B Net Proceeds flow New

Use this request when the pricing model is net_proceeds. Send the target amount that the seller expects to receive after the promotion and keep the Lightning Deal stock in the request.

Request:

curl -X POST 'https://api.mercadolibre.com/marketplace/seller-promotions/items/ITEMID?userid=USER_ID' \
  -H 'Authorization: Bearer $ACCESS_TOKEN' \
  -H 'Content-Type: application/json' \
  -H 'version: v2' \
  -H 'X-Caller-Id: $CALLER_ID' \
  -H 'X-Client-Id: $CLIENT_ID' \
  -d '{
    "promotion_id": "$PROMOTION_ID",
    "net_proceed_after_promotion": 20.68,
    "original_price": $ORIGINAL_PRICE,
    "promotion_type": "LIGHTNING",
    "stock": $STOCK
  }'

Response:

{
  "price": 64,
  "original_price": 70,
  "currency_id": "USD",
  "net_proceeds": {
    "amount": 20.68,
    "selling_fee": 8.32,
    "shipping_fee": 5,
    "currency": "USD",
    "original_amount": 31.4
  }
}

Edit a Lightning Deal

Use the pricing model retrieved for the child seller and keep the stock value up to date when you edit an item.

Listing price flow

Use this existing request when the pricing model is listing_price.

Request:

curl -X PUT 'https://api.mercadolibre.com/marketplace/seller-promotions/items/ITEMID?userid=USER_ID' \
  -H 'Authorization: Bearer $ACCESS_TOKEN' \
  -H 'Content-Type: application/json' \
  -H 'version: v2' \
  -H 'X-Caller-Id: $CALLER_ID' \
  -H 'X-Client-Id: $CLIENT_ID' \
  -d '{
    "promotion_id": "$PROMOTION_ID",
    "deal_price": $DEAL_PRICE,
    "original_price": $ORIGINAL_PRICE,
    "promotion_type": "LIGHTNING",
    "stock": $STOCK
  }'

Response:

{
  "price": 64,
  "original_price": 70,
  "currency_id": "USD"
}

Net Proceeds flow New

Use this request when the pricing model is net_proceeds.

Request:

curl -X PUT 'https://api.mercadolibre.com/marketplace/seller-promotions/items/ITEMID?userid=USER_ID' \
  -H 'Authorization: Bearer $ACCESS_TOKEN' \
  -H 'Content-Type: application/json' \
  -H 'version: v2' \
  -H 'X-Caller-Id: $CALLER_ID' \
  -H 'X-Client-Id: $CLIENT_ID' \
  -d '{
    "promotion_id": "$PROMOTION_ID",
    "net_proceed_after_promotion": 20.68,
    "original_price": $ORIGINAL_PRICE,
    "promotion_type": "LIGHTNING",
    "stock": $STOCK
  }'

Response:

{
  "price": 64,
  "original_price": 70,
  "currency_id": "USD",
  "net_proceeds": {
    "amount": 20.68,
    "selling_fee": 8.32,
    "shipping_fee": 5,
    "currency": "USD"
  }
}

Errors when creating or updating with Net Proceeds

This error table applies to POST /marketplace/seller-promotions/items/{itemId} and PUT /marketplace/seller-promotions/items/{itemId} when you use the Net Proceeds flow.

Status Error Suggested action
400 invalid_amount: the target amount is negative. Send a value equal to or greater than zero.
400 bad_request: the Net Proceeds discounted price is not credible. Adjust the target amount and try again.
400 promotion_not_available_for_account: the seller is not enabled for Net Proceeds promotions. Use the current Listing price flow for that seller.
403 promotion_type_not_compatible: the promotion does not support Net Proceeds. Verify the promotion type and that the promotion is fully funded by the seller.
404 The item, promotion, or participation was not found. Verify the identifiers in the request.
429 The request limit was reached. Retry later, following the response headers.
503 service_unavailable: Net Proceeds could not be calculated or completed. Retry later.

Example response for bad_request:

{
  "message": "The net proceeds discounted price is not credible.",
  "error": "bad_request",
  "status": 400,
  "cause": []
}

Delete items from a lightning deal

Use this resource to remove an item offer from a Lightning Deal.

Request:

curl -X DELETE 'https://api.mercadolibre.com/marketplace/seller-promotions/items/ITEMID?userid=USER_ID&promotion_type=LIGHTNING&promotion_id=$PROMOTION_ID' \
  -H 'Authorization: Bearer $ACCESS_TOKEN' \
  -H 'version: v2' \
  -H 'X-Caller-Id: $CALLER_ID' \
  -H 'X-Client-Id: $CLIENT_ID'

Example:

curl -X DELETE 'https://api.mercadolibre.com/marketplace/seller-promotions/items/MLM2183693560?user_id=1317418851&promotion_type=LIGHTNING&promotion_id=LGH-MLM1000' \
  -H 'Authorization: Bearer $ACCESS_TOKEN' \
  -H 'version: v2' \
  -H 'X-Caller-Id: 1317417907' \
  -H 'X-Client-Id: 1317417907'

Response: HTTP 200 OK (empty body)

Next: Seller Campaign