Documentation Mercado Libre

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

Documentation

Last update 24/11/2026

Manage Automations

Price automations on MercadoLibre are essential tools for sellers who want to keep their products competitive and maximize their profit margins. These tools allow product prices to be adjusted dynamically and strategically in response to different market variables. Below are the functionalities available to manage automations.


Important:
Before sending a price update for an item via /global/items/$ITEM_ID, check whether price automation is enabled for the listing, since API price updates for automated items will be rejected.

New Starting December 24, 2026, price editing for items with Price Automation enabled will be blocked via the API. This change aims to protect sellers' pricing strategies by preventing unintended deactivations and ensuring greater stability, aligning API behavior with what is already available on the front end.


What is changing?

PUT requests to the /global/items/$ITEM_ID resource that include price updates for automated items will be rejected. The behavior will vary depending on the payload content:



1. If the update attempt contains only the price field, for both traditional items and User Product items:

  • Status Code: 400 Bad Request.
  • Result: The entire request will be rejected.
  • Response: It will indicate a validation error stating that the price cannot be edited because automation is enabled.

Error example:

{
  "message": "Cannot update item MLM2916035006",
  "error": "validation_error",
  "status": 400,
  "cause": [
    {
      "department": "cbt-prices.listing-price",
      "cause_id": 5257,
      "type": "ERROR",
      "code": "unprocessable_entity",
      "references": null,
      "message": "Cannot modify price on items with dynamic pricing",
      "custom_data": null
    }
  ]
}

2. If the price update is sent together with other attributes:

  • Traditional items: When price is sent together with other attributes, the price update fails because automation is enabled and the remaining attributes are not updated.
  • User Product items: The price update is blocked and the updates to the remaining attributes are processed successfully.

Prior identification

To prevent failures in the update flow, it is essential to identify in advance the items with automation enabled using the Get item price automation by seller endpoint.


Get Available Rules for an Item

For a specific item, you can retrieve the list of available rules that can be used for price automation by making a GET request to the resource /marketplace/items/{itemId}/prices/automate/rules.


Rules

rule_id Title Description
“INT_EXT” Best price inside and outside Mercado Libre Your price will adjust to the lowest price among similar listings on Mercado Libre and others outside the site.
“INT” Price to win on Mercado Libre Your price will adjust to the lowest price among similar listings on Mercado Libre.

Preconditions to obtain the available rules for an item

  • It must be queried on an existing item
  • The item must be eligible for automation

Request:

curl -X GET -H 'Authorization: Bearer $ACCESS_TOKEN' https://api.mercadolibre.com/marketplace/items/$ITEM_ID/prices/automate/rules

Example:

curl -X GET -H 'Authorization: Bearer $ACCESS_TOKEN' https://api.mercadolibre.com/marketplace/items/MLM2245313004/prices/automate/rules

Response:

{
    "item_id": "MLM2245313004",
    "rules": [
        {
            "rule_id": "INT",
            "title": "Price to win on Mercado Libre",
            "description": "Your price will be adjusted by comparing the price and selling conditions of same listings on Mercado Libre and other marketplaces."
        },
        {
            "rule_id": "INT_EXT",
            "title": "Best price on Mercado Libre and off the site",
            "description": "Your price will be adjusted by comparing the price and selling conditions of same listings on Mercado Libre and other marketplaces."
        }
    ]
}

Response fields

The response of a GET to the resource /marketplace/items/$ITEM_ID/prices/automate/rules will provide the following parameters:

  • item_id: Item identifier
  • rules: List of rules available for an item. Currently it can only be INT_EXT and INT
    • rule_id: Automation rule.

Possible errors when obtaining the available rules

When obtaining the available rules for an item, you may encounter the following errors. It is crucial that you understand the cause of each one and know how to correct them in order to efficiently manage the situation. Here is the information you need to identify and resolve these issues.


Item not found:

{
    "error": "item_not_found",
    "message" : "Item with id [MLA123456] not found",
    "status": 404,
    "cause": []
}

User not authorized:

{
    "error": "user_not_authorized",
    "message": "User is not allowed to automate items",
    "status": 412,
    "cause": []
}

Item cannot be automated:

{
    "error": "item_not_automatizable",
    "message" : "Item with id [MLA123456] has no rules available",
    "status": 412,
    "cause": []
}

