Documentation Mercado Libre

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

Documentation

Last update 11/11/2026

Replenishment Plans

A replenishment recommendation indicates whether a product stored in Full needs new units to maintain its availability. When applicable, it includes the suggested quantity and the recommended timeframe to carry out the replenishment.

Through this resource, applications can query consolidated information for a User Product about stock, sales, product attributes, applicable benefits, and replenishment recommendations. This information can be integrated into other seller management systems to facilitate planning and decision-making.

Endpoint Description
GET /marketplace/fbm/user-products/$USER_PRODUCT_ID/replenishment Queries the replenishment recommendation and the information associated with a specific product.
GET /marketplace/fbm/sellers/$SELLER_ID/user-products/replenishment Returns a paginated list of the seller's User Products with their replenishment recommendations and associated information.
Important:
These resources are currently supported only for the M4 model (Fulfillment China).
Note:
By following the shipping suggestions, the seller ensures having the stock needed to cover future sales. The seller retains the decision over the units sent to Full, subject to applicable operational and capacity validations.

Use cases

Use case Description
Get replenishment information for a product associated with Full When the product has inventory_id, the complete available information is returned: identifiers, product data, stock, sales, recommendation, and applicable benefits.
Get basic information for a product not associated with Full When the product does not have inventory_id, the available identifiers and basic product information are returned. The stock, sales, recommendation, and benefits data are null.

Authentication

Both endpoints require authentication via OAuth2. Include a valid token in the Authorization header:

Authorization: Bearer $ACCESS_TOKEN
Important:
The token must correspond to the seller performing the operation. Each resource is protected so that only the authenticated seller can access their own information.

Request limit (Rate Limit)

Both endpoints have rate limiting enabled per seller (based on the identity of the OAuth2 token):

Endpoint Quota (variable per instance) Time window
GET /marketplace/fbm/user-products/$USER_PRODUCT_ID/replenishment 500 requests 60 seconds
GET /marketplace/fbm/sellers/$SELLER_ID/user-products/replenishment 500 requests 60 seconds

When the limit is exceeded, the API responds with 429 Too Many Requests.

Note:
  • Repeatedly sending identical requests within a short period of time may result in a temporary block of the seller.
  • For Fulfillment China (model 4), this query only works when executed using the global UP.

Query replenishment by seller

This resource returns a paginated list of a seller's User Products and their replenishment recommendations.

GET /marketplace/fbm/sellers/$SELLER_ID/user-products/replenishment

Parameters

Parameter Type Required Default Description
seller_id (path) Number Yes — Positive numeric identifier of the seller.
country (query) String Yes — Two-letter country code in uppercase. It must match the seller's country. For CBT M4, send CN.
limit (query) Integer No 20 Number of products per page. Allowed values: 1 to 20.
offset (query) Integer No 0 Number of products to skip before the page starts. Must be greater than or equal to 0. If it is greater than or equal to paging.total, the API returns 200 with an empty results list.
shipping_urgency (query) List of values No — Filters products by shipping urgency. Send one or more comma-separated values: URGENT, THIS_WEEK, IN_TWO_WEEKS, NO_URGENCY, CBT M4 does not accept NEXT_WEEK; including it rejects the entire request with 400.
product_tags (query) List of values No — This filter is not supported for CBT M4. Sending any value rejects the entire request with 400.

How filters work

  • Multiple values in the same filter are combined with OR. For example, shipping_urgency=URGENT,THIS_WEEK returns products that match either value.
  • For this filter, the API returns products with the requested urgency whose product.tags includes is_fulfillment. Products with a null shipping_urgency do not match any filter value and appear only when the filter is omitted.
  • When multiple supported filters are available, the API combines them with AND. For CBT M4, product_tags is not supported, so use shipping_urgency to filter the collection.
  • Repeated values are ignored and empty values are discarded.
  • An unknown value for shipping_urgency or product_tags returns 400. For CBT M4, product_tags is not supported.
  • Parameters not listed above are ignored.
  • If you omit limit or offset, the API uses their default values.
  • Products are returned in replenishment priority order for the seller type. The order is preserved within each page and cannot be configured.

Examples

Call:

curl -X GET -H "Authorization: Bearer $ACCESS_TOKEN" "https://api.mercadolibre.com/marketplace/fbm/sellers/$SELLER_ID/user-products/replenishment?country=CN&limit=20&offset=0"

Example:

curl -X GET -H "Authorization: Bearer $ACCESS_TOKEN" 'https://api.mercadolibre.com/marketplace/fbm/sellers/123456789/user-products/replenishment?country=CN&limit=20&offset=0'

Response structure

Each item in results has the same structure as the response from the User Product resource. The collection response also includes:

Field Description
seller_idIdentifier of the queried seller. It matches the seller_id in the path.
resultsProducts on the current page. Each item follows the User Product response structure.
warningsOne warning for each product with incomplete information. This list is empty when all products are complete.
warnings[].user_product_idUser Product associated with the warning.
warnings[].codeWarning type. The available value is partial_content.
warnings[].content_missingObjects that could not be retrieved: product, sales, or stock. More than one value may be returned.
paging.limitMaximum number of products on the page.
paging.offsetStarting position of the page: number of products skipped.
paging.totalTotal number of products matching the filters before applying limit and offset.

200 OK: The page was returned successfully. If no products match the filters, or if offset is greater than or equal to the total, the API returns 200 with an empty results list.

206 Partial Content: At least one product on the page has incomplete complementary information (product, sales, or stock), but its recommendation and applicable benefits were returned. The API adds a warning for each affected product. Unlike the User Product resource, this endpoint does not return the X-Content-Missing header; missing content is listed in warnings[].content_missing. Use the available data and retry the page later, or query the affected product through the User Product resource.

If required data for any product on the page fails, the entire request returns an error instead of a partial page. For a 5xx error, retry the same page.

{
  "seller_id": 123456789,
  "results": [
    {
      "identifiers": {
        "user_product_id": "U123456789",
        "inventory_id": "HXJE12345",
        "seller_sku": "JZB1222"
      },
      "product": {
        "tags": ["is_fulfillment"],
        "packages_master_case": []
      },
      "stock": {
        "total_stock": 0,
        "shipping_urgency": null,
        "minimum_distributable_stock": 0
      },
      "sales": {
        "sales_totals": {
          "period": "7DAYS",
          "gmv": [{"full": 0.0}],
          "units_sold": [{"full": 0}]
        },
        "sales_history": []
      },
      "recommendation": {
        "recommendation_type": "REPLENISH",
        "suggested_quantity": {"type": "range", "min": 5, "max": 10},
        "replenishment_deadline": null,
        "replenishment_frequency": null
      },
      "eligibility_benefits": []
    }
  ],
  "warnings": [],
  "paging": {"limit": 20, "offset": 0, "total": 1}
}

Partial response example

This 206 response identifies a product whose sales information is incomplete:

HTTP/1.1 206 Partial Content
Content-Type: application/json

{
  "seller_id": 123456789,
  "results": [{
    "identifiers": {"user_product_id": "U123456789", "inventory_id": "HXJE12345", "seller_sku": "JZB1222"},
    "product": {"tags": ["is_fulfillment"], "packages_master_case": []},
    "stock": {"total_stock": 0, "shipping_urgency": null, "minimum_distributable_stock": 0},
    "sales": {"sales_totals": null, "sales_history": null},
    "recommendation": {
      "recommendation_type": "REPLENISH",
      "suggested_quantity": {"type": "range", "min": 5, "max": 10},
      "replenishment_deadline": null,
      "replenishment_frequency": null
    },
    "eligibility_benefits": []
  }],
  "warnings": [{"user_product_id": "U123456789", "code": "partial_content", "content_missing": ["sales"]}],
  "paging": {"limit": 20, "offset": 0, "total": 1}
}

Query replenishment recommendation

This resource allows querying the replenishment recommendation and the information associated with a User Product.

GET /marketplace/fbm/user-products/$USER_PRODUCT_ID/replenishment

Required parameter

Variable Type Description
user_product_id String Identifier of the global User Product to query for CBT M4. It starts with U followed by 1 to 10 digits. Example: U123456789.

Required query param

Variable Description
country Two-letter country code associated with the query. Must be sent in uppercase. Examples: CN.

Examples

Call:

curl -X GET -H "Authorization: Bearer $ACCESS_TOKEN" "https://api.mercadolibre.com/marketplace/fbm/user-products/$USER_PRODUCT_ID/replenishment?country=CN"

Example:

curl -X GET -H "Authorization: Bearer $ACCESS_TOKEN" 'https://api.mercadolibre.com/marketplace/fbm/user-products/U4259572170/replenishment?country=CN'

