Documentación Mercado Libre
Descubre toda la información que debes conocer sobre las APIs de Mercado Libre.![circulos azuis em degrade](https://http2.mlstatic.com/storage/developers-site-cms-admin/DevImgs/230801158836-ImgMS--1-.png)
Documentación
Última actualización 21/12/2022
Shipping fee calculator
![]( https://http2.mlstatic.com/storage/developers-site-cms-admin/264588830606-calculadora-envios.png )
Contents
→Get shipment cost presales
→Response fields
→Errors
Get shipment cost presales
Request:
curl -H 'Authorization: Bearer $ACCESS_TOKEN' -X GET https://api.mercadolibre.com/global/shipments/costs?dimensions=$LENGTHx$HEIGHTx$WIDTH,$WEIGHT
Example:
curl -H 'Authorization: Bearer $ACCESS_TOKEN' -X GET https://api.mercadolibre.com/global/shipments/costs?dimensions=5x8.70x7.7,60.35
Response:
[
{
"list_cost": 9.61,
"site_id": "MCO",
"currency": "USD",
"logistic_type": "remote",
"weight": {
"unit": "lb",
"net_value": 4,
"volumetric_value": 4.564
},
"billable_weight": {
"unit": "lb",
"value": 4.564,
"type": "volumetric"
}
},
{
"list_cost": 21.03,
"site_id": "MLM",
"currency": "USD",
"logistic_type": "remote",
"weight": {
"unit": "lb",
"net_value": 4,
"volumetric_value": 4.564
},
"billable_weight": {
"unit": "lb",
"value": 4.564,
"type": "volumetric"
}
},
{
"list_cost": 14.35,
"site_id": "MLB",
"currency": "USD",
"logistic_type": "remote",
"weight": {
"unit": "lb",
"net_value": 4,
"volumetric_value": 4.564
},
"billable_weight": {
"unit": "lb",
"value": 3.999,
"type": "net"
}
},
{
"list_cost": 18.39,
"site_id": "MLC",
"currency": "USD",
"logistic_type": "remote",
"weight": {
"unit": "lb",
"net_value": 4,
"volumetric_value": 4.564
},
"billable_weight": {
"unit": "lb",
"value": 4.564,
"type": "volumetric"
}
},
{
"list_cost": 7.65,
"site_id": "MLM",
"currency": "USD",
"logistic_type": "fulfillment",
"weight": {
"unit": "lb",
"net_value": 4,
"volumetric_value": 4.564
},
"billable_weight": {
"unit": "lb",
"value": 4.564,
"type": "volumetric"
}
},
{
"list_cost": 6.61,
"site_id": "MLC",
"currency": "USD",
"logistic_type": "fulfillment",
"weight": {
"unit": "lb",
"net_value": 4,
"volumetric_value": 4.564
},
"billable_weight": {
"unit": "lb",
"value": 5.706,
"type": "volumetric"
}
}
]
Response fields
list_cost: shipment cost
site_id: site where the cost was calculated
currency: money type in dollars
logistic_type: type of logistics that the site has set
weight:
- unit: unit that was used. Example: g (grammes), lb (pound)
- net_value: net weight
- volumentric_value: volumetric value
billable_weight: weight that was used for the calculation
- unit: unit that was used. Example: g (grammes), lb (pound)
- value: weight that was user
- type: type if volumetric or net. See information about the formula we use for the volumetric weight.
Errors
Error | Message | Solution |
---|---|---|
400 | Dimension is not valid. The valid format is: HeightxWidthxLength,Weight. | Check the valid format for calculation. |
400 | The submitted dimensions and/or weights do not correspond to real measurements of the package. | Use the correct dimensions of the package that you'll use to dispatch your product, as well as the net weight of the item. |
404 | User X is not a cbt user. | Its available only for global user. See more Users API. |
400 | Country is empty or invalid. | The global user should be from China or the United States. See more Users API. |
404 | Country id AU is disabled to work with this endpoint. |
Find out more about Pricing and our packing recommendations.