The established strategy cannot be processed:

{
    "error": "unprocessable_get_strategies",
    "message" : "Error calling retrieve item strategies service",
    "status": 422,
    "cause": []
}

Unauthorized:

{
    "code": "unauthorized",
    "message": "invalid access token"
}

Get Item Price Automation by Seller

New This resource returns a paginated list of all automated items associated with a given seller, eliminating the need to check items one by one and improving management and integration for sellers with a high volume of listings.


Parameters

Parameter Description Values
offset Starting position for the query (optional). Default: 0, Minimum: 0
limit Maximum number of items returned (optional). Default: 50, Maximum: 100

Request:

curl -X GET -H 'Authorization: Bearer $ACCESS_TOKEN'https://api.mercadolibre.com/marketplace/users/USER_ID/items/automate

Example:

curl -X GET -H 'Authorization: Bearer $ACCESS_TOKEN' https://api.mercadolibre.com/marketplace/users/1709905866/items/automate

Response:

{
  "items": [
    "MLM2916035006",
    "MLM2915931232",
    "MLM2915905220"
  ],
  "paging": {
    "total": 3,
    "offset": 0,
    "limit": 50
  }
}
Note:

This endpoint returns a maximum of 100 items per request. If the seller has more automated items, additional requests are required, incrementing the offset parameter to retrieve the remaining results. Use the paging.total field in the response to identify the total number of automated items and determine how many requests are needed.

Pagination example: // Second request (items 101 to 200)
GET /marketplace/users/USER_ID/items/automate?offset=100&limit=100

Response fields

  • items: List of IDs of items for which the user has enabled automation.
  • paging: Object containing the result pagination information
    • total: Total number of automated items available to the user.
    • offset: Position from which the list was returned.
    • limit: Maximum number of items returned in the response.


Assign a new price automation

To assign a new price automation, you need to perform a POST request to the resource /marketplace/items/$ITEM_ID/prices/automate.

Important:

Automations in Publications:
By applying automation to your publications, you increase the likelihood that they will stand out. For example, they may receive the “Recommended” label in search results and the VIP distinction. If your prices drop due to an automatic adjustment , your buyers will see discounted prices , increasing your chances of making a sale.

Opt-In to Catalog:
Similarly, if automation is applied to a traditional item and then the opt-in to catalog is performed, the automation settings will be transferred to the catalog item.


Preconditions to assign an automation

  • The rule must be applied to an existing item
  • It must necessarily have a minimum price
  • Prices cannot be absurd (Maximum and Minimum)
  • It must meet the creation conditions

Request:

curl -X POST -H 'Authorization: Bearer $ACCESS_TOKEN'
{
  "rule_id" : "INT_EXT", 
  "min_price": 100,
  "max_price": 1000
}

https://api.mercadolibre.com/marketplace/items/$ITEM_ID/prices/automate

Example:

curl -X POST -H 'Authorization: Bearer $ACCESS_TOKEN'
{
  "rule_id" : "INT_EXT", 
  "min_price": 100,
  "max_price": 1000
}
https://api.mercadolibre.com/marketplace/items/MLM2245313004/prices/automate

Response:

{
    "status": "ACTIVE",
    "item_id": "MLM2245313004",
    "item_rule": {
        "rule_id": "INT_EXT",
        "title": "Best price on Mercado Libre and off the site",
        "description": "Your price will be adjusted by comparing the price and selling conditions of same listings on Mercado Libre and other marketplaces."
    },
    "min_price": 100,
    "max_price": 1000
}

Response fields

The response of a POST to the resource pricing-automation /marketplace/items/$ITEM_ID/prices/automate will provide the following parameters

  • item_id: Item identifier
  • status: Automation status, possible statuses:
    • ACTIVE
    • PAUSED
  • item_rule: Automation rule, currently the only rules available are:
  • rule_id: Automation rule.
    • “INT_EXT” (Internal and external competition simultaneously).
    • “INT” (Internal competition only; if it is a catalog item, only that type of listing will be considered).
      • title: Name of the selected rule. The only one available is “Price to win sales”.
      • description: Description of the selected rule.
  • min_price: Minimum price set for the automation.
  • max_price: Maximum price set for the automation.

Possible errors when assigning an automation