Response 200

When the product is already in Full (range)

 {
      "identifiers": {
        "user_product_id": "U123456789",
        "inventory_id": "HXJE12345",
        "seller_sku": "JZB1222"
      },
      "product": {
        "tags": [
          "is_fulfillment"
        ],
        "packages_master_case": []
      },
      "stock": {
        "total_stock": 0,
        "shipping_urgency": null,
        "minimum_distributable_stock": 0
      },
      "sales": {
        "sales_totals": {
          "period": "7DAYS",
          "gmv": [
            {
              "full": 0.0
            }
          ],
          "units_sold": [
            {
              "full": 0
            }
          ]
        },
        "sales_history": [
          {
            "start_date": "2026-10-14",
            "end_date": "2026-10-20",
            "units_sold": 0,
            "days_out_of_stock": 7,
            "campaigns": []
          },
          {
            "start_date": "2026-10-07",
            "end_date": "2026-10-13",
            "units_sold": 0,
            "days_out_of_stock": 7,
            "campaigns": []
          },
          {
            "start_date": "2026-09-30",
            "end_date": "2026-10-06",
            "units_sold": 0,
            "days_out_of_stock": 7,
            "campaigns": []
          },
          {
            "start_date": "2026-09-23",
            "end_date": "2026-09-29",
            "units_sold": 0,
            "days_out_of_stock": 7,
            "campaigns": []
          },
          {
            "start_date": "2026-09-16",
            "end_date": "2026-09-22",
            "units_sold": 0,
            "days_out_of_stock": 7,
            "campaigns": []
          },
          {
            "start_date": "2026-09-09",
            "end_date": "2026-09-15",
            "units_sold": 0,
            "days_out_of_stock": 7,
            "campaigns": []
          }
        ]
      },
      "recommendation": {
        "recommendation_type": "REPLENISH",
        "suggested_quantity": {
          "type": "range",
          "min": 5,
          "max": 10
        },
        "replenishment_deadline": null,
        "replenishment_frequency": null
      },
      "eligibility_benefits": []
    }

When the product has never been in Full (for now no further information is available):

 {
      "identifiers": {
        "user_product_id": "U123456789",
        "inventory_id": null,
        "seller_sku": "JZB1222"
      },
      "product": {
        "tags": [
          "is_fulfillment"
        ],
        "packages_master_case": []
      },
      "stock": null,
      "sales": null,
      "recommendation": null,
      "eligibility_benefits": null
    }

When a product already in Full has a restriction (the restriction prevents its replenishment):

{
  "identifiers": {
        "user_product_id": "U123456789",
        "inventory_id": "HXJE12345",
        "seller_sku": "JZB1222"
  },
  "product": {
    "tags": [
      "is_restricted"
    ],
    "packages_master_case": []
  },
  "stock": {
    "total_stock": 10,
    "shipping_urgency": "null",
    "minimum_distributable_stock": 0
  },
  "sales": {
    "sales_totals": {
      "period": "14DAYS",
      "gmv": [
        {
          "full": 7.71
        }
      ],
      "currency": "USD",
      "units_sold": [
        {
          "full": 2
        }
      ]
    },
    "sales_history": [
      {
        "start_date": "2026-10-14",
        "end_date": "2026-10-20",
        "units_sold": 1,
        "days_out_of_stock": 0,
        "campaigns": []
      },
      {
        "start_date": "2026-10-07",
        "end_date": "2026-10-13",
        "units_sold": 1,
        "days_out_of_stock": 0,
        "campaigns": []
      },
      {
        "start_date": "2026-09-30",
        "end_date": "2026-10-06",
        "units_sold": 1,
        "days_out_of_stock": 0,
        "campaigns": []
      },
      {
        "start_date": "2026-09-23",
        "end_date": "2026-09-29",
        "units_sold": 0,
        "days_out_of_stock": 7,
        "campaigns": []
      },
      {
        "start_date": "2026-09-16",
        "end_date": "2026-09-22",
        "units_sold": 10,
        "days_out_of_stock": 1,
        "campaigns": []
      },
      {
        "start_date": "2026-09-09",
        "end_date": "2026-09-15",
        "units_sold": 1,
        "days_out_of_stock": 0,
        "campaigns": []
      }
    ]
  },
  "recommendation": {
    "recommendation_type": "NO_REPLENISHMENT_BY_RESTRICTION",
    "suggested_quantity": null,
    "replenishment_deadline": null,
    "replenishment_frequency": null
  },
  "eligibility_benefits": []
}

