Documentation Mercado Libre

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

Documentation

Last update 12/11/2026

Compatibility between items and vehicle accessories

Important:
This resource is available only in Argentina, Mexico, Brazil, Uruguay, Chile and Colombia.

The compatibilities allow you to add the items published with the compatible products on the marketplace. For example, if you have a published “Corven Plus Shock Absorber”, you can define attributes such as Brand, Model, Year and Engine for which this spare part is compatible. In this way, you improve the quality of the listings and reduce the number of publications per item.
For this, you must access the dump and verify that the domain of the items and the domain of the products are compatible. Then, you can add the compatibilities in 3 (three) different ways and finally, list them.
If the compatibility is not correct, you will be able to eliminate those defined by the users (sellers).


Summary of catalog compatibility changes

Note:
As of 07/15/2026, for compatibilities managed by the Mercado Libre catalog, the API will allow only summarized read access (brand and total) and the option to apply or not 100% of suggested compatibilities; modifications and deletions will be available only through the Mercado Libre platform. For seller-owned compatibilities there are no changes and they continue to be fully managed via API (add, review, modify and delete).

To accept all suggestions available for a listing, use POST /items/{item_id}/compatibilities/suggestions/accept. The request has no body and does not require individual vehicle IDs. The integration must let the seller decide whether to accept the entire set, without selecting individual vehicles or brands.

Item and User Product compatibility queries return compatibilities that are already associated. Identify pending suggestions separately using the pending_compatibilities tag and the /compatibilities/cards resource. These resources do not provide individual suggestion IDs.

The Auto Parts Compatibility API restricts read and write access to compatibilities managed by Mercado Libre. These restrictions apply to listing, detail and deletion operations. Copying compatibilities retains the behavior described in Copy and paste compatibilities.

Note:
In seller queries, the source field returns SELLER, including in summary entries for compatibilities managed by Mercado Libre. Do not use this field alone to determine who created each compatibility or which operations the API allows.
Important:
These changes only affect compatibilities managed by Mercado Libre. Compatibilities created by the seller have no behavioral changes.

1. Detailed and summarized compatibility reads

Listing endpoints return details for seller-owned compatibilities and a summary by brand for compatibilities managed by Mercado Libre. The table shows the fields available in each case:

Field Compatibility created by SELLER Compatibility created by MELI
id Real value null
domain_id Real value null
catalog_product_id Real value null
catalog_product_name Full vehicle name Brand name only
total Not applicable Number of compatibilities for that brand
reputation Full object null

Affected endpoints:

  • GET /items/{item_id}/compatibilities
  • GET /items/{item_id}/compatibilities?extended=true
  • GET /user-products/{up_id}/compatibilities
  • GET /user-products/{up_id}/compatibilities?main_domain_id=

Response example:

{
  "products": [
    {
      "id": "bcbd413f-cd65-0e0f-88c9-5eb4aebb5372",
      "domain_id": "MLM-CARS_AND_VANS_FOR_COMPATIBILITIES",
      "catalog_product_id": "MLM15847548",
      "catalog_product_name": "Volkswagen Jetta 2010 GLI Manual 5",
      "source": "SELLER",
      "note": "Solo modelos de caja automática"
    },
    {
      "id": null,
      "domain_id": null,
      "catalog_product_id": null,
      "catalog_product_name": "Volkswagen",
      "source": "SELLER",
      "reputation": null,
      "total": 8
    },
    {
      "id": null,
      "domain_id": null,
      "catalog_product_id": null,
      "catalog_product_name": "Audi",
      "source": "SELLER",
      "reputation": null,
      "total": 7
    }
  ]
}

2. Parameter extended=true ignored for catalog compatibilities

The ?extended=true parameter returns notes and position restrictions for compatibilities that support detailed reads. Compatibilities managed by Mercado Libre retain summarized reads; the parameter does not expose individual vehicle identifiers.

3. Detail by ID not available for catalog compatibilities

Compatibilities managed by Mercado Libre do not expose the identifiers required to retrieve individual details through GET /items/{item_id}/compatibilities/{compatibility_id}. Use the Mercado Libre platform to view those details.

4. Deletion restricted to seller compatibilities

The DELETE /items/{item_id}/compatibilities and DELETE /items/{item_id}/compatibilities/{compatibility_id} endpoints allow deletion of seller-owned compatibilities. Compatibilities managed by Mercado Libre must be modified or deleted through the platform. The source: SELLER value alone does not authorize deletion through the API.

5. Copy and paste compatibilities

The POST /user-products/{up_id}/compatibilities/copy-paste operation copies all compatibilities between the source and destination listings, including those managed by the Mercado Libre catalog. Do not filter compatibilities by origin when performing this operation.


Check cross domain compatibility

Note:
- So before publishing, we recommend you to validate if the category of the item contains the attribute categories.required = true .

- Once the publication is created, you will be able to identify the items where it is mandatory to report compatibilities with the tag incomplete_compatibilities. You can see more details in identify items that require compatibilities.

Before creating compatibility between items and products, you should check that the category item and product domains are compatible.

By consulting the next dump, you get the list of domains and categories in which you can or need to report compatibility by site..

Request:

curl -X GET http://api.mercadolibre.com/catalog/dumps/domains/$SITE_ID/compatibilities

Request example:

curl -X GET https://api.mercadolibre.com/catalog/dumps/domains/MLB/compatibilities
Important:
From now on, the response from this endpoint includes the restrictions_required attribute, which indicates whether it is mandatory to provide positions for the corresponding category.

Response example:

[
   [
   {
       "domain_id": "MLB-VEHICLE_ALTERNATOR_BRACKETS",
       "main": false,
       "compatibilities": [
           {
               "compatible_domain_id": "MLB-CARS_AND_VANS",
               "type": "EXTENSION",
               "categories": [
                   {
                       "id": "MLB439572",
                       "required": true,
                       "note_status": "ENABLED",
                       "restrictions_status": "ENABLED",
                       "universal_status": "DISABLED",
                       "display_new_products_status": "ENABLED",
                       "restrictions_required": false,
                       "enabled_clients": [
                           "SUPPLY"
                       ]
                   }
               ]
           }
       ]
   },
   {
       "domain_id": "MLB-AUTOMOTIVE_WIRE_HARNESSES",
       "main": false,
       "compatibilities": [
           {
               "compatible_domain_id": "MLB-CARS_AND_VANS",
               "type": "EXTENSION",
               "required": false,
               "categories": [
                   {
                       "id": "MLB431130",
                       "required": true,
                       "note_status": "ENABLED",
                       "restrictions_status": "ENABLED",
                       "universal_status": "DISABLED",
                       "display_new_products_status": "ENABLED",
                       "restrictions_required": false,
                       "enabled_clients": [
                           "SUPPLY"
                       ]
                   }
               ]
           }
       ]
   },

    …
}]

The new fields indicate:

  • categories: categories that support loading compatibilities..
  • required: categories in which it is mandatory to load compatibilities.
  • type: type of compatibility. Only the EXTENSION type supports loading compatibilities.
  • note_status and restrictions_status: indicate if the category allows reporting notes and positions.
  • universal_status: indicates if the category allows the communication of universal compatibilities. ENABLED: allows the communication of universal compatibilities or DISABLED : does not allow the communication of universal compatibilities.
  • restrictions_required: indicates whether it is mandatory to provide the position.

Get more information about Domains, products and attributes vehicle accessories references.


Count products from a domain

To check the number of existing products per domain (product family) that meet certain attributes and values, you can perform the following POST. This will allow you to validate, prior to associating the compatibilities, the number of products and avoid errors in the assignment of compatibilities.
This is important as only a maximum of 200 products can be assigned per request.

Note:
The traffic limit per APP_ID is 100 rpm.

Request:

curl -X POST -H 'Authorization: Bearer $ACCESS_TOKEN' https://api.mercadolibre.com/catalog_compatibilities/products_search/count_family_products
{
  "domain_id": "$domainId",
  "attributes": [{
    "id": "$attributeId1",
    "value_id": "$valueId1"
  }, {
    "id": "$attributeId2",
    "value_name": "$valueName2"
  }]
}

Example:

curl -X POST -H 'Authorization: Bearer $ACCESS_TOKEN' https://api.mercadolibre.com/catalog_compatibilities/products_search/count_family_products
{
  "domain_id": "MLM-CARS_AND_VANS_FOR_COMPATIBILITIES",
  "attributes": [{
      "id": "BRAND",
      "value_name": "Volkswagen"
    },
    {
      "id": "CAR_AND_VAN_MODEL",
      "value_name": "VENTO"
    }
  ]
}

Response:

{
   "count":141
}

Identify items requiring compatibilities

With the following resource through the incomplete_compatibilities tag you can identify items that require mandatory compatibilities reporting to avoid moderations.

Request:

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

Example:

curl -X GET -H 'Authorization: Bearer $ACCESS_TOKEN' https://api.mercadolibre.com/items/MLA1417560910

Response:

{
  "id": "MLA743626587",
  "site_id": "MLA",
  "title": "Paragolpe Trasero Peugeot 307 Linea Nueva 5 Puertas",
  "seller_id": 65711207,
  "category_id": "MLA60954",
  "official_store_id": null,
.
.
.
.

  "tags": [
    "good_quality_picture",
    "brand_verified",
    "loyalty_discount_eligible",
    "good_quality_thumbnail",
    "ahora-paid-by-buyer",
    "incomplete_compatibilities",
    "immediate_payment"
  ],
  "warranty": "CON GARANTIA DEL FABRICANTE",
  "catalog_product_id": null,
  "domain_id": "MLA-VEHICLE_REAR_BUMPERS",
  "parent_item_id": null,
  "deal_ids": [
  ],
  "automatic_relist": false,
  "date_created": "2018-08-17T20:36:54.000Z",
  "last_updated": "2023-12-15T17:18:35.000Z",
  "health": 0.83,
  "catalog_listing": false
}

Filter items that require matching

Request:

curl -X GET -H 'Authorization: Bearer $ACCESS_TOKEN' https://api.mercadolibre.com/users/$SELLER_ID/items/search?tags=incomplete_compatibilities

Example:

curl -X GET -H 'Authorization: Bearer $ACCESS_TOKEN' https://api.mercadolibre.com/users/$SELLER_ID/items/search?tags=incomplete_compatibilities

Response:

{
   "seller_id": "1373279576",
   "results": [
       "MLA1417560910",
       "MLA1373565211",
       "MLA1371734513",
       "MLA1396609243"
   ],
   "paging": {
       "limit": 50,
       "offset": 0,
       "total": 4
   },
   "query": null,
.
.
.
.
}

Get position restrictions

Important:
The combined_values field provides predefined combinations that make it easier for sellers to select common positions, improving the API user experience.

The objective is to provide a list of allowed values for the "POSITION" restriction, along with the most frequent combinations, in order to simplify the process and help the seller. To achieve this, a list of possible combinations (combined_values) is added. This API is useful for obtaining valid position options before creating or updating products in the vehicle and accessories catalog.


Call:

curl --location -H 'Authorization: Bearer $ACCESS_TOKEN' \
'https://api.mercadolibre.com/catalog_compatibilities/restrictions/values?main_domain_id=MLA-CARS_AND_VANS&secondary_domain_id=MLA-VEHICLE_ENGINE_MOUNTS'

Response:

{
  "attributes_values": [
    {
      "attribute_id": "POSITION",
      "values": [
        {
          "value_id": "13373175",
          "value_name": "Conductor",
          "opposite_values": [
            "13373176"
          ]
        },
        {
          "value_id": "13373176",
          "value_name": "Acompañante",
          "opposite_values": [
            "13373175"
          ]
        }
      ],
      "combined_values": [
        {
          "values": [
            {
              "value_id": "13701104",
              "value_name": "Delantera"
            },
            {
              "value_id": "2262158",
              "value_name": "Izquierda"
            },
            {
              "value_id": "4774239",
              "value_name": "Inferior"
            }
          ]
        },
        {
          "values": [
            {
              "value_id": "13701105",
              "value_name": "Trasera"
            },
            {
              "value_id": "2262158",
              "value_name": "Izquierda"
            },
            {
              "value_id": "4774239",
              "value_name": "Inferior"
            }
          ]
        }
      ]
    }
  ]
}

Filter items with incomplete positions

Important:
This functionality allows you to identify products that require completing their position compatibility information before being published or updated in the catalog.

To identify and filter items that have incomplete compatibility positions, the API allows specific searches using the incomplete_position_compatibilities tag. This functionality is useful for detecting products that require completing their compatibility information before being published or updated in the catalog.


Call:

curl -H 'Authorization: Bearer $ACCESS_TOKEN' \
'https://api.mercadolibre.com/users/1871678972/items/search?tags=incomplete_position_compatibilities'

Response:

{
  "seller_id": "1871678972",
  "results": [
    "MLB3845403593",
    "MLB3845392401"
  ],
  "paging": {
    "limit": 50,
    "offset": 0,
    "total": 2
  },
  "query": null,
  "orders": [
    {
      "id": "stop_time_asc",
      "name": "Order by stop time ascending"
    }
  ],
  "available_orders": [
    {
      "id": "stop_time_asc",
      "name": "Order by stop time ascending"
    },
    {
      "id": "stop_time_desc",
      "name": "Order by stop time descending"
    },
    {
      "id": "start_time_asc",
      "name": "Order by start time ascending"
    },
    {
      "id": "start_time_desc",
      "name": "Order by start time descending"
    },
    {
      "id": "available_quantity_asc",
      "name": "Order by available quantity ascending"
    },
    {
      "id": "available_quantity_desc",
      "name": "Order by available quantity descending"
    },
    {
      "id": "sold_quantity_asc",
      "name": "Order by sold quantity ascending"
    },
    {
      "id": "sold_quantity_desc",
      "name": "Order by sold quantity descending"
    },
    {
      "id": "price_asc",
      "name": "Order by price ascending"
    },
    {
      "id": "price_desc",
      "name": "Order by price descending"
    },
    {
      "id": "last_updated_desc",
      "name": "Order by lastUpdated descending"
    },
    {
      "id": "last_updated_asc",
      "name": "Order by last updated ascending"
    },
    {
      "id": "total_sold_quantity_asc",
      "name": "Order by total sold quantity ascending"
    },
    {
      "id": {
        "id": "total_sold_quantity_desc",
        "field": "sold_quantity",
        "missing": "_last",
        "order": "desc"
      },
      "name": "Order by total sold quantity descending"
    },
    {
      "id": {
        "id": "inventory_id_asc",
        "field": "inventory_id",
        "missing": "_last",
        "order": "asc"
      },
      "name": "Order by inventory id ascending"
    }
  ]
}

Important:

Update to copy and paste compatibility functionality

Starting September 1st, we will modify the flow for copying and pasting compatibilities. Now, when copying vehicles, position information will always be included. The option to copy only vehicles has been removed.

Additionally, we maintain the possibility to choose whether or not to include compatibility observations (notes). This will give you greater control over the information you migrate between your listings.

With this, we want to avoid double loading of positions (in characteristics and compatibilities) and obsolete data (title and/or description indicating outdated info).


Example of copy and paste compatibility functionality

Identify items with compatibility suggestions

Use the following resource to retrieve the seller's items that have compatibility suggestions, identified by the pending_compatibilities tag.

Request:

curl --location --get \
  "https://api.mercadolibre.com/users/$SELLER_ID/items/search" \
  --data-urlencode 'tags=pending_compatibilities' \
  --header "Authorization: Bearer $ACCESS_TOKEN" \
  --header 'Accept: application/json'

Example:

curl --location --get \
  'https://api.mercadolibre.com/users/1234567890/items/search' \
  --data-urlencode 'tags=pending_compatibilities' \
  --data-urlencode 'limit=50' \
  --data-urlencode 'offset=0' \
  --header "Authorization: Bearer $ACCESS_TOKEN" \
  --header 'Accept: application/json'

Response:

{
  "seller_id": "1234567890",
  "results": [
    "MLA1234567890",
    "MLA1234567891",
    "MLA1234567892"
  ],
  "paging": {
    "limit": 50,
    "offset": 0,
    "total": 3
  },
  "query": null
}

The results field contains listing IDs, not suggested vehicle IDs. Use paging.limit, paging.offset and paging.total to paginate through the results.

In the following request, check for the pending_compatibilities tag in the response to identify whether a specific item has compatibility suggestions.

Request:

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

Example:

curl -X GET -H 'Authorization: Bearer $ACCESS_TOKEN' https://api.mercadolibre.com/items/MLB4462690924

Response:

{
  "id": "MLB4462690924",
  "site_id": "MLB",
  "title": "Pastilha Freio Dianteira Gm Blazer 4.3 V6 Mpfi 1996 À 2003 ",
  "seller_id": 1695976736,
  "category_id": "MLB439261",
  "official_store_id": null,

.
.
.
.
.
  "tags": [
    "pending_compatibilities"
  ],
 "catalog_product_id": "MLB31779615",
  "domain_id": "MLB-VEHICLE_BRAKE_PADS",
  "parent_item_id": null,
  "deal_ids": [
  ],
  "automatic_relist": false,
  "date_created": "2024-02-22T16:51:37.577Z",
  "last_updated": "2024-03-22T20:49:39.772Z",
  "health": 0.75,
  "catalog_listing": false
}

The GET /items/{item_id}/compatibilities and GET /user-products/{up_id}/compatibilities queries return compatibilities that are already associated. An empty list does not rule out pending suggestions. To retrieve their count, use the /compatibilities/cards resource in the next section.

Filter items with suggested compatibilities.


Get the number of suggestions and complaints

Use the following resource to retrieve a listing's compatibility suggestion and complaint counts.

Request:

curl --location --request POST \
  "https://api.mercadolibre.com/catalog_domains/$DOMAIN_ID/compatibilities/cards" \
  --header "Authorization: Bearer $ACCESS_TOKEN" \
  --header 'Content-Type: application/json' \
  --header 'Accept: application/json' \
  --data '{
    "item_id": "$ITEM_ID",
    "filters": ["REPUTATION", "SUGGESTED"]
  }'