When assigning a new automation, you may encounter the following errors. It is crucial that you understand the cause of each one and know how to correct them in order to efficiently manage the situation. Here is the information you need to identify and resolve these issues.


Field rule_id without value:

{
    "error": "argument_not_valid",
    "message": "rule_id must not be null",
    "status": 400,
    "cause": [
        {
            "code": "rule_id_not_null",
            "message": "Rule identifier is required"
        }
    ]
}

Item not found:

{
    "error": "item_not_found",
    "message" : "Item with id [MLA123456] not found",
    "status": 404
}

User not authorized:

{
    "error": "user_not_authorized",
    "message": "User is not allowed to automate items",
    "status": 412
}

Automation already created:

{
    "error": "automation_already_created",
    "message" : "Automation already created",
    "status": 412
}

Automation not allowed:

{
   "error": "automation_operation_not_allowed",
   "message" : "Cannot perform [assign automation] for item with id [MLA123456]",
   "status": 412
}

Unable to process the established rule:

{
     "error": "unprocessable_set_rule",
     "message" : "Error calling rule assignment service",
     "status": 422
}

Unauthorized

{
    "code": "unauthorized",
    "message": "invalid access token"
}

Unusual price value error

{
  "message": "unusual value for your listing, unusual value for your listing",
  "error": "bad_request",
  "status": 400,
  "cause": []
}

This error occurs when one or both values sent in min_price or max_price are considered unusually low by price validation. The validation compares each value with recent data for the same item, including sales and historical prices from the last 60 days or, when there is insufficient history, the standard price.


Retrieve Existing Price Automation of a particular item

To obtain the price automation for an item, you need to query the resource /marketplace/items/$ITEM_ID/prices/automate.


Preconditions to obtain an automation

  • It must correspond to an existing item
  • It must be an already assigned automation
  • It must meet the retrieval conditions

Request:

curl -X GET -H 'Authorization: Bearer $ACCESS_TOKEN' 
https://api.mercadolibre.com/marketplace/items/$ITEM_ID/prices/automate

Example:

curl -X GET -H 'Authorization: Bearer $ACCESS_TOKEN' 
https://api.mercadolibre.com/marketplace/items/MLM2245313004/prices/automate

Response:

{
    "status": "ACTIVE | PAUSED",
    "item_id": "MLM2245313004",
    "item_rule": {
        "rule_id": "INT",
        "title": "Net proceeds to win on Mercado Libre",
        "description": "Your net proceeds will be automatically adjusted based on prices and selling conditions of the same listings on Mercado Libre. Use it to boost your sales and beat your competitors."
    },
    "min_price": 236.73,
    "max_price": 0,
    "status_detail": {
        "cause": "ITEM_NO_ACTIVE| PROMO|COMPETITORS",
        "message": "Item paused message"
    }
}

Response fields

The response of a GET to the resource /marketplace/items/$ITEM_ID/prices/automate will provide the following parameters:

  • item_id: Item identifier
  • status: Automation status, possible statuses:
    • ACTIVE
    • PAUSED
  • item_rule:
    • rule_id: Automation rule.
  • min_price: Minimum price set for the automation.
  • max_price: Maximum price set for the automation.
  • status_detail: Automation paused for one of the following reasons:
    • COMPETITORS
    • PROMO
    • ITEM_NO_ACTIVE
  • cause: Reason the automation was paused.
  • message: Message specifying which reason paused the automation.


Possible errors when obtaining an automation

When consulting an automation, you may encounter the following errors. It is crucial that you understand the cause of each one and know how to correct them in order to efficiently manage the situation. Here is the information you need to identify and resolve these issues.


Item not found:

{
    "error": "item_not_found",
    "message" :"Item with id [MLA123456] not found",
    "status": 404,
    "cause": []
}

Automation not found:

{
    "error": "automation_not_found",
    "message" : "Automation not found for item with id [MLA123456]",
    "status": 404,
    "cause": []
}

User not authorized:

{
    "error": "user_not_authorized",
    "message": "User is not allowed to automate items",
    "status": 412,
    "cause": []
}

Automation not allowed:

{
   "error": "automation_operation_not_allowed",
   "message" : "Cannot perform [get automation] for item with id [MLA123456]",
   "status": 412,
   "cause": []
}

Unable to process the established rule:

