Documentation Mercado Libre
Check out all the necessary information about APIs Mercado Libre.
Documentation
Automated Co-funded Campaigns and Competitive Pricing Campaigns
Sellers are periodically invited to participate in various campaigns held on the site. For automated co-funded campaigns and competitive pricing campaigns, Mercado Libre covers a percentage of the discount offered.
Automated co-funded campaigns work similarly to traditional co-funded campaigns, but use an automated process to select the items invited to participate. Competitive pricing campaigns aim to ensure that products reach the best price compared to other websites and marketplaces. Candidates for these campaigns are updated daily, which means that an item may be eligible today, but not necessarily tomorrow.
The new status filter is now available to filter campaign items using the query parameter status_item, which accepts the values "active" or "paused".
Competitive pricing campaigns now offer two promotion types:
- PRICE_MATCHING: The discount is co-funded by the seller and Mercado Libre.
- PRICE_MATCHING_MELI_ALL: The discount is fully funded by Mercado Libre, and the seller's participation is managed automatically, with no action required on their part.
This structure provides greater flexibility when implementing discounts, adapting to the characteristics of each campaign. If the seller has received an invitation and wants to join, they can use the following resources.
Co-funded Lightning offers (SMART_LIGHTNING)
SMART_LIGHTNING identifies automated co-funded Lightning offers. The campaign defines the price and the contributions from Mercado Libre and the seller. The seller chooses the number of units within the range provided for each candidate; opting in preserves the proposed price and contributions.
This type uses the existing seller-promotions resources. Seller promotion, item, candidate, and offer queries identify it with type: "SMART_LIGHTNING". For requests that accept promotion_type, use SMART_LIGHTNING.
For all requests, send the seller's access token in the header Authorization: Bearer $ACCESS_TOKEN and use app_version=v2. The identifiers, dates, and statuses in the examples are illustrative: replace them with those of a current campaign and an available candidate.
Query campaign details
To get the details of a promotion, make the following request:
Automated co-funded example:
curl -X GET -H 'Authorization: Bearer $ACCESS_TOKEN' 'https://api.mercadolibre.com/seller-promotions/promotions/P-MLB1812010?promotion_type=SMART&app_version=v2'
Automated co-funded response:
{
"id": "P-MLB1812010",
"type": "SMART",
"status": "started",
"start_date": "2023-04-26T23:00:00Z",
"finish_date": "2023-05-10T23:59:00Z",
"deadline_date": "2023-05-10T23:59:00Z",
"name": "test-smart-2"
}
Co-funded competitive pricing example:
curl -X GET -H 'Authorization: Bearer $ACCESS_TOKEN' 'https://api.mercadolibre.com/seller-promotions/promotions/P-MLB2087012?promotion_type=PRICE_MATCHING&app_version=v2'
Co-funded competitive pricing response:
{
"id": "P-MLB2087012",
"type": "PRICE_MATCHING",
"status": "pending",
"start_date": "2023-09-19T18:15:00Z",
"finish_date": "2023-10-01T05:59:59Z",
"deadline_date": "2023-10-01T05:59:59Z",
"name": "Gánale a la competencia con un aporte de Mercado Libre"
}
100% Mercado Libre competitive pricing example:
curl -X GET -H 'Authorization: Bearer $ACCESS_TOKEN' 'https://api.mercadolibre.com/seller-promotions/promotions/P-MLB35280024?promotion_type=PRICE_MATCHING_MELI_ALL&app_version=v2'
100% Mercado Libre competitive pricing response:
{
"id": "P-MLB3528002",
"type": "PRICE_MATCHING_MELI_ALL",
"status": "started",
"start_date": "2024-09-26T15:20:04Z",
"finish_date": "2024-10-01T15:18:04Z",
"deadline_date": "2024-10-01T15:18:04Z",
"name": "100% a cargo de Mercado Libre"
}
SMART_LIGHTNING example: campaign details
Parameters: the campaign identifier in the URL is a required string. In the query, promotion_type (string, required) must be SMART_LIGHTNING and app_version (string, required) must be v2.
Request:
curl -X GET \
-H 'Authorization: Bearer $ACCESS_TOKEN' \
'https://api.mercadolibre.com/seller-promotions/promotions/P-MLA18055092?promotion_type=SMART_LIGHTNING&app_version=v2'
Example response:
{
"id": "P-MLA18055092",
"type": "SMART_LIGHTNING",
"status": "started",
"start_date": "2026-09-10T15:25:00Z",
"finish_date": "2026-10-18T02:59:00Z",
"deadline_date": "2026-10-18T02:59:00Z",
"name": "Relampago compartidas"
}
The dates in this response describe the campaign. Each offer's schedule is assigned automatically when the seller accepts the candidate.
Response fields
- id: campaign identifier.
- type: campaign type (SMART, PRICE_MATCHING, PRICE_MATCHING_MELI_ALL, or SMART_LIGHTNING).
- status: campaign status.
- start_date: campaign start date.
- finish_date: campaign end date.
- deadline_date: deadline to create the campaign.
- name: campaign name.
Statuses
These are the different statuses that an automated co-funded or competitive pricing campaign can go through.
- pending: approved promotion that has not started yet.
- started: active promotion.
- finished: finished promotion.
Query items in a campaign
UPDATEDTo find out which items are part of a campaign, make the following request:
Automated co-funded example:
curl -X GET -H 'Authorization: Bearer $ACCESS_TOKEN' 'https://api.mercadolibre.com/seller-promotions/promotions/P-MLB1812010/items?promotion_type=SMART&app_version=v2'
Automated co-funded response:
{
"results": [
{
"id": "MLB3538191898",
"status": "started",
"price": 3245,
"original_price": 5000,
"offer_id": "OFFER-MLB3538191898-10000263432",
"meli_percentage": 8,
"seller_percentage": 16,
"start_date": "2026-04-22T01:00:00Z",
"end_date": "2026-05-22T01:00:00Z",
"boosted_offer": true,
"discount_meli_boosted_percentage": 11.1,
"discount_meli_boost_amount": 555,
"total_price_for_boosted_offer": 3245
}
],
"paging": {
"total": 1,
"limit": 50
}
}
New response fields
- boosted_offer (boolean): indicates whether Mercado Libre is applying an additional discount to the existing offer.
- discount_meli_boosted_percentage (float): additional discount percentage provided by Mercado Libre as part of the boost, based on the item's cost. Independent of meli_percentage.
- discount_meli_boost_amount (number): absolute discount amount (in local currency) provided by Mercado Libre as part of the boost.
- total_price_for_boosted_offer (number): final item price after applying the base discount and the boost. This is the price the buyer sees.
Co-funded competitive pricing example:
curl -X GET -H 'Authorization: Bearer $ACCESS_TOKEN' 'https://api.mercadolibre.com/seller-promotions/promotions/P-MLB2087012/items?promotion_type=PRICE_MATCHING&app_version=v2'
Co-funded competitive pricing response:
{
"results": [
{
"id": "MLA2722062952",
"status": "started",
"price": 73001,
"original_price": 76287,
"offer_id": "OFFER-MLA2722062952-10000265597",
"meli_percentage": 1.3,
"seller_percentage": 1.7,
"start_date": "2026-06-03T01:00:00Z",
"end_date": "2026-06-10T01:00:00Z",
"boosted_offer": true,
"discount_meli_boosted_percentage": 1.3,
"discount_meli_boost_amount": 999,
"total_price_for_boosted_offer": 73001
}
],
"paging": {
"total": 1,
"limit": 50
}
}
100% Mercado Libre competitive pricing example:
curl -X GET -H 'Authorization: Bearer $ACCESS_TOKEN' 'https://api.mercadolibre.com/seller-promotions/promotions/P-MLB3528002/items?promotion_type=PRICE_MATCHING_MELI_ALL&app_version=v2'
100% Mercado Libre competitive pricing response:
{
"results": [
{
"id": "MLB3845318745",
"status": "started",
"price": 121.5,
"original_price": 135,
"offer_id": "OFFER-MLB3845318745-10000115845",
"meli_percentage": 10,
"seller_percentage": 0,
"start_date": "2024-09-26T15:24:35Z",
"end_date": "2024-09-28T23:59:59Z"
}
],
"paging": {
"total": 1,
"limit": 50
}
}
SMART_LIGHTNING example: candidates and stock range
Query the candidates before opting in to obtain the price, contributions, and allowed unit range. The offer_id of a SMART_LIGHTNING candidate is used in the opt-in POST request.
The URL requires the campaign identifier (string). The query requires promotion_type=SMART_LIGHTNING and app_version=v2 (strings). In this example, the optional parameters status (string) and limit (integer) filter candidates and request up to 50 results.
Request:
curl -X GET \
-H 'Authorization: Bearer $ACCESS_TOKEN' \
'https://api.mercadolibre.com/seller-promotions/promotions/P-MLA18055092/items?promotion_type=SMART_LIGHTNING&app_version=v2&status=candidate&limit=50'
Example response:
{
"results": [
{
"id": "MLA1531516767",
"status": "candidate",
"offer_id": "CANDIDATE-MLA1531516767-71633691239",
"price": 11167.2,
"original_price": 12000,
"meli_percentage": 5.2,
"seller_percentage": 1.7,
"stock": {
"min": 1,
"max": 3
}
}
],
"paging": {
"total": 1,
"limit": 50
}
}
stock.min and stock.max (integer) define the minimum and maximum number of promotional units that can be offered for that candidate, inclusive. This range does not represent the item's inventory. You cannot accept a candidate that does not provide the range.
The candidate does not include start_date or end_date because it does not have an assigned schedule yet. These dates are returned when the offer is created.
Query remaining promotional units
After creating a SMART_LIGHTNING offer, the item promotions query returns the remaining promotional units in stock.remaining_stock (integer). This field belongs to the created offer; the range stock.min/stock.max belongs to the candidate.
The item identifier in the URL is a required string. In the query, send app_version=v2 (string, required).
Request:
curl -X GET \
-H 'Authorization: Bearer $ACCESS_TOKEN' \
'https://api.mercadolibre.com/seller-promotions/items/MLA1531516767?app_version=v2'
When a new SMART or PRICE_MATCHING campaign is created, all applicable items are selected. The initial item status (status) is candidate with no assigned offer id. When the seller adds an item to the campaign, its status changes and it receives an offer_id that uniquely identifies the offer.
Item statuses
These are the possible statuses that items can have within these campaign types.
- candidate: candidate item for participation in the promotion.
- pending: item with an approved and scheduled promotion.
- started: item active in the campaign.
- finished: item removed from the campaign.
Add items to a campaign
Once you have been invited to participate in one of these campaigns, you can indicate which products you want to include. Automated co-funded campaigns can last up to 30 days, while competitive pricing campaigns can last up to 10 days.
Request:
curl -X POST -H 'Authorization: Bearer $ACCESS_TOKEN' -H 'Content-Type: application/json' \
-d '{
"promotion_id":"$PROMOTION_ID",
"promotion_type":"$PROMOTION_TYPE",
"offer_id":"$OFFER_ID"
}' \
'https://api.mercadolibre.com/seller-promotions/items/$ITEM_ID?app_version=v2'
Automated co-funded example:
curl -X POST -H 'Authorization: Bearer $ACCESS_TOKEN' -H 'Content-Type: application/json' \
-d '{
"promotion_id":"P-MLB1812010",
"promotion_type":"SMART",
"offer_id":"CANDIDATE-MLB3538191898-25593903"
}' \
'https://api.mercadolibre.com/seller-promotions/items/MLB3538191898?app_version=v2'
Automated co-funded response:
{
"offer_id": "OFFER-MLB3538191898-177685",
"price": 3000,
"original_price": 5000
}
Competitive pricing example:
curl -X POST -H 'Authorization: Bearer $ACCESS_TOKEN' -H 'Content-Type: application/json' \
-d '{
"promotion_id": "P-MLB2087012",
"offer_id": "CANDIDATE-MLB4048719074-70000001705",
"promotion_type": "PRICE_MATCHING"
}' \
'https://api.mercadolibre.com/seller-promotions/items/MLB4048719074?app_version=v2'
Competitive pricing response:
{
"offer_id": "OFFER-MLB4048719074-10000001972",
"price": 3000,
"original_price": 5000
}
Opt in to SMART_LIGHTNING with the selected stock
Send promotion_id, the offer_id of the candidate, promotion_type: "SMART_LIGHTNING" and stock. Stock is required: it must be a positive integer between stock.min and stock.max, inclusive. The previous example allows 1, 2, or 3 units.
Do not send the price, contributions, or dates in the body. The campaign preserves the proposed values and automatically assigns the offer's schedule. Do not use the duration limits described for SMART and PRICE_MATCHING to set dates in this request.
The item identifier in the URL is a required string. In the query, send app_version=v2 (string, required).
Request:
curl -X POST \
-H 'Authorization: Bearer $ACCESS_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"promotion_id": "P-MLA18055092",
"offer_id": "CANDIDATE-MLA1531516767-71633691239",
"promotion_type": "SMART_LIGHTNING",
"stock": 3
}' \
'https://api.mercadolibre.com/seller-promotions/items/MLA1531516767?app_version=v2'
Example response:
{
"offer_id": "OFFER-MLA1531516767-71633691239",
"price": 11167.2,
"original_price": 12000,
"start_date": "2026-09-11T18:00:00",
"end_date": "2026-09-11T19:00:00"
}
Save the offer_id of the created offer: use this identifier to query or delete it. start_date and end_date indicate the schedule assigned by Mercado Libre and are returned in the response, not sent in the request body.
Parameters
- promotion_id (string): promotion identifier. Required.
- promotion_type (string): promotion type. Required. Allowed values: SMART, PRICE_MATCHING or SMART_LIGHTNING.
- offer_id (string): candidate offer identifier. Required.
- stock (integer): required for SMART_LIGHTNING. Positive number of promotional units selected by the seller within the range stock.min/stock.max of the candidate, inclusive.
Delete campaign
Request:
curl -X DELETE -H 'Authorization: Bearer $ACCESS_TOKEN' 'https://api.mercadolibre.com/seller-promotions/items/$ITEM_ID?promotion_type=$PROMOTION_TYPE&promotion_id=$PROMOTION_ID&offer_id=$OFFER_ID'
Automated co-funded example:
curl -X DELETE -H 'Authorization: Bearer $ACCESS_TOKEN' 'https://api.mercadolibre.com/seller-promotions/items/MLB3538191898?promotion_type=SMART&promotion_id=P-MLB1812010&offer_id=OFFER-MLB3538191898-177685&app_version=v2'
Response: Status 200 OK
Co-funded competitive pricing example:
curl -X DELETE -H 'Authorization: Bearer $ACCESS_TOKEN' 'https://api.mercadolibre.com/seller-promotions/items/MLB4048719074?promotion_type=PRICE_MATCHING&promotion_id=P-MLB2087012&offer_id=OFFER-MLB4048719074-10000001972&app_version=v2'
Response: Status 200 OK
100% Mercado Libre competitive pricing example:
curl -X DELETE -H 'Authorization: Bearer $ACCESS_TOKEN' 'https://api.mercadolibre.com/seller-promotions/items/MLA1387793467?promotion_type=PRICE_MATCHING_MELI_ALL&promotion_id=P-MLA2072013&offer_id=OFFER-MLA1387793467-1000000151&app_version=v2'
Response: Status 200 OK
Delete a SMART_LIGHTNING offer before it starts
You can only delete an offer while its status is pending. Send promotion_id, promotion_type=SMART_LIGHTNING and the offer_id returned by the opt-in POST request; do not use the candidate identifier.
The item identifier in the URL is a required string. The query parameters promotion_id, promotion_type, offer_id and app_version are required strings; use SMART_LIGHTNING and v2 in the corresponding fields.
Request:
curl -X DELETE \
-H 'Authorization: Bearer $ACCESS_TOKEN' \
'https://api.mercadolibre.com/seller-promotions/items/MLA1531516767?app_version=v2&promotion_type=SMART_LIGHTNING&promotion_id=P-MLA18055092&offer_id=OFFER-MLA1531516767-71633691239'
Response for an offer with status pending: HTTP 200 OK, with no body. If the offer is already started, the API returns HTTP 400 Bad Request and does not allow deletion.
SMART_LIGHTNING-specific errors
- HTTP 400 for stock outside the range or an unavailable range: query the candidate again and choose a valid stock value. If no range is provided, do not attempt to accept the candidate.
- HTTP 400 when deleting a started offer: deletion is only allowed before the offer starts, while its status is pending.
- HTTP 400 with PROMOTION_STATUS_OPT_IN - finished when opting in: the campaign has ended. Query the seller's campaigns and select a current campaign before trying again.