Replace $DOMAIN_ID with the site's vehicle domain and $ITEM_ID with the listing ID.

Example:

curl --location --request POST \
  'https://api.mercadolibre.com/catalog_domains/MLB-CARS_AND_VANS/compatibilities/cards' \
  --header "Authorization: Bearer $ACCESS_TOKEN" \
  --header 'Content-Type: application/json' \
  --header 'Accept: application/json' \
  --data '{
    "item_id": "MLB4462690924",
    "product_id": "MLB31779615",
    "filters": ["REPUTATION", "SUGGESTED"]
  }'

Body parameters

FieldTypeRequirementDescription
item_idstringRequiredID of the listing being queried.
product_idstringOptionalID of the auto part catalog product associated with the item. Include it when available; omit it if the item has no such association. This is not a suggested vehicle ID.
filtersarray<string>Required["REPUTATION"] for complaints, ["SUGGESTED"] for suggestions, or both filters.

Response:

[
  {
    "title": "Tienes 293 vehículos sugeridos pendientes por agregar",
    "subtitle": "Identificamos vehículos compatibles con tu producto que te ayudarán a vender más",
    "filter": "SUGGESTED",
    "quantity": 293
  },
  {
    "title": "Vehículos con reclamos por incompatibilidad",
    "subtitle": "Revisalos y eliminalos para evitar nuevos reclamos.",
    "filter": "REPUTATION",
    "quantity": 1
  }
]

REPUTATION: compatibilities that are generating complaints.

SUGGESTED: new compatibilities suggested for the listing.

Query pending suggestions only

For the acceptance flow, query with filters: ["SUGGESTED"]. Example IDs and counts are illustrative. Use the vehicle domain corresponding to the listing's site.

curl --location --request POST \
  'https://api.mercadolibre.com/catalog_domains/MLA-CARS_AND_VANS/compatibilities/cards' \
  --header "Authorization: Bearer $ACCESS_TOKEN" \
  --header 'Content-Type: application/json' \
  --header 'Accept: application/json' \
  --data '{
    "item_id": "MLA1234567890",
    "product_id": "MLA31779615",
    "filters": ["SUGGESTED"]
  }'

Example body:

{
  "item_id": "MLA1234567890",
  "product_id": "MLA31779615",
  "filters": [
    "SUGGESTED"
  ]
}

Response with available suggestions:

[
  {
    "title": "Tienes 5 vehículos sugeridos pendientes por agregar",
    "subtitle": "Identificamos vehículos compatibles con tu producto que te ayudarán a vender más",
    "filter": "SUGGESTED",
    "quantity": 5
  }
]

Response with no available cards:

[]

The quantity field indicates the number of pending suggestions. The response does not include individual vehicles or a suggestion summary by brand. If no card is returned for the queried filter, do not offer the action based on an assumed count. A newly created listing may not have suggestions available yet.

Note:

The POST /catalog_compatibilities/products_search/chunks resource is blocked for the SUGGESTED filter. The NEW filter remains available for the new vehicle use case. To accept pending suggestions, use the resource described below.

To accept available suggestions after the seller confirms, see Accept compatibility suggestions. There is no need to obtain or reconstruct suggested vehicle IDs.

To identify problematic compatibilities that generate complaints and affect the seller's reputation, see Identify compatibilities that generate complaints.

Accept compatibility suggestions

Mercado Libre can generate compatibility suggestions for listings. This resource allows an authorized integration to accept the set of suggestions available for a listing without receiving individual vehicle details.

The seller chooses whether to accept all available suggestions or not submit acceptance. The operation does not allow partial selection by vehicle or brand. If the seller does not confirm, do not send the POST; the absence of a request must not be treated as a recorded rejection of suggestions in Mercado Libre.

Endpoint contract

PropertyValue
MethodPOST
Public URLhttps://api.mercadolibre.com
Path/items/{item_id}/compatibilities/suggestions/accept
item_idstring. Listing ID. Example: MLA1234567890.
Query paramsNone.
BodyNone.
Success responseHTTP 200 with created_compatibilities_count and, when individual failures occur, failed_compatibilities.

The same route supports traditional listings and listings linked to User Products. Provide the listing's item_id in the path. The contract does not accept user_product_id in the body.

Public API authentication and headers

HeaderTypeRequirementDescription
AuthorizationstringRequiredBearer $ACCESS_TOKEN. The token must belong to a user authorized to write to the listing.
AcceptstringOptionalapplication/json. Specifies the expected response format.

The application must be authorized by the seller and have write permission for the listing. The examples use public API authentication with a Bearer token.

Public request

curl --location --request POST \
  'https://api.mercadolibre.com/items/MLA1234567890/compatibilities/suggestions/accept' \
  --header "Authorization: Bearer $ACCESS_TOKEN" \
  --header 'Accept: application/json'

Request body

There is no body. Send the POST without --data. You do not need to send id, catalog_product_id, products, products_group, products_families, domain_id or creation_source.

This contract differs from POST /items/{item_id}/compatibilities, which accepts products or families to create compatibilities. To accept the set of pending suggestions, use the route ending in /suggestions/accept.

Response when suggestions are processed without individual failures

HTTP 200

{
  "created_compatibilities_count": 5
}

The failed_compatibilities field is omitted when there are no invalid products to report.

Response when suggestions include invalid products

HTTP 200

{
  "created_compatibilities_count": 4,
  "failed_compatibilities": [
    {
      "product_id": "MLA999999999",
      "reason": "Product does not exist."
    }
  ]
}

Invalid products are reported individually, and processing can continue for the remaining products. Accepting all suggestions is the seller's decision about the set; it does not mean that every suggestion will pass technical validation.

Response when no suggestions are available

HTTP 200

{
  "created_compatibilities_count": 0
}

This response does not indicate that new compatibilities were added. Do not display a message stating that associations were created when the returned count is zero.

Response fields

FieldTypeDescription
created_compatibilities_countintegerCount calculated by the write flow used. In some flows, it represents candidates submitted for persistence rather than records already inserted.
failed_compatibilitiesarray<object>List of suggested products that could not be accepted. The field is omitted when the list is empty.
failed_compatibilities[].product_idstringID of the suggested product that failed validation.
failed_compatibilities[].reasonstringReason for that product's failure. The message depends on the validation performed.

Evaluate the HTTP status and the complete body. An HTTP 200 response can contain individual failures. Do not use the status alone to report that all vehicles were added successfully.

Access and item validations

  • The request must pass the listing's write authorization check.
  • The listing must be active and must not be a Kit.
  • Suggested products must belong to the same site as the listing.
  • Suggested products must exist and must not be parent products.
  • The suggested products' domain must be compatible with the listing's category.

If all suggested products are discarded as invalid, the request is rejected because no products remain to create. In that case, handle the returned error response and do not report success to the seller.

Authentication error example

Without an access token, the public API can return HTTP 403:

{
  "message": "access_token was not sent",
  "error": "access_token_not_granted",
  "status": 403,
  "cause": []
}

Correct the authentication before retrying the operation. This error does not indicate whether suggestions are available for the listing.

Query compatibilities after acceptance

curl --location --request GET \
  'https://api.mercadolibre.com/items/MLA1234567890/compatibilities' \
  --header "Authorization: Bearer $ACCESS_TOKEN" \
  --header 'Accept: application/json'

This GET returns compatibilities already associated with the listing. Those managed by Mercado Libre retain summarized reads without exposing individual vehicle identifiers. The example retains the summary-by-brand structure documented for seller queries.

{
  "products": [
    {
      "id": null,
      "domain_id": null,
      "catalog_product_id": null,
      "catalog_product_name": "Volkswagen",
      "source": "SELLER",
      "reputation": null,
      "total": 3
    },
    {
      "id": null,
      "domain_id": null,
      "catalog_product_id": null,
      "catalog_product_name": "Audi",
      "source": "SELLER",
      "reputation": null,
      "total": 2
    }
  ]
}

Do not use the source field returned by the query alone to determine who created each compatibility. Restrictions apply to compatibilities managed by Mercado Libre, including when the returned source value is SELLER.

To query in a User Product context, use the resource corresponding to the integration's model:

curl --location --request GET \
  'https://api.mercadolibre.com/user-products/MLAU1234567890/compatibilities' \
  --header "Authorization: Bearer $ACCESS_TOKEN" \
  --header 'Accept: application/json'

If the seller needs to view individual vehicles or modify or delete compatibilities managed by Mercado Libre, direct them to the listing editor on the platform. The new acceptance operation does not provide access to individual catalog data.

Add compatibilities

Nota:
- We provide all compatibility functionalities in the auto parts publications of categories MLA1747, MLM1748, MLB22693, MLU1748 , MLC1748 and MCO87919.

- On the MLA, MLM, MLB, MLU, MLC and MCO sites, compatibilities must be reported on a mandatory basis on items marked with the incomplete_compabilities tag to prevent auto part publications from being paused.