{
     "error": "unprocessable_get_rule",
     "message" : "Error calling rule assignment service",
     "status": 422
}

Unauthorized:

{
    "code": "unauthorized",
    "message": "invalid access token"
}

Update Price Automation

To update a price automation rule for an item that is already assigned, you need to perform a PUT request to the resource /marketplace/items/{itemId}/prices/automate.


Preconditions to update an automation

  • The rule must be applied to an existing item.
  • It is mandatory that it has a minimum price.
  • Prices cannot be absurd (Maximum and Minimum).

Request:

curl -X PUT -H 'Authorization: Bearer $ACCESS_TOKEN' 
{
  "rule_id" : "INT_EXT",
  "min_price": 111,
  "max_price": 999
}
https://api.mercadolibre.com/marketplace/items/{itemId}/prices/automate

Example:

curl -X PUT -H 'Authorization: Bearer $ACCESS_TOKEN' 
{
  "rule_id" : "INT_EXT",
  "min_price": 111,
  "max_price": 999
}

https://api.mercadolibre.com/marketplace/items/MLM2245313004/prices/automate

Response:

{
    "status": "ACTIVE",
    "item_id": "MLM2245313004",
    "item_rule": {
        "rule_id": "INT_EXT",
        "title": "Best price on Mercado Libre and off the site",
        "description": "Your price will be adjusted by comparing the price and selling conditions of same listings on Mercado Libre and other marketplaces."
    },
    "min_price": 111,
    "max_price": 999
}

Response fields

The response of a PUT to the resource /marketplace/items/{itemId}/prices/automate will provide the following parameters:

  • item_id: Item identifier
  • status: Automation status, possible statuses:
    • ACTIVE
    • PAUSED
  • item_rule:
    • rule_id: Automation rule.
    • title: The title of the automation rule.
    • description: A detailed description of the automation rule.
  • min_price: Minimum price set for the automation.
  • max_price: Maximum price set for the automation.

Possible errors when updating an automation

When updating an automation, you may encounter the following errors. It is crucial that you understand the cause of each one and know how to correct them in order to efficiently manage the situation. Here is the information you need to identify and resolve these issues.


Field rule_id without value:

{
    "error": "argument_not_valid",
    "message": "rule_id must not be null",
    "status": 400,
    "cause": [
        {
            "code": "rule_id_not_null",
            "message": "Rule identifier is required"
        }
    ]
}

Item not found:

{
    "error": "item_not_found",
    "message" : "Item with id [MLA123456] not found",
    "status": 404,
    "cause": []
}

User not authorized:

{
    "error": "user_not_authorized",
    "message": "User is not allowed to automate items",
    "status": 412,
    "cause": []
}

Automation not allowed:

{
   "error": "automation_operation_not_allowed",
   "message" : "Cannot perform [assign automation] for item with id [MLA123456]",
   "status": 412,
   "cause": []
}

Unable to process the established rule:

{
    "error": "unprocessable_set_rule",
    "message" : "Error calling rule retrieve service",
    "status": 422,
    "cause": []
}

Unauthorized:

{
    "code": "unauthorized",
    "message": "invalid access token"
}

Unusual price value error

{
  "message": "unusual value for your listing, unusual value for your listing",
  "error": "bad_request",
  "status": 400,
  "cause": []
}

This error occurs when one or both values sent in min_price or max_price are considered unusually low by price validation. The validation compares each value with recent data for the same item, including sales and historical prices from the last 60 days or, when there is insufficient history, the standard price.


Update pricing automation for User Product listings

New Use the PUT endpoint /global/user-products/{siteless_user_product_id} to configure pricing automation for one or more existing listings associated with the same Siteless User Product.


For each listing, the pricing_automation field lets you update the rule and limits of an existing automation. Listings can belong to different marketplaces and local sellers, provided they are all associated with the same Merchant ID (Global User) and the same siteless_user_product_id.


Prerequisites for updating an automation

  • Confirm that the listings exist and belong to the Siteless User Product specified in the URL.
  • The rule must be applied to an existing item.
  • A minimum price is required.
  • The maximum and minimum prices must be reasonable.

Request parameters

