Hub do Desenvolvedor icon

Hub do Desenvolvedor

Consultas de CNPJ, CPF, CEP, Correios, IBGE e Saldo via Hub do Desenvolvedor

Correios → Calcular Frete

AI-generated

Summary

Calculate shipping cost between two Brazilian postal codes (CEPs) using Correios services with specified package details and optional delivery conditions.

Inputs

  • CEP de Origem (required) — Origin postal code in the format '00000-000'.
  • CEP de Destino (required) — Destination postal code in the format '00000-000'.
  • Tipo de Servico (required) — Select the Correios service type to use for the calculation (e.g., SEDEX, PAC).
  • Formato da Embalagem (required) — Select the package format: Caixas/Pacote, Rolo/Prisma, or Envelope.
  • Peso (gramas) (required) — Weight of the package in grams.
  • Comprimento (cm) (required) — Length of the package in centimeters.
  • Altura (cm) (required) — Height of the package in centimeters.
  • Largura (cm) (required) — Width of the package in centimeters.
  • Aviso de Recebimento — Whether to request proof of delivery (boolean). Defaults to false.
  • Maos Proprias — Whether the package should be delivered personally to the recipient only (boolean). Defaults to false.

Output shape

a single JSON object per input item containing the Correios freight calculation response data

Each input item results in one output item paired correspondingly. The output contains detailed pricing and service information or an error message on failure.

Examples

Example 1: Calculate freight cost using SEDEX service for a box of specified dimensions and weight from a given origin CEP to destination CEP.

Inputs set with origin CEP, destination CEP, 'SEDEX' as service type, box format, package weight and dimensions, with no special delivery options.

Links

Discussion