Documentation Mercado Libre

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

Documentation

Last update 01/10/2026

Create CBT User Products with a size chart

This guide explains how to associate a size chart with each User Product (UP) when creating one product or a family of products for cross-border trade (CBT). Use it to prepare the size-chart data, create each sellable combination, evaluate the result for every destination site, and verify the association after creation.

Functional flow

Validate seller eligibility
  -> discover the CBT category and domain
  -> confirm that the size-chart domain is active
  -> get technical_specs?section=grids
  -> create or retrieve a compatible chart
  -> save the chart_id and source row_id for each UP size
  -> upload the product picture
  -> create one UP or a UP family
  -> evaluate every returned site_items[] entry by site_id
  -> verify each created destination item

Before you start

  • Validate the seller. Call GET /users/$USER_ID and confirm that the public tags[] array contains user_product_seller.
  • Discover the category and domain. Use GET /marketplace/domain_discovery/search?q=$SEARCH_QUERY and save the returned CBT category_id and domain_id.
  • Confirm that the domain supports size charts. Call GET /catalog/charts/CBT/configurations/active_domains and verify that the selected domain_id is present.
  • Read the size-chart specification. Call POST /domains/$DOMAIN_ID/technical_specs?section=grids. Use only the attributes and values returned for that domain.
  • Create or retrieve a compatible chart. Follow Manage size chart, then save the chart ID and the row ID that corresponds to each product size.
  • Upload the picture. Call POST /pictures/items/upload and use the returned picture id in the creation request.
  • Prepare the publication data. Include every attribute and sale term required by the selected category, domain, seller, destination, and pricing model.
Site availability
Before creating a UP, validate the seller, destination sites, active domain, and technical specification. Use destinations enabled for your seller and domain.

How size charts work with User Products

A User Product represents one sellable combination of product attributes, such as one color and one size. A UP does not use variations[]. Send the size-chart association in the root attributes[] of each UP: SIZE_GRID_ID, SIZE_GRID_ROW_ID, SIZE, and the size attributes required by the selected domain. The row resolved for a destination can differ from the source row and from the rows resolved for other destinations.

For the complete User Product model and seller eligibility rules, see Price per Variation.

Create a family of User Products with a size chart

Call POST /global/user-products/families with an array. Every array element represents one independent UP and one sellable size/color combination; each UP and destination site has its own result. The family endpoint returns an array with one response element per request element. To create one UP instead, send the same UP object without the outer array to POST /global/items, which returns an object.

The following request is an example that creates a Medium/M UP in MLC and MLM. Use the values for your seller, domain, and size chart.

curl -X POST 'https://api.mercadolibre.com/global/user-products/families' \
  --header 'Authorization: Bearer $ACCESS_TOKEN' \
  --header 'Content-Type: application/json' \
  --data '[
    {
      "sites_to_sell": [
        {
          "site_id": "MLC",
          "logistic_type": "remote",
          "listing_type_id": "gold_pro"
        },
        {
          "site_id": "MLM",
          "logistic_type": "remote",
          "listing_type_id": "gold_pro"
        }
      ],
      "family_name": "CBT E2E Correct Medium 1790290079330",
      "category_id": "CBT109282",
      "global_net_proceeds": 25,
      "available_quantity": 10,
      "description": {
        "plain_text": "Test pants created by the CBT User Products E2E flow."
      },
      "pictures": [
        {"id": "830124-CBT116679349168_092026"}
      ],
      "sale_terms": [
        {
          "id": "WARRANTY_TYPE",
          "value_id": "6150835",
          "value_name": "No warranty"
        }
      ],
      "attributes": [
        {
          "id": "ITEM_CONDITION",
          "values": [{"id": "2230284", "name": "New"}]
        },
        {"id": "BRAND", "value_name": "Generic"},
        {
          "id": "GENDER",
          "values": [{"id": "339665", "name": "Woman"}]
        },
        {"id": "MODEL", "value_name": "E2E Pants"},
        {"id": "COLOR", "value_name": "Black"},
        {"id": "MAIN_MATERIAL", "value_name": "Cotton"},
        {
          "id": "PANT_TYPE",
          "values": [{"id": "432241", "name": "Jeans"}]
        },
        {
          "id": "SIZE_GRID_ID",
          "value_id": "8885231",
          "value_name": "8885231"
        },
        {
          "id": "SIZE_GRID_ROW_ID",
          "value_id": "8885231:2",
          "value_name": "8885231:2"
        },
        {"id": "SIZE", "value_name": "Medium"},
        {"id": "FILTRABLE_SIZE", "value_name": "M"},
        {"id": "SELLER_SKU", "value_name": "CBT-PANTS-CORRECT-M-1790290079330"},
        {"id": "PACKAGE_WEIGHT", "value_name": "1 kg"},
        {"id": "PACKAGE_LENGTH", "value_name": "30 cm"},
        {"id": "PACKAGE_WIDTH", "value_name": "20 cm"},
        {"id": "PACKAGE_HEIGHT", "value_name": "15 cm"}
      ]
    }
  ]'