Parameter Type Required Description
siteless_user_product_id string Required Identifier of the Siteless User Product associated with the listings.
listing_sites array Required List of listings and configurations you want to update.
listing_sites[].listing_id string Required Identifier of the listing in the destination marketplace.
listing_sites[].pricing_automation object Required Pricing automation configuration for the listing.
listing_sites[].pricing_automation.rule_id string Required Identifier of a rule available for the listing, retrieved from the rules endpoint.
listing_sites[].pricing_automation.min_price number Required Minimum limit for the automation.
listing_sites[].pricing_automation.max_price number Required Maximum limit for the automation.

Request:

curl --request PUT \
  'https://api.mercadolibre.com/global/user-products/{siteless_user_product_id}' \
  --header "Authorization: Bearer $ACCESS_TOKEN" \
  --header 'Content-Type: application/json' \
  --data '{
    "listing_sites": [
      {
        "listing_id": "MLM3092688467",
        "pricing_automation": {
          "rule_id": "INT",
          "min_price": 239,
          "max_price": 263
        }
      },
      {
        "listing_id": "MLM3092688341",
        "pricing_automation": {
          "rule_id": "INT",
          "min_price": 255,
          "max_price": 282
        }
      }
    ]
  }'

Example:

curl --request PUT \
  'https://api.mercadolibre.com/global/user-products/U4248110104' \
  --header "Authorization: Bearer $ACCESS_TOKEN" \
  --header 'Content-Type: application/json' \
  --data '{
    "listing_sites": [
      {
        "listing_id": "MLM3092688467",
        "pricing_automation": {
          "rule_id": "INT",
          "min_price": 239,
          "max_price": 263
        }
      },
      {
        "listing_id": "MLM3092688341",
        "pricing_automation": {
          "rule_id": "INT",
          "min_price": 255,
          "max_price": 282
        }
      }
    ]
  }'

Response

{
  "id": "U4248110104",
  "errors": null,
  "listing_sites": [
    {
      "id": "MLM3092688467",
      "success": true,
      "errors": null
    },
    {
      "id": "MLM3092688341",
      "success": true,
      "errors": null
    }
  ]
}

The response indicates that the operation succeeded for both listings.


Update listings from different marketplaces

You can also update listings from different local sellers in the same request, provided they belong to the same Merchant and the same Siteless User Product.


Example:

curl --request PUT \
  'https://api.mercadolibre.com/global/user-products/U4265470616' \
  --header "Authorization: Bearer $ACCESS_TOKEN" \
  --header 'Content-Type: application/json' \
  --data '{
    "listing_sites": [
      {
        "listing_id": "MLB4866530751",
        "pricing_automation": {
          "rule_id": "INT_EXT",
          "min_price": 65,
          "max_price": 75
        }
      },
      {
        "listing_id": "MLM5666109034",
        "pricing_automation": {
          "rule_id": "INT",
          "min_price": 210,
          "max_price": 245
        }
      }
    ]
  }'

Response:

{
  "id": "U4265470616",
  "errors": null,
  "listing_sites": [
    {
      "id": "MLB4866530751",
      "success": true,
      "errors": null
    },
    {
      "id": "MLM5666109034",
      "success": true,
      "errors": null
    }
  ]
}

Response fields

  • id (string): Identifier of the updated Siteless User Product.
  • errors: Contains null in the successful examples.
  • listing_sites (array): Individual results for the submitted listings.
    • id (string): Identifier of the processed listing.
    • success (boolean): Indicates whether the operation succeeded for the listing.
    • errors: Contains null for the successfully processed listings in the examples.

Delete a Price Automation

To delete a price automation rule from an item that is currently assigned, a DELETE request must be made to the resource /marketplace/items/{itemId}/prices/automate.


Preconditions to delete an automation

  • The rule must be deleted from an existing item
  • An existing rule must be deleted

Request:

curl -X DELETE -H 'Authorization: Bearer $ACCESS_TOKEN' 
https://api.mercadolibre.com/marketplace/items/{itemId}/prices/automate

Example:

ccurl -X DELETE -H 'Authorization: Bearer $ACCESS_TOKEN' 
https://api.mercadolibre.com/marketplace/items/MLM2245313004/prices/automate

The successful response will be only a "200 - OK" with an empty return.

{}


Possible errors when deleting an automation

When deleting an automation, you may encounter the following errors. It is crucial that you understand the cause of each one and know how to correct them in order to efficiently manage the situation. Here is the information you need to identify and resolve these issues.


