Documentation Mercado Libre
Check out all the necessary information about APIs Mercado Libre.
Documentation
Price discount
Sellers who want to apply a specific discount to their items can use the following resources to create, remove, and query discounts.
Requirements
To offer this discount, the following conditions must be met:
- Seller must have a green reputation.
- Seller must have at least 1 product sale.
- Item status must be active.
- Item condition must be new.
- Item listing type cannot be free.
Check seller pricing model New
Before you offer or modify a Price Discount, check whether the child seller uses the net_proceeds or listing_price pricing model. The response 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-Client-Id: $CLIENT_ID' \
-H 'X-Caller-Id: $CALLER_ID'
Response:
{
"pricing_model": "net_proceeds"
}
Path parameter
- userId (integer, required): child seller identifier in the local marketplace.
Response field
- pricing_model (string): pricing model that applies to the child seller.
- listing_price: the seller manages the Price Discount using the item's promotional listing price. Follow the Listing price flow on this page.
- net_proceeds: the seller manages the Price Discount using the amount expected after selling and shipping fees. Follow the Net Proceeds flow on this page.
Errors when checking the pricing model
| HTTP status | Meaning | Recommended action |
|---|---|---|
| 400 Bad Request | The userId or API version is invalid. | Review the path parameter and send the required version: v2 header. |
| 403 Forbidden | The application is not authorized to query the seller. | Use an access token authorized for the child seller. |
| 404 Not Found | No pricing preferences were found for the seller. | Do not assume a pricing model. Confirm the seller configuration before continuing. |
| 429 Too Many Requests | The request limit was reached. | Respect the Retry-After header before retrying. |
| 503 Service Unavailable | Pricing preferences are unavailable or do not contain a recognized model. | Retry later with a limited, sequential retry strategy. |
Offer discount for an item
Use this resource to apply a price discount to a specific item.
Before you submit a discount, follow this sequence:
1Check the pricing model. Use the pricing model endpoint for the child seller.
2Select the matching flow. Use A when pricing_model is listing_price. Use B when it is net_proceeds.
AListing price flow
Use this existing request when the pricing model is listing_price.
Request:
curl -X POST -H 'Authorization: Bearer $ACCESS_TOKEN' \
-d '{
"deal_price": $DEAL_PRICE,
"start_date": "$START_DATE",
"finish_date": "$FINISH_DATE",
"promotion_type": "PRICE_DISCOUNT"
}' \
'https://api.mercadolibre.com/marketplace/seller-promotions/items/ITEMID?userid=USER_ID' \
--header 'version: v2' \
--header 'X-Client-Id: $CLIENT_ID' \
--header 'X-Caller-Id: $CALLER_ID'
Example:
curl -X POST -H 'Authorization: Bearer $ACCESS_TOKEN' \
-d '{
"deal_price": 20,
"start_date": "2025-12-09T00:00:00",
"finish_date": "2025-12-16T23:59:59",
"promotion_type": "PRICE_DISCOUNT"
}' \
'https://api.mercadolibre.com/marketplace/seller-promotions/items/MLM3782207298?user_id=2487485082' \
--header 'version: v2' \
--header 'X-Client-Id: 1317417907' \
--header 'X-Caller-Id: 1317417907'
Response:
{
"price": 20,
"original_price": 39.29,
"currency_id": "USD",
"offer_id": "OFFER-MLM3782207298-11795706698"
}
Request body parameters
- deal_price (number, required): discounted price for all buyers.
- start_date (string, required): discount start date in local format.
- finish_date (string, required): discount end date in local format.
- promotion_type (string, required): send PRICE_DISCOUNT.
Response fields
- price (number): discounted price applied to the item.
- original_price (number): original price of the item before the discount.
- currency_id (string): currency code, for example, USD or MXN.
- offer_id (string): unique identifier for the created offer.
BNet 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. Mercado Libre calculates the resulting promotional price.
Request:
curl -X POST -H 'Authorization: Bearer $ACCESS_TOKEN' \
-d '{
"net_proceed_after_promotion": 80.25,
"promotion_type": "PRICE_DISCOUNT",
"start_date": "$START_DATE",
"finish_date": "$FINISH_DATE",
}' \
'https://api.mercadolibre.com/marketplace/seller-promotions/items/ITEMID?userid=USER_ID' \
--header 'version: v2' \
--header 'X-Client-Id: $CLIENT_ID' \
--header 'X-Caller-Id: $CALLER_ID'
Request body parameters
- net_proceed_after_promotion (number, required): amount in USD that the seller expects to receive after the promotion.
- promotion_type (string, required): send PRICE_DISCOUNT.
Considerations
- For the Listing price flow, the discount must be between 5% and 80% of the item listing price. This range does not apply to the target sent in the Net Proceeds flow.
- If the item price increases, all discounts will be automatically removed.
- The maximum duration for a PRICE_DISCOUNT promotion is 14 days.
- If the item is already participating in a DEAL when the discount starts, the PRICE_DISCOUNT will not be applied until the DEAL ends.
- In the Listing price flow, the start_date and finish_date parameters only consider the date, not the time. By default, discounts start at 00:00:00 on the start date and end at 23:59:59 on the finish date.
Item status
The table below shows the possible item statuses when applying a price discount:
- pending: scheduled discount, not yet active.
- started: item with active discount.
- finished: discount has ended.
- sync_requested: discount activation in progress.
- restore_requested: discount removal in progress.
Delete a price discount
Use this resource to remove a price discount from an item.
Request:
curl -X DELETE -H 'Authorization: Bearer $ACCESS_TOKEN' \
'https://api.mercadolibre.com/marketplace/seller-promotions/items/ITEMID?promotiontype=PRICEDISCOUNT&userid=USER_ID' \
--header 'version: v2' \
--header 'X-Client-Id: $CLIENT_ID' \
--header 'X-Caller-Id: $CALLER_ID'
Example:
curl -X DELETE -H 'Authorization: Bearer $ACCESS_TOKEN' \
'https://api.mercadolibre.com/marketplace/seller-promotions/items/MLM3782207298?promotion_type=PRICE_DISCOUNT&user_id=2487485082' \
--header 'version: v2' \
--header 'X-Client-Id: 1317417907' \
--header 'X-Caller-Id: 1317417907'
Response: HTTP 200 OK (empty body)
Errors
The following errors may occur when using the Listing price flow:
Discount percentage out of range
{
"key": "buyer_discount_not_in_range",
"message": "buyers_discount_percentage parameter must be in range (5, 80)"
}
Cause: The discount percentage calculated from the listing price is outside the allowed range (5% to 80%).
Price credibility error
{
"key": "error_credibility_price",
"message": "The price is not credible."
}
Cause: The discount results in a price that the system considers not credible. A higher original price or smaller discount may be required.
Next: Volume Discount