Response 206 — Partial Content

The API returns 206 Partial Content when it can deliver the replenishment recommendation and the applicable benefits, but part of the complementary product information is not available.

Important:
The header X-Content-Missing identifies the affected content. The possible values are product, sales, and stock. When more than one content is affected, the values are separated by commas. This header is returned only in 206 responses; 200 OK responses do not include it, and it never exposes the names of APIs, services, or internal dependencies.

The response retains its general structure. The affected content may show fields as null, empty lists, or partial information. The integrator can use the available data and retry the query later.

HTTP/1.1 206 Partial Content
Content-Type: application/json
X-Content-Missing: sales, stock

{
  "identifiers": {
    "user_product_id": "U123456789",
    "inventory_id": "HXJE12345",
    "seller_sku": "JZB1222"
  },
  "product": {
    "tags": [
      "is_fulfillment"
    ],
    "packages_master_case": []
  },
  "stock": {
    "total_stock": 0,
    "shipping_urgency": null,
    "minimum_distributable_stock": null
  },
  "sales": {
    "sales_totals": {
      "period": "30DAYS",
      "gmv": [
        {
          "full": 14990.54
        }
      ],
      "currency": "USD",
      "units_sold": [
        {
          "full": 214
        }
      ]
    },
    "sales_history": null
  },
  "recommendation": {
    "recommendation_type": "REPLENISH",
    "suggested_quantity": {
      "type": "exact",
      "value": 510
    },
    "replenishment_deadline": null,
    "replenishment_frequency": null
  },
  "eligibility_benefits": []
}

Response 404 — Not Found

{
  "error": "not_found",
  "message": "The requested resource was not found.",
  "status": 404
}

Invalid parameter:

{
  "error": "invalid_request",
  "message": "One or more request parameters are invalid.",
  "status": 400
}

Response 403 — Forbidden

The authenticated account is not authorized to query the requested resource.

{
  "error": "access_denied",
  "message": "You are not authorized to access this resource.",
  "status": 403
}

Response 429 — Too Many Requests

{
  "error": "too_many_requests",
  "message": "Too Many Requests",
  "status": 429
}

Response 500 — Internal Error

{
  "error": "internal_error",
  "message": "An unexpected error occurred. Please try again later.",
  "status": 500
}

Response 503 — Service Unavailable

{
  "error": "service_unavailable",
  "message": "The service is temporarily unavailable. Please try again later.",
  "status": 503
}

Response fields

Field Description Not applicable
identifiers.user_product_id Unique identifier of the User Product in Mercado Libre.
identifiers.inventory_id Identifier of the inventory associated with the product in Full.
identifiers.seller_sku SKU defined by the seller to identify the product in their own system. It can be null when not informed.
product.tags List of characteristics associated with the product.
product.packages_master_case Box configurations corresponding to Master Case. In the first phase, an empty list is returned. CBT M4
stock.total_stock Includes the units available in storage, the units awaiting arrival, the units reserved in transfer, and, when applicable, stored units that could become available once restrictions due to missing fiscal documentation are resolved. For this reason, stock.total_stock may differ from the inventory reported by Stock: Stock represents only the units available in Full storage, while this field also considers the units that could potentially become available to meet demand.
stock.shipping_urgency Identifier of the shipping urgency.
stock.minimum_distributable_stock Minimum quantity of units required for the product to be distributed in Full. CBT M4
sales.sales_totals.period Period used to calculate accumulated sales.
sales.sales_totals.units_sold[].full Number of units sold through Full logistics during the queried period.
sales.sales_totals.gmv[].full Gross value of sales made through Full logistics during the queried period.
sales.sales_totals.currency Currency code used to express the GMV.
sales.sales_history Weekly history of sales, days out of stock, and active campaigns on Mercado Libre. Up to six periods can be returned.
sales.sales_history[].start_date Start date of the weekly period.
sales.sales_history[].end_date End date of the weekly period.
sales.sales_history[].units_sold Number of units sold through Full during the weekly period.
sales.sales_history[].days_out_of_stock Number of days without stock during the weekly period.
sales.sales_history[].campaigns Campaigns associated with the period. In the current implementation, an empty list is returned. CBT M4
recommendation.recommendation_type Result of the replenishment recommendation applicable to the product.
recommendation.suggested_quantity.type Way in which the suggested quantity is expressed: exact or range.
recommendation.suggested_quantity.value Exact suggested quantity. Informed when type is exact.
recommendation.suggested_quantity.min Minimum suggested quantity. Informed when type is range.
recommendation.suggested_quantity.max Maximum suggested quantity. Informed when type is range.
recommendation.replenishment_deadline Suggested deadline for carrying out the replenishment. It can be null when this information is not available. CBT M4
recommendation.replenishment_frequency Replenishment frequency, based on the seller's inbound history, expressed in weeks. It can be null when this information is not available. CBT M4
eligibility_benefits List of benefits for which the product is eligible. No benefits applicable for Fulfillment China (M4) CBT M4