Item not found:

{
    "error": "item_not_found",
    "message" : "Item with id [MLA123456] not found",
    "status": 404,
    "cause": []
}

Automation not found:

{
    "error": "automation_not_found",
    "message" : "Automation not found for item with id [MLA123456]",
    "status": 404,
    "cause": []
}

User not authorized:

{
    "error": "user_not_authorized",
    "message": "User is not allowed to automate items",
    "status": 412,
    "cause": []
}

Automation not allowed:

{
   "error": "automation_operation_not_allowed",
   "message" : "Cannot perform [delete automation] for item with id [MLA123456]",
   "status": 412,
   "cause": []
}

Unable to process the established rule:

{
    "error": "unprocessable_delete_rule",
    "message" : "Error calling rule retrieve service",
    "status": 422,
    "cause": []
}

Unauthorized:

{
    "code": "unauthorized",
    "message": "invalid access token"
}

Get price history for an automated item

New For a specific item, you can get the history of price modifications generated by the applied automations by querying the resource /marketplace/items/$ITEM_ID/price/history.


Prerequisites to get the price history for an item

  • Must query an existing item.

Parameters:

Query params Required Value details
days Optional default is 30
page Optional default is 0
size Optional default is 10

Request:

curl -X GET -H 'Authorization: Bearer $ACCESS_TOKEN' 
https://api.mercadolibre.com/marketplace/items/$ITEM_ID/prices/history

Example:

curl -X GET -H 'Authorization: Bearer $ACCESS_TOKEN' 
https://api.mercadolibre.com/marketplace/items/MLM5411216524/prices/history

Response:

{
    "result_code": 200,
    "result": {
        "content": [
            {
                "date_time": "2026-08-06T13:17:03.867-06:00",
                "percent_change": 9.87,
                "usd_price": 144.12,
                "deal_id": "0b8bc276-5d5a-3b89-bcbf-4b86fe38c261",
                "price": 2494.67,
                "event": "CurrentStrategyConfirmed",
                "strategy_type": "automation_min_price"
            },
            {
                "date_time": "2026-08-06T12:50:02.639-06:00",
                "percent_change": 0,
                "usd_price": 131.18,
                "deal_id": "f3595a98-cc27-3eb6-8246-acadb623af22",
                "price": 2270.66,
                "event": "CurrentStrategyConfirmed",
                "strategy_type": "automation_min_price"
            },
            {
                "date_time": "2026-08-06T12:49:59.621-06:00",
                "percent_change": -4.29,
                "usd_price": 131.18,
                "deal_id": "64f06bb7-07e9-3389-b7c2-381501c14433",
                "price": 2270.66,
                "event": "CurrentStrategyConfirmed",
                "strategy_type": "automation_min_price"
            },
            {
                "date_time": "2026-08-05T16:43:38.109-06:00",
                "percent_change": 4.48,
                "usd_price": 137.06,
                "deal_id": "c9d7dc75-55de-33d4-bbf1-930148be5762",
                "price": 2372.48,
                "event": "CurrentStrategyConfirmed",
                "strategy_type": "automation_min_price"
            },
            {
                "date_time": "2026-08-05T06:44:12.186-06:00",
                "percent_change": -91.2,
                "usd_price": 131.18,
                "deal_id": "5e99320c-8a6d-31a0-a2d1-7c4c1d9d80b3",
                "price": 2270.66,
                "event": "CurrentStrategyConfirmed",
                "strategy_type": "automation_min_price"
            },
            {
                "date_time": "2026-08-03T13:43:03.208-06:00",
                "percent_change": 0,
                "usd_price": 1484.9,
                "deal_id": "24635184-5e5d-35e9-865a-3eda70aa5020",
                "price": 25792.65,
                "event": "CurrentStrategyConfirmed",
                "strategy_type": "automation_min_price"
            }
        ],
        "pageable": {
            "offset": 0,
            "page_number": 0,
            "page_size": 10
        },
        "total_elements": 6,
        "total_pages": 1,
        "size": 10,
        "number_of_elements": 6,
        "empty": false
    },
    "result_message": "OK"
}

