Display shipping cost - Additional settings - Mercado Pago Developers

Display shipping cost

Display the shipping cost in the checkout as a separate item from the total purchase amount, allowing the customer to see how much they are paying for the products and how much for shipping before completing the transaction.

To do this, send a POST request to the endpoint /checkout/preferencesAPI including the cost and mode attributes within the shipments parameter, as shown in the example below.

json

{
    "shipments":{
        "cost": 1000,
        "mode": "not_specified",
  }
}
ParameterTypeDescription
costNumberShipping cost value.
modeStringShipping mode. Use not_specified to display the cost separately without specifying the shipping method.