Documentation Mercado Libre
Check out all the necessary information about APIs Mercado Libre.
Documentation
Prohibited categories for Global Selling
When to use this resource
- Check whether a CBT category is allowed or prohibited for the seller in each combination of destination country, business model, and logistics type.
- Use the list to flag categories with at least one prohibition before publishing.
- If the seller uses more than one business model or logistics type, check each combination separately. A category can be prohibited in one combination and allowed in another within the same country.
The result accounts for category and catalog domain restrictions, including any exceptions granted to the seller. A status of allowed means the category passes those checks for that combination. Other listing checks still apply, including those for brands, keywords, and shipping.
Check a specific category
Send the CBT category ID in the optional category_id parameter. Use CBT followed by digits, as in CBT1045.
Request
curl -X GET -H 'Authorization: Bearer $ACCESS_TOKEN' \
'https://api.mercadolibre.com/categories/prohibited?category_id=CBT1045'
Response (200 OK)
{
"category": { "id": "CBT1045", "name": "Lenses" },
"restrictions": [
{
"business_model": "CBT CN International Drop Shipping",
"logistic_type": "remote",
"sites": [
{ "site_id": "MCO", "status": "allowed" },
{ "site_id": "MLB", "status": "allowed" },
{ "site_id": "MLC", "status": "allowed" },
{ "site_id": "MLM", "status": "prohibited" }
]
},
{
"business_model": "CBT Local Fulfillment",
"logistic_type": "fulfillment",
"sites": [
{ "site_id": "MLM", "status": "allowed" }
]
}
]
}
If the category exists and has no equivalent in any of the countries where the seller operates, the API returns 200 OK with restrictions: [].
List categories with prohibitions
To retrieve the list, call the endpoint without parameters. The response includes each CBT category with a prohibited status for at least one combination of business model, logistics type, and country. Each category appears once and includes all applicable combinations and countries, including those with an allowed status. Categories may appear in any order.
Request
curl -X GET -H 'Authorization: Bearer $ACCESS_TOKEN' \
'https://api.mercadolibre.com/categories/prohibited'
Response (200 OK)
[
{
"category": { "id": "CBT413734", "name": "Engine Oils" },
"restrictions": [
{
"business_model": "CBT CN International Drop Shipping",
"logistic_type": "remote",
"sites": [
{ "site_id": "MCO", "status": "allowed" },
{ "site_id": "MLB", "status": "allowed" },
{ "site_id": "MLC", "status": "allowed" },
{ "site_id": "MLM", "status": "prohibited" }
]
},
{
"business_model": "CBT Local Fulfillment",
"logistic_type": "fulfillment",
"sites": [
{ "site_id": "MLM", "status": "allowed" }
]
}
]
}
]
If the seller has no prohibited categories, the API returns an empty array ([]).
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
category_id | Query string | No | CBT category ID in the format CBT followed by digits. Provide it to check that category, or omit it to retrieve the list of categories with at least one prohibition. A local category ID, an empty value, or an invalid format returns HTTP 400. |
Response fields
| Field | Description |
|---|---|
category.id | CBT category ID. |
category.name | CBT category name. |
restrictions | Business model and logistics type combinations that apply to the seller. |
restrictions[].business_model | Business model. Possible values are CBT CN International Drop Shipping, CBT US International Drop Shipping, CBT CN Fulfillment, CBT CN Fulfillment Managed, CBT US Fulfillment, CBT Local Fulfillment, and CBT Local Cross Dock. |
restrictions[].logistic_type | Logistics type for the group, such as remote or fulfillment. |
restrictions[].sites | Destination countries where the seller operates under that combination. |
restrictions[].sites[].site_id | Destination site ID, such as MLM, MLB, MLA, MLC, MCO, or MLU. The response includes only sites where the seller has local accounts. |
restrictions[].sites[].status | prohibited indicates that the category is restricted for that group and site.allowed indicates that the category passes the category and domain checks for that group and site. |
Errors
| HTTP | Error | Message | What to do |
|---|---|---|---|
| 400 | bad_request | Must provide a valid category_id | Send a CBT category ID (CBT followed by digits), or omit the parameter to retrieve the list. |
| 401 | unauthorized | Missing access token | Send a valid access token in the Authorization header. |
| 401 | not_found | invalid_token | Refresh the access token. |
| 401 | unauthorized_scopes | Unauthorized scopes | Make sure the application has the read scope. |
| 403 | forbidden | Invalid caller.id | This error occurs when a valid token belongs to a user outside Global Selling. Use a Global Selling seller’s access token. |
| 404 | not_found | Category not found | Check that the ID belongs to an existing category. |
| 500 | internal_server_error | Unable to retrieve category restrictions | The API temporarily could not retrieve the restrictions. Try again later. |
Error response example
{
"message": "Must provide a valid category_id",
"error": "bad_request",
"status": 400,
"cause": []
}