Documentation Mercado Libre
Check out all the necessary information about APIs Mercado Libre.
Documentation
Mercado Envios — Shipping costs and quotes
The endpoint requires more context than just dimensions: it is recommended to send item_id or, if using dimensions, also item_price, listing_type_id, mode/logistic_type, and free_shipping if applicable. Sending only dimensions without other parameters may return list_cost=0 because there is not enough context to calculate the cost.
The weight in dimensions must be passed in grams as an integer (number_unit). Convert 0.7605 kg to grams (e.g. 761 g) and send as an integer value; the API does not accept fractions in kilograms for this field.
To find out who paid for shipping, query /shipments/{id}/costs. receiver.cost reflects the final cost paid by the buyer; senders[].cost reflects the amount associated with the seller. If receiver.cost == 0, the buyer did not pay for shipping. If senders[].cost == 0, the seller was not charged. The promoted_amount and save fields are informational, but the determining values are receiver.cost and senders[].cost.
promoted_amount may represent the final subsidized value; in some flows receiver.promoted_amount reflects the covered amount, but for calculating refunds and seller costs, use senders[].cost. The save field is informational and its usage may vary by internal logic; it should not always be used as a billing basis.
Discrepancies can occur if not all required parameters are sent (dimensions, item_price, logistic_type), if there are front-end simulations, or if contingency rules exist. The recommendation is to use /shipments/{id}/costs to get the final cost that will be applied to the order.
The shipping cost is returned in the site's currency (e.g. BRL for MLB). If you work with prices in another currency, you must convert the returned value to the currency used in your calculation.
To find out what was charged to the seller, query senders[].cost in /shipments/{id}/costs; receiver.cost shows what the buyer pays. promoted_amount and discount fields explain subsidies or bonuses applied.