To add compatibility of an item with a product and / or domain, you can check up to a maximum of 200 products per request (including those defined in the domains) and do it in 3 different ways:

  • By product: To add new compatibility to an item, you must send the compatibility you want to add. It is not necessary to send existing ones to keep current ones.
  • By product domain: you can specify a set of attributes that define the product domain. For each domain, you must specify its domain and for each attribute, a value made up of id and / or name.
  • By product and domain: You can add compatibility with a published item of another product and a product domain, that is, it allows you to add the first 2 together.
Note:
The traffic limit per APP_ID is 100 RPM (request per minute).

Get the possible values for a restriction

When associating a compatibility you can also indicate the position restriction of the same, with the following request you will be able to know the possible values to inform it.

Request:

curl -X GET -H 'Authorization: Bearer $ACCESS_TOKEN' https://api.mercadolibre.com/catalog_compatibilities/restrictions/values?main_domain_id=MLA-CARS_AND_VANS&secondary_domain_id=MLA-VEHICLE_SHOCK_ABSORBERS

Response:

{
      "attributes_values": [   
          {
               "attribute_id": "POSITION",
               "values":
                [
                    {
                        "value_id": "23536",
                        "value_name": "Superior",
                    },
                    {
                        "value_id": "23537",
                        "value_name": "Inferior"
                    }
               ]
         }
    ]
}
Important:

The creation_source attribute is required for compatibility creation requests by product, product group or product family that accept these data in the body. This requirement does not apply to POST /items/{item_id}/compatibilities/suggestions/accept, which accepts the available suggestions without a body.

This attribute indicates the origin of the created compatibilities, with the following allowed values:

  • ITEM_SUGGESTIONS: origin of compatibilities created from suggestions in operations that accept products in the body. To accept all pending suggestions for a listing, use /suggestions/accept, without a body or creation_source.
  • NEW_VEHICLES: compatibilities with new vehicles.
  • DEFAULT: default value when no specific filter is used.

Affected cases:

  • Add compatibility by product, domain or both.
  • Update compatibilities.

Unaffected cases:

  • Copy and paste compatibilities.
  • Add universal compatibility.
  • Accept suggestions through POST /items/{item_id}/compatibilities/suggestions/accept.

Do not send null IDs or try to reconstruct vehicles from the summary by brand to perform the acceptance flow.

Add by product

To add a compatibility to one or more individual products, you can use the product search.

Request:

curl -X POST -H 'Authorization: Bearer $ACCESS_TOKEN' https://api.mercadolibre.com/items/$ITEM_ID/compatibilities
{
   "products": [{
       "id": "$PRODUCT_ID",
         "creation_source": "$CREATION_SOURCE",
       "note": "texto",
       "restrictions": [{
                    "attribute_id": "POSITION",
                    "attribute_values":
                    [{
                        "values":[{"value_id": "$VALUE_ID","value_name": "$VALUE_NAME"}]
                      },
                      {
                        "values":[{"value_id": "$VALUE_ID","value_name": "$VALUE_NAME"}, 
                                  {"value_id": "$VALUE_ID","value_name": "$VALUE_NAME"}]
                      }
                    ]
                }]
   }]
}'

Example:

curl -X POST -H 'Authorization: Bearer $ACCESS_TOKEN' https://api.mercadolibre.com/items/$ITEM_ID/compatibilities
{
   "products": [{
       "id": "MLB155254",
         "creation_source": "ITEM_SUGGESTIONS",
       "note": "Modelos posteriores a Mayo de 2018",
       "restrictions": [{
                    "attribute_id": "POSITION",
                    "attribute_values":
                    [{
                        "values":[{"value_id": "12456","value_name": "Delantero"}]
                      },
                      {
                        "values":[{"value_id": "65432","value_name": "Trasero"}, 
                                  {"value_id": "87675","value_name": "Inferior"}]
                      }
                    ]
                }]
   }]
}

Response:

{
 "created_compatibilities_count": 72
}

It is also possible to add a note and position to more than one compatibility, for this it is necessary to replace the products node by products_group, example:

Request:

curl -X POST -H 'Authorization: Bearer $ACCESS_TOKEN' https://api.mercadolibre.com/items/$ITEM_ID/compatibilities
{
   "products_group": [{
       "ids": ["MLB155254", "MLB155255"],
    "creation_source": "ITEM_SUGGESTIONS",
       "note": "texto",
       "restrictions": [{
                    "attribute_id": "POSITION",
                    "attribute_values":
                    [{
                        "values":[{"value_id": "$VALUE_ID","value_name": "$VALUE_NAME"}]
                      },
                      {
                        "values":[{"value_id": "$VALUE_ID","value_name": "$VALUE_NAME"}, 
                                  {"value_id": "$VALUE_ID","value_name": "$VALUE_NAME"}]
                      }
                    ]
                }]
   }]
}'

Add by product domain

To add compatibilities defined by a group of attributes that determine a domain, learn more about vehicle accessories domains and attributes.

Request:

curl -X POST -H 'Authorization: Bearer $ACCESS_TOKEN' https://api.mercadolibre.com/items/$ITEM_ID/compatibilities
{
   "products_families": [{
       "domain_id": "$DOMAIN_ID",
         "creation_source": "$CREATION_SOURCE",
       "attributes": [{
               "id": "$ATTRIBUTE_ID",
               "value_id": "$VALUE_ID"
           },
           {
               "id": "$ATTRIBUTE_ID",
               "value_id": "$VALUE_ID"
           },
       ],
     "note": "Texto",
     "restrictions":
                [{
                    "attribute_id": "POSITION",
                    "attribute_values":
                    [{
                        "values":[{"value_id": "$VALUE_ID","value_name": "$VALUE_NAME"}]
                      },
                      {
                        "values":[{"value_id": "$VALUE_ID","value_name": "$VALUE_NAME"}, 
                                  {"value_id": "$VALUE_ID","value_name": "$VALUE_NAME"}]
                      }
                    ]
                }]
}

Example (except MLM):

curl -X POST -H 'Authorization: Bearer $ACCESS_TOKEN' https://api.mercadolibre.com/items/MLA794706391/compatibilities
{
   "products_families": [{
       "domain_id": "MLA-CARS_AND_VANS",
         "creation_source": "ITEM_SUGGESTIONS",
       "attributes": [{
               "id": "BRAND",
               "value_id": "60249"
           },
           {
               "id": "YEAR",
               "value_name": "2010"
           },
       ],
     "note": "Solamente para vehículos de fabricación Europea",
     "restrictions":
                [{
                    "attribute_id": "POSITION",
                    "attribute_values":
                    [{
                        "values":[{"value_id": "$VALUE_ID","value_name": "$VALUE_NAME"}]
                      },
                      {
                        "values":[{"value_id": "$VALUE_ID","value_name": "$VALUE_NAME"}, 
                                  {"value_id": "$VALUE_ID","value_name": "$VALUE_NAME"}]
                      }
                    ]

                }]
}

Response:

{
 "created_compatibilities_count": 23
}

Ejemplo MLM:

curl -X POST -H 'Authorization: Bearer $ACCESS_TOKEN' https://api.mercadolibre.com/items/MLM794706391/compatibilities
{
   "products_families": [{
           "domain_id": "MLM-CARS_AND_VANS_FOR_COMPATIBILITIES",
        "creation_source": "ITEM_SUGGESTIONS",
           "attributes": [{
                   "id": "DRIVE_TYPE",
                   "value_id": "8182649"
                  
               },
               {
                   "id": "CAR_AND_VAN_BODY_TYPE",
                   "value_id": "8183109"
                  
               },
               {
                   "id": "YEAR",
                   "value_name": "2010"
                  
               }
           ],
     "note": "Solamente para vehículos de fabricación Europea",
     "restrictions":
                [{
                    "attribute_id": "POSITION",
                    "attribute_values":
                    [{
                        "values":[{"value_id": "12456","value_name": "Delantero"}]
                      },
                      {
                        "values":[{"value_id": "65432","value_name": "Trasero"}, 
                                  {"value_id": "87675","value_name": "Inferior"}]
                      }
                    ]
       }
   ]
}

Response:

{
 "created_compatibilities_count": 23
}

Add by product and domain product

Request:

curl -X POST -H 'Authorization: Bearer $ACCESS_TOKEN' https://api.mercadolibre.com/items/$ITEM_ID/compatibilities
{
   "products": [{
       id": "$PRODUCTIID",
      "creation_source": "$CREATION_SOURCE",
       "note": "texto",
       "restrictions": [{
                    "attribute_id": "POSITION",
                    "attribute_values":
                    [{
                        "values":[{"value_id": "$VALUE_ID","value_name": "$VALUE_NAME"}]
                      },
                      {
                        "values":[{"value_id": "$VALUE_ID","value_name": "$VALUE_NAME"}, 
                                  {"value_id": "$VALUE_ID","value_name": "$VALUE_NAME"}]
                      }
                    ]
   }],
   "products_families": [{
       "domain_id": "$DOMAIN_ID",
       "attributes": [{
               "id": "ATTRIBUTE_ID",
               "value_id": "$VALUE_ID"
           },
           {
               "id": "ATTRIBUTE_ID",
               "value_id": "$VALUE_ID"
           },
       ],
     "note": "Texto",
     "restrictions":
                [{
                    "attribute_id": "POSITION",
                    "attribute_values":
                    [{
                        "values":[{"value_id": "$VALUE_ID","value_name": "$VALUE_NAME"}]
                      },
                      {
                        "values":[{"value_id": "$VALUE_ID","value_name": "$VALUE_NAME"}, 
                                  {"value_id": "$VALUE_ID","value_name": "$VALUE_NAME"}]
                      }
                    ]
                }]
}

Example:

curl -X POST -H 'Authorization: Bearer $ACCESS_TOKEN' https://api.mercadolibre.com/items/MLM794706391/compatibilities
{
   "products": [{
       "id": "MLB155254",
         "creation_source": "ITEM_SUGGESTIONS",
       "note": "Modelos posteriores a Mayo de 2018",
       "restrictions": []
   }],
   "products_families": [{
       "domain_id": "MLB-CARS_AND_VANS",
       "attributes": [{
               "id": "BRAND",
               "value_id": "60249"
           },
           {
               "id": "YEAR",
               "value_name": "2010"
           },
       ],
     "note": "Solamente para vehículos de fabricación Europea",
     "restrictions":
                [{
                    "attribute_id": "POSITION",
                    "attribute_values":
                    [{
                        "values":[{"value_id": "12456","value_name": "Delantero"}]
                      },
                      {
                        "values":[{"value_id": "65432","value_name": "Trasero"}, 
                                  {"value_id": "87675","value_name": "Inferior"}]
                      }
                    ]
                }]
}

In the note

Response:

{
 "created_compatibilities_count": 23
}

Possible errors

400: consistency validations:

  • Required fields are incomplete.
  • The format of the ids is wrong.
  • More than 200 products were found and / or specified for the product domains.
  • More than 10 product domains were specified.
  • The products and / or domains do not belong to the same site as the item.
  • The products must all be children.
  • The item's domain is compatible with the specified product domains and / or with the specified domains in the specified product domains.

403: Invalid token or lack of permissions on the item.
404: the specified item, products or domains do not exist.


Copy and Paste Compatibilities

Important:
The copy and paste function copies all compatibilities between listings regardless of origin. This includes seller-owned compatibilities and those managed by Mercado Libre. Follow the position and note copying conditions described in this section.

The first step to copy the compatibilities is to obtain a list of active items that have configured compatibilities. To do this, you need to start by retrieving all the seller's active items using the following query:

curl -X GET -H 'Authorization: Bearer $ACCESS_TOKEN' 'https://api.mercadolibre.com/users/$USER_ID/items/search?status=active&has_compatibilities=true'

All items must contain the attribute "HAS_COMPATIBILITIES".

To obtain the list of items with the number of compatibilities, notes, and positions, make the following request:

curl -X POST -H 'Authorization: Bearer $ACCESS_TOKEN' https://api.mercadolibre.com/items/compatibilities_summary
{
   "domain_id": "$domainId",
   "items": [
       "$item_id",
       "item_id",
       "item_id"
   ]
}
'

Example:

curl --location 'https://api.mercadolibre.com/items/compatibilities_summary' \
--header 'Content-Type: application/json' \
--header 'Authorization: ••••••' \
--data '{
   "domain_id": "MLB-CARS_AND_VANS",
   "items": [
       "MLB4816242302",
       "MLB3845318745",
       "MLB3845318797"
   ]
}

Response:

[
   {
       "item_id": "MLB4816242302",
       "item_title": "Pastilha Dianteira Anuncio De Teste 2",
       "compatibilities_count": 1001,
       "compatibilities_claims_count": 0,
       "notes_count": 65,
       "restrictions_count": 64
   },
   {
       "item_id": "MLB3845318797",
       "item_title": "Pastilha Dianteira Anuncio De Teste",
       "compatibilities_count": 400,
       "compatibilities_claims_count": 0,
       "notes_count": 64,
       "restrictions_count": 64
   },
   {
       "item_id": "MLB3845318745",
       "item_title": "Pastilha Dianteira Anuncio De Teste",
       "compatibilities_count": 200,
       "compatibilities_claims_count": 0,
       "notes_count": 64,
       "restrictions_count": 64
   }
]
Note:
- The limit for the number of items to receive will be 10 items.
-The "compatibilities_count" field will count all compatibilities that the item has, including those with claims.

To copy the compatibilities from an item to an item without loaded compatibilities, make this request:

Nota:
In both the POST and PUT methods, a new object-type field “item_to_copy”is added, which will indicate that the compatibilities of the specified item will be copied. It will also determine whether to copy the notes and restrictions via the “extended_information” field.
The fields: products, products_families, products_group y universalwill not be required in cases where items are created or edited using the copy-and-paste method.

curl --location 'https://api.mercadolibre.com/items/$ITEM_ID/compatibilities' \
--header 'Content-Type: application/json' \
--header 'Authorization: ••••••' \
--data '{
   "item_to_copy": {
       "item_id": "$ITEM_ID",
       "extended_information": true
   }
}'

Example:

curl --location 'https://api.mercadolibre.com/items/MLB3863097751/compatibilities' \
--header 'Content-Type: application/json' \
--header 'Authorization: ••••••' \
--data '{
   "item_to_copy": {
       "item_id": "MLB4816242302",
       "extended_information": true
   }
}'

Response:

200 OK

To copy the compatibilities from an item to an item that already has loaded compatibilities, make this request:

curl --location --request PUT 'https://api.mercadolibre.com/items/$ITEM_ID/compatibilities' \
--header 'Content-Type: application/json' \
--header 'Authorization: ••••••' \
--data '{
 "create": {
   "item_to_copy": {
     "item_id": "$ITEM_ID",
     "extended_information": true
   }
 }
}

Example:

curl --location --request PUT 'https://api.mercadolibre.com/items/MLB3863034063/compatibilities' \
--header 'Content-Type: application/json' \
--header 'Authorization: ••••••' \
--data '{
 "create": {
   "item_to_copy": {
     "item_id": "MLB4816242302",
     "extended_information": true
   }
 }
}
'

Response:

{
   "create": {
       "products": [
           {
               "id": "MLB7864691",
               "note": "frente",
               "restrictions": [
                   {
                       "attribute_id": "POSITION",
                       "attribute_code": 1,
                       "attribute_values": [
                           {
                               "values": [
                                   {
                                       "value_id": "13701104",
                                       "value_code": 5
                                   }
                               ]
                           }
                       ]
                   }
               ]
           },
                          
.
.
.
       "universal": false,
       "item_to_copy": {
           "item_id": "MLB4816242302",
           "extended_information": true
       }
   }
}

Considerations

  • In the target listing, there are two scenarios:
        • Without compatibilities: Copies all compatibilities from the source listing.
        • With compatibilities: Performs a comparison between the two listings and only copies the vehicles from the source listing that are not yet in the target listing.
  • Compatibilities with claims will not be copied, meaning they are excluded during the saving process.
  • Notas e Posições: Notes and Positions: The POST and PUT services for creating compatibilities will offer the option to copy only the compatibility or both the compatibility and the notes and restrictions.
  • If the source item exceeds 6K compatibilities, a limit exception will be generated when publishing/modifying. During modifications, the intersection of compatibilities between items must be considered. For example, if the source item has 5K and the target item has 2K, with 1K being common compatibilities, only 4K from the source item will be copied to the target item.
  • In the PUT and POST services, up to 200 compatibilities will be saved synchronously, while the rest will be created asynchronously to avoid performance issues. This may cause delays in displaying all created compatibilities, so the seller should be notified of this possibility.

  • To add a universal compatibility

    In order to improve the quality of auto parts publications for car and truck accessories categories ( MLA6520, MLM5320, MLU1747, MLB1747), compatibilidades universales can be reported to indicate that an item is compatible with any product.

    To indicate that an item is compatible with any product, in the request, the universal field is available, which shall be informed in true. This indicates that this item is universal (none of the compatibilities should be add to it since it is compatible with all products from the same domain).


    When indicating a universal compatibility, it is not possible to specify products or families. If both fields are sent, an error will be returned.

    Request:

    curl -X POST -H 'Authorization: Bearer $ACCESS_TOKEN' https://api.mercadolibre.com/items/$ITEM_ID/compatibilities
    {
       "products": [],
       "products_families": [],
       "products_group": [],
       "universal": true
    }
    

    Example:

    curl -X PUT -H 'Authorization: Bearer $ACCESS_TOKEN' https://api.mercadolibre.com/items/MLM12456789/compatibilities
    {
       "products": [],
       "products_families": [],
       "products_group": [],
       "universal": true,
    }
    

    Response:

    {
     "created_compatibilities_count": 1
    }
    

    Possible errors when assigning universal compatibilities

    400: consistency validations:

  • In case products and families are shipped at the same time a universal compatibility is reported, it will be obtained:
      • Message: "Invalid arguments for specific request. Please check details to satisfy validations".
      • Details: "at least one of products, products_groups, products_families or universal must be specified, if universal no products can be specified".
  • In case you have any compatibility in the previously registered item and you try to make it universal, you will get it:
    • Message: Item has compatibilities and these must be removed before setting it as universal.
  • When you try to generate a universal item but the category is not enabled for this experience, you will get:
    • Message: There is no configured compatibility for the category $CATEGORY_ID
  • If the item above is universal and you try to load some compatibility, you will get it:
    • Message: Item has universal setting and must be removed before creating compatibilities.

    403: invalid token or lack of permissions on the item.

    404: the item does not exist.

    Update Compatibilities

    With this method, it is possible to create, update, and delete compatibilities, notes, and restrictions for an item using the same data structure as for creating compatibilities. This action can be performed for one or multiple compatibilities.

    Important:
    - This PUT is different from the other ones used for items; in this case, the information is not overwritten. It is necessary to clearly specify the desired action: create, update, or delete.
    - The examples below include "create," "update," and "delete." It is not necessary to specify all actions together; they can also be indicated separately.
    - For this method, only 200 products can be specified per request.

    Request:

    
    curl -X PUT -H 'Authorization: Bearer $ACCESS_TOKEN' \
    https://api.mercadolibre.com/items/$ITEM_ID/compatibilities
    
    

    Example for Creating and Deleting Compatibilities:

    Note:
    When deleting compatibilities, you can choose to do so through a product list (products) or by product families (products_families). Both options are available in the example below so you can select the one that best fits your needs and see how to send the data correctly.
    curl -X PUT -H 'Authorization: Bearer $ACCESS_TOKEN' -H 'Content-Type: application/json' -d 
    '{
       "create": {
           "products": [
               {
                   "id": "MLB22015088"
               }
           ],
           "products_families": [
               {
                   "domain_id": "MLB-CARS_AND_VANS",
                   "attributes": [
                       {
                           "id": "BRAND",
                           "value_id": "60249"
                       },
                       {
                           "id": "MODEL",
                           "value_name": "Gol"
                       },
                       {
                           "id": "YEAR",
                           "value_name": "2023"
                       }
                   ]
               }
           ]
       },
       "delete": {
           "products": [
               {
                   "id": "MLB22015074"
               },
               {
                   "id": "MLB7427549"
               }
           ],
           "products_families": [
               {
                   "domain_id": "MLB-CARS_AND_VANS",
                   "attributes": [
                       {
                           "id": "BRAND",
                           "value_id": "60249"
                       },
                       {
                           "id": "MODEL",
                           "value_id": "62109"
                       },
                       {
                           "id": "YEAR",
                           "value_name": "2023"
                       }
                   ]
               }
           ]
       }
    }
    

    Response:

    {
       "create": {
           "products": [
               {
                   "id": "MLB22015088"
               }
           ],
           "products_families": [
               {
                   "domain_id": "MLB-CARS_AND_VANS",
                   "attributes": [
                       {
                           "id": "BRAND",
                           "value_id": "60249"
                       },
                       {
                           "id": "MODEL",
                           "value_name": "Gol"
                       },
                       {
                           "id": "YEAR",
                           "value_name": "2023"
                       }
                   ]
               }
           ],
           "universal": false
       },
       "delete": {
           "products": [
               {
                   "id": "MLB22015074"
               },
               {
                   "id": "MLB7427549"
               }
           ],
           "products_families": [
               {
                   "domain_id": "MLB-CARS_AND_VANS",
                   "attributes": [
                       {
                           "id": "BRAND",
                           "value_id": "60249"
                       },
                       {
                           "id": "MODEL",
                           "value_id": "62109"
                       },
                       {
                           "id": "YEAR",
                           "value_name": "2023"
                       }
                   ]
               }
           ],
           "universal": false
       }
    }
    
    

    Example for Creating and Updating Compatibilities with Notes and/or Restrictions:

    curl -X PUT -H 'Authorization: Bearer $ACCESS_TOKEN' -H 'Content-Type: application/json' -d 
    '{
       "create": {
           "products": [
               {
                   "id": "MLB28049481",
                   "note": "nota para teste",
                   "restrictions": []
               }
           ],
           "products_families": [
               {
                   "domain_id": "MLB-CARS_AND_VANS",
                   "attributes": [
                       {
                           "id": "BRAND",
                           "value_id": "60395"
                       },
                       {
                           "id": "MODEL",
                           "value_ids": [
                               "389577",
                               "16696"
                           ]
                       }
                   ]
               }
           ]
       },
       "update": {
           "products": [
               {
                   "id": "MLB22567898",
                   "note": "nota para teste 10",
                   "restrictions": [
                       {
                           "attribute_id": "POSITION",
                           "attribute_values": [
                               {
                                   "values": [
                                       {
                                           "value_id": "13701104",
                                           "value_name": "Dianteira"
                                       }
                                   ]
                               }
                           ]
                       }
                   ]
               }
           ],
           "products_families": [
               {
                   "domain_id": "MLB-CARS_AND_VANS",
                   "attributes": [
                       {
                           "id": "BRAND",
                           "value_id": "67781"
                       },
                       {
                           "id": "MODEL",
                           "value_name": "ARGO"
                       }
                   ],
                   "note": "somente as versões de freios traseiros",
                   "restrictions": [
                       {
                           "attribute_id": "POSITION",
                           "attribute_values": [
                               {
                                   "values": [
                                       {
                                           "value_id": "13701104",
                                           "value_name": "Dianteira"
                                       }
                                   ]
                               }
                           ]
                       }
                   ]
               }
           ]
       }
    }
    

    Response:

    {
       "create": {
           "products": [
               {
                   "id": "MLB28049481",
                   "note": "nota para teste",
                   "restrictions": []
               }
           ],
           "products_families": [
               {
                   "domain_id": "MLB-CARS_AND_VANS",
                   "attributes": [
                       {
                           "id": "BRAND",
                           "value_id": "60395"
                       },
                       {
                           "id": "MODEL",
                           "value_ids": [
                               "389577",
                               "16696"
                           ]
                       }
                   ]
               }
           ],
           "universal": false
       },
       "update": {
           "products": [
               {
                   "id": "MLB22567898",
                   "note": "nota para teste 10",
                   "restrictions": [
                       {
                           "attribute_id": "POSITION",
                           "attribute_code": 1,
                           "attribute_values": [
                               {
                                   "values": [
                                       {
                                           "value_id": "13701104",
                                           "value_name": "Dianteira",
                                           "value_code": 5
                                       }
                                   ]
                               }
                           ]
                       }
                   ]
               }
           ],
           "products_families": [
               {
                   "domain_id": "MLB-CARS_AND_VANS",
                   "attributes": [
                       {
                           "id": "BRAND",
                           "value_id": "67781"
                       },
                       {
                           "id": "MODEL",
                           "value_name": "ARGO"
                       }
                   ],
                   "note": "somente as versões de freios traseiros",
                   "restrictions": [
                       {
                           "attribute_id": "POSITION",
                           "attribute_code": 1,
                           "attribute_values": [
                               {
                                   "values": [
                                       {
                                           "value_id": "13701104",
                                           "value_name": "Dianteira",
                                           "value_code": 5
                                       }
                                   ]
                               }
                           ]
                       }
                   ]
               }
           ],
           "universal": false
       }
    }
    
    
    Note:
    If you want to delete notes and/or restrictions, you should send them in the 'update' section with note: "" or restrictions: [].

    Possible Errors:

    400 - Consistency Validations:

    • Completeness of required fields.
    • Correctness of ID formats.
    • Products and/or domains belong to the same site as the item.
    • The item's domain is compatible with the domains of the specified products.
    • The maximum of 200 products for a single request has been exceeded.
    • 403: Caller ID does not have permissions for the item.

      404: Item or one of the products does not exist.


      Modify or delete notes and position restrictions

      To modify or delete a note and position constraint, execute a PUT on the compatibility reporting resource changing the information you need in the update field. To delete one or both of them, just send the note field and/or the empty restrictions array, as in the example below, where both fields are deleted.


      Example:

      curl -X PUT -H 'Authorization: Bearer $ACCESS_TOKEN' https://api.mercadolibre.com/items/$ITEM_ID/compatibilities
      {
        "update": {
          "products": [{
                  "id": "MLB155254",
                  "note": "",
                  "restrictions":[]
                  }
              ]
          }
      }
      

      Identify compatible items

      With the following resource you can identify that an item is already compatibilized through the attribute id = “HAS_COMPATIBILITIES”. If this attribute is not observed in the output of the call, it means that the item does not have compatibilities reported.

      Request:

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

      Example:

      curl -X GET -H 'Authorization: Bearer $ACCESS_TOKEN' https://api.mercadolibre.com/items/MLA1417560910

      Response:

      {
        "id": "MLA1417560910",
        "site_id": "MLA",
        "title": "Interruptor Columna (palanca) Tamatel 15104 - No Ofertar",
        "seller_id": 1373279576,
        "category_id": "MLA435058",
      .
      .
      .
      .
       "attributes": [
          {
            "id": "HAS_COMPATIBILITIES",
            "name": "Tiene compatibilidades",
            "value_id": "242085",
            "value_name": "Sí",
            "values": [],
            "value_type": "boolean"
          },
          {},
          {}
        ],
      .
      .
      .
      }
      

      List compatibilities

      Use this resource to list compatibilities associated with an item. The list does not include suggestions pending acceptance.

      Get all compatibilities for an item

      Request:

      curl --location --get \
        "https://api.mercadolibre.com/items/$ITEM_ID/compatibilities" \
        --data-urlencode 'extended=true' \
        --header "Authorization: Bearer $ACCESS_TOKEN" \
        --header 'Accept: application/json'

      Attributes:

      • extended: boolean, optional. When true, returns notes and position details for compatibilities that support detailed reads.
      • extended=true does not expose individual details for compatibilities managed by Mercado Libre. These compatibilities retain the summary by brand and total, including when source returns SELLER.

      Example:

      curl --location --get \
        'https://api.mercadolibre.com/items/MLM794706391/compatibilities' \
        --data-urlencode 'extended=true' \
        --header "Authorization: Bearer $ACCESS_TOKEN" \
        --header 'Accept: application/json'
      Important:

      The response combines compatibilities that support detailed reads and summary entries by brand. Summary entries return id, domain_id and catalog_product_id as null, together with catalog_product_name and total. The source field can return SELLER in both cases and must not be used as the only criterion to distinguish them.

      Response:

      {
        "products": [
          {
            "id": "bcbd413f-cd65-0e0f-88c9-5eb4aebb5372",
            "domain_id": "MLM-CARS_AND_VANS_FOR_COMPATIBILITIES",
            "catalog_product_id": "MLM15847548",
            "catalog_product_name": "Volkswagen Jetta 2010 GLI Manual 5",
            "source": "SELLER",
            "note": "Solo modelos de caja automática"
          },
          {
            "id": "58bd413f-cd65-a719-9570-2ca8f2b528af",
            "domain_id": "MLM-CARS_AND_VANS_FOR_COMPATIBILITIES",
            "catalog_product_id": "MLM15847546",
            "catalog_product_name": "Volkswagen Jetta 2010 GLI Automática 6",
            "source": "SELLER",
            "note": "Modelos posteriores a Junio 2010",
            "restrictions": [
              {
                "attribute_id": "POSITION",
                "attribute_values": [
                  {
                    "values": [
                      {
                        "value_id": "12456",
                        "value_name": "Delantero"
                      }
                    ]
                  },
                  {
                    "values": [
                      {
                        "value_id": "65432",
                        "value_name": "Trasero"
                      },
                      {
                        "value_id": "87675",
                        "value_name": "Inferior"
                      }
                    ]
                  }
                ]
              }
            ],
            "reputation": {
              "level": "RED"
            }
          },
          {
            "id": null,
            "domain_id": null,
            "catalog_product_id": null,
            "catalog_product_name": "Volkswagen",
            "source": "SELLER",
            "reputation": null,
            "total": 8
          },
          {
            "id": null,
            "domain_id": null,
            "catalog_product_id": null,
            "catalog_product_name": "Audi",
            "source": "SELLER",
            "reputation": null,
            "total": 7
          }
        ]
      }

      Entries with id, domain_id and catalog_product_id set to null contain the summary by brand for compatibilities managed by Mercado Libre. The total field indicates how many vehicles of that brand are associated. The summary does not include suggestions pending acceptance.

      Note:
      - In case the compatibility has no incompatibility claims, the reputation object will not be returned in the response.
      - Only claims with a reason_id of PDD9575 or PDD9967 are calculated.

      Response fields

      • products: array of compatibilities associated with the listing, containing individual details or summary entries by brand, as applicable.
      • id: compatibility ID.
      • domain_id: main product domain.
      • catalog_product_id: product ID in the main domain.
      • catalog_product_name: vehicle or brand name, depending on the read type.
      • source: origin context exposed by the query. It does not determine who created each compatibility on its own.
      • note: compatibility conditions between the item and the main product.
      • restrictions: compatibility restrictions, such as the part's installation position.
      • reputation: compatibility reputation information.
      • level: takes the value RED for compatibilities with a high number of incompatibility complaints.

      source: in seller queries, it can return SELLER for both detailed records and summary entries. Interpret the response together with the other fields:

      • Detailed reads: id, domain_id and catalog_product_id contain their individual values, and catalog_product_name contains the vehicle name.
      • Summarized reads for compatibilities managed by Mercado Libre: id, domain_id and catalog_product_id return null; catalog_product_name contains the brand, and total indicates the number of vehicles of that brand. The source value in these entries can also be SELLER.
      • catalog_compatibilities_count: number of compatibilities in the Mercado Libre catalog that are not listed individually due to intellectual property licensing restrictions.
      Note:
      If a compatibility uploaded by the seller is already available in the Mercado Libre catalog, it will not be shown in the product's field of the response.

      Obtain compatibilities of a universal item

      In case the item is configured as universal, an additional field called universal is added in the response, containing a list of top domains with which the item is compatible..

      Ejemplo respuesta:

      {
                "universal": {
                    “domain_ids”:  [“MLM_CARS_AND_VANS_FOR_COMPATIBILITIES”]
                  }
      }
      

      Get a specific compatibility of an item by its id

      Important:
      Compatibilities managed by Mercado Libre do not expose individual vehicle and compatibility IDs through the API. Use the Mercado Libre platform to view their details.

      Request:

      curl -X GET -H 'Authorization: Bearer $ACCESS_TOKEN' https://api.mercadolibre.com/items/$ITEM_ID/compatibilities/$compatibility_id

      Example:

      curl -X GET -H 'Authorization: Bearer $ACCESS_TOKEN' https://api.mercadolibre.com/items/MLM794706391/compatibilities/$compatibility_id

      Response (SELLER compatibility):

      {
        "id": "bcbd413f-cd65-0e0f-88c9-5eb4aebb5372",
        "domain_id": "MLM-CARS_AND_VANS_FOR_COMPATIBILITIES",
        "catalog_product_id": "MLM15847548",
        "catalog_product_name": "Volkswagen Jetta 2010 GLI Manual 5",
        "note": "Solo para versiones con frenos a disco en las ruedas traseras",
        "note_status": "PENDING",
        "restrictions": [{
            "attribute_id": "POSITION",
            "attribute_values": [{
                "values":[{"value_id": "12456","value_name": "Delantero"}]
            }]
        }],
        "reputation": { "level": "RED" }
      }
      

      Response:

      {
        "id": null,
        "domain_id": null,
        "catalog_product_id": null,
        "catalog_product_name": "Volkswagen",
        "source": "SELLER",
        "restrictions": null,
        "reputation": { "level": "GREEN" }
      }
      

      The notes only appear on the front of the item in the APPROVED or CHECKED status.

      A 404 error means that the item does not exist.


      Identifying if an item has notes or restrictions position

      The endpoint allows to identifying if the item has notes or restrictions:

      Request:

      curl -X GET -H 'Authorization: Bearer $ACCESS_TOKEN' https://api.mercadolibre.com/items/$ITEM_ID/compatibilities/extended/check

      Example:

      curl -X GET -H 'Authorization: Bearer $ACCESS_TOKEN' https://api.mercadolibre.com/items/MLM12456789/compatibilities/extended/check

      Resonse:

      {
          "note": "true",
          "restrictions": "false"
      }
      

      Obtain a compatibility note

      Request:

      curl -X GET -H 'Authorization: Bearer $ACCESS_TOKEN' https://api.mercadolibre.com/items/$ITEM_ID/compatibilities/$COMPATIBILITY_ID/note
      

      Example:

      curl -X GET -H 'Authorization: Bearer $ACCESS_TOKEN' https://api.mercadolibre.com/items/MLM12456789/compatibilities/bcbd413f-cd65-0e0f-88c9-5eb4aebb5372/note

      Response:

      {
          "note": "Solo para versiones con frenos a disco en las ruedas traseras"
      }
      

      Delete compatibilities

      In case of having add an incorrect compatibility with the item, you can eliminate it as long as it has been made by the seller.

      Important:
      The API allows deletion of seller-owned compatibilities. Compatibilities managed by Mercado Libre must be modified or deleted through the platform. A source: SELLER value in a query does not authorize deletion through the API on its own.

      Delete a specific compatibility for the indicated item

      Request:

      curl -X DELETE -H 'Authorization: Bearer $ACCESS_TOKEN' https://api.mercadolibre.com/items/$ITEM_ID/compatibilities/$COMPATIBILITY_ID

      Example:

      curl -X DELETE -H 'Authorization: Bearer $ACCESS_TOKEN' https://api.mercadolibre.com/items/MLM794706391/compatibilities/4cb9af35-8e9b-ebfd-9e7f-2245ac363d10

      The response will be http 200.


      Delete compatibilities for an item

      Request:

      curl -X DELETE -H 'Authorization: Bearer $ACCESS_TOKEN' https://api.mercadolibre.com/items/$ITEM_ID/compatibilities

      Example:

      curl -X DELETE -H 'Authorization: Bearer $ACCESS_TOKEN' https://api.mercadolibre.com/items/MLM794706391/compatibilities

      Response:

      {
        "deleted_compatibilities": [
          "d0ba2aeb-7409-0037-7b23-0b91266fd00e",
          "72ba233d-16d8-218b-4062-7a97dab166c8"
        ]
      }

      Delete compatibilities by product domain for an item

      Request:

      curl -X DELETE -H 'Authorization: Bearer $ACCESS_TOKEN' https://api.mercadolibre.com/items/$ITEM_ID/compatibilities
      {
      "products_families": [{
        "domain_id": "$domain_id",
        "attributes": [{
          "id": "$attribute_id1",
          "values":[{
            "id": "$value_id1",
            "name": "$value_name1"
          }]
        },{
          "id": "$attribute_id2",
          "values":[{
            "id": "$value_id1",
            "name": "$value_name1"
          }]
        }]
      }]
      }
      

      Example:

      curl -X DELETE -H 'Authorization: Bearer $ACCESS_TOKEN' https://api.mercadolibre.com/items/MLM794706391/compatibilities
        {
        "products_families": [{
                "domain_id": "MLM-CARS_AND_VANS_FOR_COMPATIBILITIES",
                "attributes": [{
                        "id": "DRIVE_TYPE",
                        "value_id": "8182649"
                    },
                    {
                        "id": "CAR_AND_VAN_BODY_TYPE",
                        "value_id": "8183109"
                    },
                    {
                        "id": "YEAR",
                        "value_name": "2010"
                    }]
            }]
      }
      

      Response:

      {
         "deleted_compatibilities": [
             "d0ba2aeb-7409-0037-7b23-0b91266fd00e",
             "72ba233d-16d8-218b-4062-7a97dab166c8"
         ]
      }

      Possible errors

      400: incorrect format / more than 200 products for the domain / more than 10 domains specified.
      403: inválid token or lack of permits on the ítem.
      404: the ítem or the compatibility not exist.


      How to report exceptions

      In cases of car and truck parts, in which the category requires compatibility information,but cannot find any available vehicle, model or version in the catalog. These items are part of the exceptions flow and to inform them, we provide the following resource:


      Request:

      curl -X POST -H 'Authorization: Bearer $ACCESS_TOKEN' https://api.mercadolibre.com/items/$item_id/compatibilities/exception
      {
        "comment": “free text with a maximum of 255 characters” 
      }
      

      Example:

      curl -X POST -H 'Authorization: Bearer $ACCESS_TOKEN' https://api.mercadolibre.com/items/MLB12345678/compatibilities/exception
      {
        "comment": “free text with a maximum of 255 characters” [Required]
      }
      

      Response:

      200 OK

      Possible errors

      400: item is closed or inactive.
      400: item has existing compatibilities.
      400: item category has no compatibilities.
      400: item has existing compatibilities exception.
      400: comment is required.


      Check if an item has an exception

      Request:

      curl -X GET -H 'Authorization: Bearer $ACCESS_TOKEN' https://api.mercadolibre.com/items/$item_id/compatibilities/exception

      Example

      curl -X GET -H 'Authorization: Bearer $ACCESS_TOKEN' https://api.mercadolibre.com/items/MLB12345678/compatibilities/exception
      

      Response

      {
         "has_exception": true/false
      }
      

      - Returns true only when the item has no compatibility loaded and an exception has been reported.
      - Returns false whenever an item has at least one vehicle reported as compatible (regardless of whether an exception was reported or not).


      Identify compatibilities that generate complaints

      In order for you to correct incorrectly indicated compatibilities, with the following endpoint you can identify the car that the buyer chose from the moment a claim for incompatibility was generated.

      Request:

      curl -X GET -H 'Authorization: Bearer $ACCESS_TOKEN' https://api.mercadolibre.com/compats-snapshots/orders/$ORDER_ID

      Example:

      Order with claim where the buyer selected different filters during the purchase of the product and it was confirmed that the selected product “Yes was indeed compatible” with the item (compatibility_status.compatibility = CONFIRMED).

      Request:

      curl -X GET -H 'Authorization: Bearer $ACCESS_TOKEN' https://api.mercadolibre.com/compats-snapshots/orders/2000006372967416

      Response:

      {
          "item_id": "MLM2187940074",
          "product_id": "MLM15879678",
          "seller_id": "61597650",
          "user_selection": {
              "label_values": [
                  {
                      "label": "Marca",
                      "value_name": "Jeep",
                      "values": [
                          {
                              "attribute_id": "BRAND",
                              "value_id": "60395"
                          }
                      ]
                  },
                  {
                      "label": "Modelo",
                      "value_name": "Grand Cherokee",
                      "values": [
                          {
                              "attribute_id": "CAR_AND_VAN_MODEL",
                              "value_id": "8236932"
                          }
                      ]
                  },
                  {
                      "label": "Año",
                      "value_name": "1998",
                      "values": [
                          {
                              "attribute_id": "YEAR",
                              "value_id": "60500"
                          }
                      ]
                  },
                  {
                      "label": "Versión",
                      "value_name": "Limited - SUV 4 Puertas",
                      "values": [
                          {
                              "attribute_id": "CAR_AND_VAN_SUBMODEL",
                              "value_id": "8238101"
                          },
                          {
                              "attribute_id": "CAR_AND_VAN_BODY_TYPE",
                              "value_id": "8183114"
                          },
                          {
                              "attribute_id": "BODY_DOORS_NUMBER",
                              "value_id": "8239302"
                          }
                      ]
                  },
                  {
                      "label": "Mecánica",
                      "value_name": "5.2L V8 Gasolina Aspirado Caja Automática 4 Marchas - Tracción RWD",
                      "values": [
                          {
                              "attribute_id": "CAR_AND_VAN_ENGINE",
                              "value_id": "8753511"
                          },
                          {
                              "attribute_id": "ASPIRATION",
                              "value_id": "8183201"
                          },
                          {
                              "attribute_id": "TRANSMISSION_CONTROL_TYPE",
                              "value_id": "8183158"
                          },
                          {
                              "attribute_id": "TRANSMISSION_SPEEDS_NUMBER",
                              "value_id": "8239312"
                          },
                          {
                              "attribute_id": "DRIVE_TYPE",
                              "value_id": "8182651"
                          }
                      ]
                  }
              ]
          },
          "compatibility_status": {
              "compatibility": "CONFIRMED", 
          "compatibility_id": "bec40b54-c7de-1ad2-a7e2-00a5e34376a4"
          },
          "compatibility_deleted": true,
          "date_created": "2023-08-31T20:08:41Z",
          "date_updated": "2023-08-31T22:37:39Z"
      }
      

      Order with claim where the buyer did not select a vehicle during the purchase of the product.

      Request:

      curl -X GET -H 'Authorization: Bearer $ACCESS_TOKEN' https://api.mercadolibre.com/compats-snapshots/orders/2000006372967424

      Response:

      {
          "item_id": "MLM2038068352",
          "seller_id": "186880296",
          "compatibility_status": {
            "compatibility": "NO_USER_SELECTION",
            "note": "We don't have the compatibility information for this order. The user made the order without completing the widget. ",
            "restrictions": []
          },
          "date_created": "2023-08-23T12:30:57Z"
        }
      

      Order with claim where prior to purchase it was confirmed to the buyer that the product selected "was not compatible" with the item (compatibility_status.compatibility = INCOMPATIBLE).

      Request:

      curl -X GET -H 'Authorization: Bearer $ACCESS_TOKEN' https://api.mercadolibre.com/compats-snapshots/orders/2000006372967684

      Response:

      {
          "item_id": "MLM693204319",
          "seller_id": "56493851",
          "compatibility_status": {
              "compatibility": "INCOMPATIBLE"
          },
          "compatibility_deleted": true,
          "date_created": "2023-08-25T14:45:48Z"
      }
      

      The fields indicate:

      • compatibility_id: identifier of the compatibility selected during purchase.
      • product_id: ID of the selected vehicle prior to purchase.
      • user_selection: detail of the filters selected by the buyer at the time of purchase.
      • compatibility_status.compatibility:
        • CONFIRMED: indicates that it was confirmed to the buyer that the selected vehicle was compatible with the purchased item.
        • INCOMPATIBLE: indicates that it was confirmed to the buyer that the selected vehicle was not compatible with the purchased item.
        • compatibility_deleted::
          • "true" indicates that the compatibility for the vehicle selected by the buyer has already been deleted by the item at the time of the query.
        • Note:
          As of February 19 to obtain the detail of incompatibility claims, consult the endpoint GET /v1/claims/search?reason_id=$reason_id and identify the attribute "reason_id": "PDD9967" or "reason_id": "PDD9571".

          Possible mistakes:

          Error_code Error message Description
          400 Compatibility snapshot for order with id $ORDER_ID not found. The order is not valid.
          401 Invalid access token. Invalid Access Token.
          403 The compatibility snapshot can only be retrieved for orders with claims. The order has no associated claim.
          403 Caller must be the seller of the item. An attempt is being made to query the order of a seller that does not correspond to the Access Token provided.
          Important:
          To keep the compatibilities updated you can find out which vehicles have been added to the catalog by getting to the resource /catalog_compatibilities/products_search/new?categoryId=$CATEGORY_ID.