Possible values for dynamic fields

For CBT M4, packages_master_case, minimum_distributable_stock, campaigns, replenishment_deadline, replenishment_frequency, and eligibility_benefits do not apply and may be null, empty, or zero.

product.tags

Value Meaning
is_fulfillment The User Product is enabled to operate in Full.
is_restricted The product has a restriction that may affect its operation or replenishment in Full.

sales.sales_totals.period

Value Meaning
7DAYS Accumulated sales correspond to the last 7 days.
14DAYS Accumulated sales correspond to the last 14 days.
30DAYS Accumulated sales correspond to the last 30 days.

stock.shipping_urgency

Value Meaning
URGENTIt is recommended to send stock to replenish it urgently.
THIS_WEEKIt is recommended to send stock during the current week.
NEXT_WEEKIt is recommended to carry out the replenishment during the following week. This value is not supported for CBT M4.
IN_TWO_WEEKSIt is recommended to carry out the replenishment within the next two weeks.
NO_URGENCYSending stock to replenish it can be done without urgency.

recommendation.recommendation_type

Value Meaning
REPLENISHIt is recommended to carry out a replenishment using the suggested quantity as a reference.
NO_REPLENISHMENTA new replenishment is not recommended at this time, based on the product's current conditions.
NO_REPLENISHMENT_BY_RESTRICTIONIt is not possible to replenish because there is a restriction applicable to the product.
NO_QUANTITY_BY_INBOUNDNo replenishment quantity is shown because the seller already sent an inbound for this product during the week. Recommendations are updated weekly on Sundays.

recommendation.suggested_quantity.type

Value Meaning
exactThe recommendation contains a single suggested quantity, informed in value.
rangeThe recommendation contains a range of quantities, informed through min and max.

recommendation.replenishment_deadline

Value Meaning
THIS_WEEKIt is recommended to carry out the replenishment during the current week.
NEXT_WEEKIt is recommended to carry out the replenishment during the following week.
IN_TWO_WEEKSIt is recommended to carry out the replenishment within the next two weeks.
NOT_REPLENISHMENT_NEEDEDNo deadline is defined because a replenishment is not required in the short term.

recommendation.replenishment_frequency

Note: This field does not apply to CBT M4.

Although it is numeric, it also has a limited set of values:

Value Meaning
2When the seller replenishes every two weeks.
3When the seller replenishes every three weeks.
4When the seller replenishes every four weeks.

Errors

Http Code Message Solution
400 invalid_request Varies depending on the validation rule. Check the presence of required headers, data types, and parameter format.
403 access_denied Validate the caller's identity and that the seller belongs to the enabled flows (3P/M4).
404 not_found The requested resource does not exist or is not linked to the seller.
429 too_many_requests The request limit was exceeded.
500 internal_error Critical failure in processing the request.
503 service_unavailable The authentication or user service is not available.

Considerations

  • The replenishment recommendation is a suggestion generated by Mercado Libre.
  • The seller retains the decision over the units they wish to send to Full. The quantity ultimately accepted is subject to applicable operational and capacity validations.
  • Querying a recommendation does not reserve space or storage capacity in Full.
  • The recommendation may change between queries due to variations in stock, sales, and the projections used for planning.
  • The values reported correspond to the state available at the time the query is made.
  • The eligibility_benefits field may be included in the response. No benefits currently apply to CBT M4, so the field may be empty or null.
  • A 206 Partial Content response contains usable information, but one or more complementary content items may be incomplete. The User Product resource identifies affected content in the X-Content-Missing header. The seller resource identifies it per product in warnings[].content_missing.
  • In response to a 206, the integrator can use the available information and query the resource again later.