Response fields

  • result_code: HTTP response code for the received request.
  • result: Contains the response content and pagination information.
    • content: List of objects containing the price history details.
      • date_time: Date indicating when the price change was recorded.
      • percent_change: Percentage price change relative to the previous value.
      • usd_price: Item price in USD. Can be 0 if not available.
      • deal_id: Unique identifier associated with the transaction or price event.
      • price: Item price in local currency at the time of the event.
      • event: Name of the event that caused the price change.
      • strategy_type: Type of strategy used for the price adjustment.
    • pageable: Pagination information for the results.
      • offset: Offset from the beginning of the results list.
      • page_number: Current page number in the pagination.
      • page_size: Maximum number of elements per page.
    • total_elements: Total number of elements available in the response.
    • total_pages: Total number of available pages according to the page size.
    • size: Number of elements present on the current page.
    • number_of_elements: Number of elements on the current page.
    • empty: Indicator whether the response contains data or not.
  • result_message: Message providing a description of the request status.

History for item with no automation applied

If the queried item has no price automation applied, the API will return result_code: 200 with an empty content list and the field empty: true, indicating that there are no price change records generated by automation for that item.


Expected response:

{
    "result_code": 200,
    "result": {
        "content": [],
        "pageable": {
            "offset": 0,
            "page_number": 0,
            "page_size": 10
        },
        "total_elements": 0,
        "total_pages": 0,
        "size": 10,
        "number_of_elements": 0,
        "empty": true
    },
    "result_message": "OK"
}

Possible errors when getting the price history of an item

When getting the price change history for an item, you may encounter the following errors. It is crucial that you understand the cause of each one and know how to fix them to handle the situation efficiently. Here you have the necessary information to identify and resolve these issues.


Unauthorized:

{
    "message": "invalid_token",
    "error": "not_found",
    "status": 401,
    "cause": []
}

The item does not belong to the seller:

{
    "message": "Caller is not the item's owner",
    "error": "unauthorized_scopes",
    "status": 401,
    "cause": []
}

Get available rules for a catalog product

New For a specific product, you can get the list of available rules that can be used for price automation.


Prerequisites to get the available rules for an item

  • Must be queried for an existing product.
  • The user must have a good reputation (Yellow, Light Green, Green).

Request:

curl -X GET -H 'Authorization: Bearer $ACCESS_TOKEN' https://api.mercadolibre.com/marketplace/products/$CATALOG_PRODUCT_ID/prices/automate/rules

Example:

curl -X GET -H 'Authorization: Bearer $ACCESS_TOKEN' https://api.mercadolibre.com/marketplace/products/MLM29387276/prices/automate/rules

Response:

{
    "product_id": "MLM29387276",
    "rules": [
        {
            "rule_id": "INT_EXT",
            "title": "Best net proceeds on Mercado Libre and off the site",
            "description": "Your net proceeds will be automatically adjusted based on prices and selling conditions of the Catalog listings on Mercado Libre's and other marketplaces. Use it to improve your search engine rankings and increase your visibility. "
        }
    ]
}

Response fields

  • product_id: Catalog product identifier.
  • rules: List of available rules for an item. Currently can only be INT_EXT and INT.
  • rule_id: Automation rule.

Possible errors when getting the available rules

When getting the available rules for a product, you may encounter the following errors. It is crucial that you understand the cause of each one and know how to fix them to handle the situation efficiently. Here you have the necessary information to identify and resolve these issues.


$CATALOG_PRODUCT_ID not found:

{
  "message": "Product with id [MLA123456] not found",
  "error": "product_not_found",
  "status": 404,
  "cause": []
}

Unauthorized:

{
  "code": "unauthorized",
  "message": "invalid access token"
}

Assign new price automation by catalog product

New Assign a new automation rule to a catalog item using the data of the product associated with it. To assign the rule, a minimum price must be set, the item must be a catalog item, and it must have opportunities.


Prerequisites to assign an automation

  • The rule must be applied to an existing item.
  • A minimum price is required.
  • Prices cannot be unreasonable (Maximum and Minimum).
  • The user must have a good reputation (Yellow, Light Green, or Green).
  • The item must be a catalog item.
  • The associated product must have opportunities.
  • The item must be new.
  • Must meet the Creation conditions.