Successful response:

[
  {
    "item_id": "CBT4423227989",
    "seller_id": 2487485082,
    "site_id": "CBT",
    "site_items": [
      {
        "item_id": "MLM6287311966",
        "seller_id": 2488208976,
        "site_id": "MLM",
        "logistic_type": "remote"
      },
      {
        "item_id": "MLC2274176655",
        "seller_id": 3178649953,
        "site_id": "MLC",
        "logistic_type": "remote"
      }
    ]
  }
]

Interpret creation results by destination

Important:
Starting October 16, 2026: A 200 OK response confirms that the creation request was processed. It does not by itself confirm that an item was created in every destination site. Review each entry in site_items[] to determine the creation result for each requested site, such as MLA, MLB, or MLC.

The source of truth for the business result is site_items[]:

  • An entry without site_items[].error represents a site where the item was created successfully.
  • An entry with site_items[].error represents a site where the item was not created.
  • A global 4xx error without site_items[] occurs before site-level processing and must not be interpreted as a partial result.

Therefore, your integration must evaluate every result by site instead of marking the creation as fully successful solely because it received a 200 response.

Creation scenarios

Scenario Outer response Result in site_items[] Expected integrator action
Full success 200 OK All sites are created and none contain error. Store the IDs for all sites as a complete creation.
Partial success 200 OK Some sites are created and others contain error. Keep successful IDs and examine the rejected sites and their causes.
Complete functional failure 200 OK No sites are created; all results contain error. Treat the operation as failed and examine the causes before deciding how to proceed.
Global request error 4xx without site_items[] No site-level processing occurred. Correct the global request and submit it again.

These examples show how to interpret destination-level results. Partial creation can also occur for reasons other than size chart resolution.

Partial success response

{
   "item_id": "CBT_ITEM_ID",
   "seller_id": 123456789,
   "site_id": "CBT",
   "site_items": [
      {
         "item_id": "MLM2290305111",
         "seller_id": 987654321,
         "site_id": "MLM",
         "logistic_type": "remote"
      },
      {
         "site_id": "MLA",
         "logistic_type": "remote",
         "error": {
            "message": "Size chart resolution failed",
            "error": "validation_error",
            "status": 400,
            "cause": [
               {
                  "department": "cbt-global-listing",
                  "cause_id": 5131,
                  "type": "error",
                  "code": "item.size_chart_resolution.unresolved",
                  "references": [
                     "item.attributes",
                     "item.variations.attributes"
                  ],
                  "message": "Size chart information could not be resolved."
               }
            ]
         }
      }
   ]
}

One family entry rejected in all destinations before persistence (illustrative; diagnostic fields such as references are omitted):

[
  {
    "site_id": "CBT",
    "site_items": [
      {
        "site_id": "MLC",
        "logistic_type": "remote",
        "error": {
          "message": "Size chart does not match listing domain",
          "error": "validation_error",
          "status": 400,
          "cause": [
            {
              "department": "cbt-global-listing",
              "cause_id": 5131,
              "type": "error",
              "code": "item.size_chart_resolution.domain_chart_mismatch",
              "message": "The size chart does not belong to the listing domain."
            }
          ]
        }
      },
      {
        "site_id": "MLM",
        "logistic_type": "remote",
        "error": {
          "message": "Size chart does not match listing domain",
          "error": "validation_error",
          "status": 400,
          "cause": [
            {
              "department": "cbt-global-listing",
              "cause_id": 5131,
              "type": "error",
              "code": "item.size_chart_resolution.domain_chart_mismatch",
              "message": "The size chart does not belong to the listing domain."
            }
          ]
        }
      }
    ]
  }
]

Destination error fields (errors by site)

  • site_items[].error: Present only when the site item could not be created.
  • site_items[].error.error: Error category reported for that site.
  • site_items[].error.status: Status associated with the error for that site.
  • site_items[].error.cause[]: Array containing the detailed causes reported for that site.
  • site_items[].error.cause[].department: Service that reported the cause.
  • site_items[].error.cause[].cause_id: Identifier of the reported cause.
  • site_items[].error.cause[].type: Type of the reported cause.
  • site_items[].error.cause[].code: Machine-readable code used to identify the remediation path.
  • site_items[].error.cause[].references: Diagnostic references when reported. In some cases, this field may be an empty array ([]).
  • site_items[].error.cause[].message: Description of the reported cause.

