Cálculo de Fretes

Changed on

Envios

post/api/v2/me/shipment/calculate

Request

Headers

Acceptstring required

application/json

Content-Typestring required

application/json

Authorizationstring required

Token

User-Agentstring required

É obrigatório que seja adicionado o cabeçalho HTTP User-Agent com o nome da sua aplicação junto a um email de contato/suporte.

Request body

Response

200

idinteger
namestring
pricestring
custom_pricestring
discountstring
currencystring
delivery_timeinteger
custom_delivery_timeinteger

Example response

[
  {
    "id": 1,
    "name": "PAC",
    "price": "37.79",
    "custom_price": "37.79",
    "discount": "2.09",
    "currency": "R$",
    "delivery_time": 9,
    "delivery_range": {
      "min": 8,
      "max": 9
    },
    "custom_delivery_time": 9,
    "custom_delivery_range": {
      "min": 8,
      "max": 9
    },
    "packages": [
      {
        "price": "37.79",
        "discount": "2.09",
        "format": "box",
        "dimensions": {
          "height": 2,
          "width": 11,
          "length": 16
        },
        "weight": "0.10",
        "insurance_value": "50.00",
        "products": [
          {
            "id": "pequeno",
            "quantity": 1
          }
        ]
      }
    ],
    "additional_services": {
      "receipt": true,
      "own_hand": true
    },
    "company": {
      "id": 1,
      "name": "Correios",
      "picture": "https://sandbox.melhorenvio.com.br/images/shipping-companies/correios.png"
    }
  }
]

Changes