Important:
  • When a traditional item is synchronized with a catalog item, automation can only be applied from the catalog item. In this case, the traditional item's prices will be automatically synchronized, reflecting the changes made to the catalog item.
  • It is not allowed to create automation directly on the traditional item if it is already linked to a catalog item.
  • If a traditional item is not synchronized with a catalog item and is automated, and later that item is linked to a catalog item, the automation will be automatically transferred to the catalog item.
  • If the automation is deleted from the catalog item, it will also be removed from the corresponding traditional item.
  • This does not mean that both (traditional and catalog) are automated independently. Automation is centralized in just one of them, but due to the default synchronization behavior, whenever the price is updated in one, the value is reflected in the other.

    Parameters

    Query params Required Value details
    Item_id Required listing identifier
    catalog_product_id Required catalog product identifier

    Request:

    curl -X POST
    'https://api.mercadolibre.com//marketplace/items/$ITEM_ID/prices/automate/by-product/$CATALOG_PRODUCT_ID' \
    -H 'Authorization: Bearer $ACCESS_TOKEN' \
    -H 'Content-Type: application/json' \
    -d '{
      "rule_id" : "INT",
      "min_price": 100,
      "max_price": 1000
    }'

    Example:

    curl -X POST
    'https://api.mercadolibre.com//marketplace/items/MLM5411216524/prices/automate/by-product/MLM29387276' \
    -H 'Authorization: Bearer $ACCESS_TOKEN' \
    -H 'Content-Type: application/json' \
    -d '{
      "rule_id" : "INT",
      "min_price": 100,
      "max_price": 1000
    }'

    Response:

    {
      "status": "ACTIVE",
      "item_id": "MLM5411216524",
      "item_rule": {
      "rule_id": "INT_EXT",
      "title": "Best net proceeds on Mercado Libre and off the site",
      "description": "Your net proceeds will be automatically adjusted based on prices and selling conditions of the Catalog listings on Mercado Libre's and other marketplaces."
      },
      "min_price": 100,
      "max_price": 1000
     }

    Response fields

    • item_id: Item identifier.
    • status: Automation status, possible values:
      • ACTIVE
      • PAUSED
    • item_rule: Automation rule. Available rules are:
      • rule_id: Automation rule.
      • "INT_EXT" (Internal and external competition simultaneously)
      • "INT" (Internal competition only; for catalog items, only this type of listings will be considered)
    • min_price: Minimum price assigned to the automation.
    • max_price: Maximum price assigned to the automation.

    Possible errors when assigning an automation

    When assigning a new automation, you may encounter the following errors. It is crucial that you understand the cause of each one and know how to fix them to handle the situation efficiently. Here you have the necessary information to identify and resolve these issues.


    Automation already created:

    {
      "message": "Automation already created",
      "error": "automation_already_created",
      "status": 412,
      "cause": []
    }
    {
      "message": "The item [MLB363980000] isn't from catalog",
      "error": "item_not_catalog",
      "status": 412,
      "cause": []
    }

    Automation not allowed:

    {
      "message": "Cannot perform [assign automation] for item with id [MLB5742509500]",
      "error": "automation_operation_not_allowed",
      "status": 412,
      "cause": []
    }

    Invalid rule_id field value:

    {
        "message": "rule identifier is not valid",
        "error": "argument_not_valid",
        "status": 400,
        "cause": null
    }

    ITEM_ID not found:

    {
        "message": "Item with id MLM5411216000 not found",
        "error": "not_found",
        "status": 404,
        "cause": []
    }

    Invalid CATALOG_PRODUCT_ID:

    {
        "message": "Product with id [MLM29387] not found",
        "error": "product_not_found",
        "status": 404,
        "cause": null
    }

    Item is not new:

    {
      "message": "Item id [MLB416190331] doesn't have a condition: new.",
      "error": "item_not_new",
      "status": 412,
      "cause": []
    }

    Unauthorized:

    {
        "message": "invalid_token",
        "error": "not_found",
        "status": 401,
        "cause": []
    }

    Unusual price value error

    {
      "message": "unusual value for your listing, unusual value for your listing",
      "error": "bad_request",
      "status": 400,
      "cause": []
    }

    This error occurs when one or both values sent in min_price or max_price are considered unusually low by price validation. The validation compares each value with recent data for the same item, including sales and historical prices from the last 60 days or, when there is insufficient history, the standard price.


    Note:

    In all cases, remember to use the $ITEM_ID parameter of the catalog item.