Operational handling for integrators

After receiving the response, your integration must:

  • Evaluate each site_items[] result by site.
  • Persist the IDs of sites that were created successfully.
  • Identify sites that were not created through site_items[].error and its cause code.
  • Review each rejected site and its reported cause before taking further action.

Before deciding on any retry, retain the IDs of successful destinations and review each rejected result and its cause. Account for destinations already created when deciding how to proceed.

Verify the size-chart association

For each successful site_items[].item_id, retrieve the destination item:

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

Inspect the resulting attributes and confirm:

  • SIZE_GRID_ID identifies the expected chart.
  • SIZE_GRID_ROW_ID identifies the row resolved for that destination.
  • SIZE is consistent with the created UP and selected row.

Errors

Size Chart Errors

Status code Error code Error message Description
400 missing.fashion_grid.grid_id.values Size Chart: attribute [SIZE_GRID_ID] is missing The SIZE_GRID_ID attribute is required but was not provided.
422 size_grid.id.not_found Size chart: Size chart not found The SIZE_GRID_ID provided does not exist or is invalid.
400 invalid.fashion_grid.size.values Attribute [SIZE] is not valid The SIZE value does not exist in the size chart rows.

Size chart resolution errors by destination (Site)

Note:
The following errors are returned inside site_items[].error when size chart resolution cannot create an item in a destination site. The outer /global/user-products/families response returns 200 OK; inspect each destination result.
error.status error.error error.cause.cause_id error.cause.code error.cause.message error.cause.references When it happens
400 validation_error 5131 item.size_chart_resolution.unresolved Size chart information could not be resolved. See the returned references value. No consistent size chart row can be resolved for the destination.
400 validation_error 5131 item.size_chart_resolution.invalid_input Size chart information is invalid. See the returned references value. The size chart input is invalid or insufficient.
404 not_found 5131 item.size_chart_resolution.chart_not_found The referenced size chart could not be found. See the returned references value. The referenced size chart does not exist or is not available for the seller.
400 validation_error 5131 item.size_chart_resolution.domain_chart_mismatch The size chart does not belong to the listing domain. See the returned references value. The referenced size chart exists but does not match the listing domain.
408 request_timeout 5014 integration.size_chart_resolution.timeout Size chart resolution timed out. Please try again later. [] Size chart resolution does not complete within the available time.
500 internal_server_error 5014 integration.size_chart_resolution.unavailable Size chart resolution is temporarily unavailable. Please try again later. [] Size chart resolution is temporarily unavailable.
500 internal_server_error 5014 integration.size_chart_resolution.invalid_contract Size chart resolution is temporarily unavailable. Please try again later. [] Size chart resolution cannot process the data required for that destination.
500 internal_server_error 5014 listing.size_chart_resolution.invalid_patch Size chart resolution is temporarily unavailable. Please try again later. See the returned references value. The resolved size chart data cannot be safely applied to the listing.
500 internal_server_error 5289 integration.circuit_open.cbt-sizechart-item-enhancer-api A required service is temporarily unavailable. Please try again later. [] A required service is temporarily unavailable.
Note:
These destination-level resolution errors do not replace the existing validation errors in this page. Errors such as missing.fashion_grid.grid_id.values, size_grid.id.not_found, and invalid.fashion_grid.size.values may apply at different validation stages. Use the code and response location to determine the appropriate action.

Item Validation Errors

Status code Error code Error message Description
400 body.required_fields The body does not contains the following properties [...] Required fields are missing. Check the list of required fields above.
400 body.invalid_fields Attribute [field] is not valid A field has an invalid value (e.g., invalid category_id, site_id, or price).
400 item.title.length.invalid Category does not support titles greater than 60 characters long The title exceeds the maximum allowed length of 60 characters.
400 attributes.duplicated Variation attribute is duplicated Two or more variations have the same attribute combination (COLOR + SIZE).
400 picture.id.invalid Invalid pictures.id The picture URL or ID provided is invalid.
400 bad_request syntax_error: invalid character looking for beginning of value The request body contains invalid JSON.
404 not_found Item with id {ITEM_ID} not found The item ID does not exist when trying to GET an item.
400 item_not_modifiable Cannot delete listing because one or more site listing related are active Cannot close an item that has active listings in destination sites.

Next: Validations