Formato Frenet-compatible — integre em minutos.
Suporte a Correios, Jadlog e transportadoras privadas via tabela.
https://fretenapista.comTodas as requisições devem incluir o header token com seu token de acesso. O token é gerado no painel em Integrações → Tokens.
curl -X POST https://fretenapista.com/shipping/quote \
-H "Content-Type: application/json" \
-H "token: seu-token-aqui" \
-d '{"RecipientCEP":"01310100","ShipmentInvoiceValue":500,"ShippingItemArray":[{"Quantity":1,"Weight":5,"Length":40,"Height":15,"Width":25}]}'/shipping/quoteCalcula frete com todas as transportadoras configuradas. Retorna no formato Frenet, compatível com plataformas como Nuvemshop, Tray, WooCommerce e outras.
Content-TypestringobrigatóriotokenstringobrigatórioSellerCEPstringRecipientCEPstringobrigatórioShipmentInvoiceValuenumberobrigatórioShippingItemArrayarrayobrigatórioShippingItemArray[].QuantitynumberobrigatórioShippingItemArray[].WeightnumberobrigatórioShippingItemArray[].LengthnumberobrigatórioShippingItemArray[].HeightnumberobrigatórioShippingItemArray[].Widthnumberobrigatório{
"RecipientCEP": "01310100",
"ShipmentInvoiceValue": 500,
"ShippingItemArray": [
{
"Quantity": 1,
"Weight": 5,
"Length": 40,
"Height": 15,
"Width": 25
}
]
}{
"ShippingSevicesArray": [
{
"ServiceCode": "04014",
"ServiceDescription": "SEDEX",
"Carrier": "Correios",
"ShippingPrice": 45.90,
"DeliveryTime": 3,
"Error": false,
"Msg": "",
"OriginalShippingPrice": 45.90,
"OriginalDeliveryTime": 3
},
{
"ServiceCode": "04510",
"ServiceDescription": "PAC",
"Carrier": "Correios",
"ShippingPrice": 32.50,
"DeliveryTime": 7,
"Error": false,
"Msg": "",
"OriginalShippingPrice": 32.50,
"OriginalDeliveryTime": 7
}
]
}ServiceCodestringServiceDescriptionstringCarrierstringShippingPricenumberDeliveryTimenumberErrorbooleanMsgstringOriginalShippingPricenumberOriginalDeliveryTimenumber/shipping/wakeEndpoint para integração com Wake Commerce (Frete Customizado). Recebe e responde no formato exigido pela plataforma Wake.
{
"destino": "01310100",
"valorPedido": 500,
"produtos": [
{
"quantidade": 1,
"peso": 5000,
"comprimento": 40,
"altura": 15,
"largura": 25
}
]
}[
{
"nome": "SEDEX",
"valor": 45.90,
"prazo": 3,
"servico": "04014"
},
{
"nome": "PAC",
"valor": 32.50,
"prazo": 7,
"servico": "04510"
}
]/shipping/infoRetorna a lista de serviços de frete disponíveis para o tenant autenticado.
tokenstringobrigatório{
"services": [
{ "code": "04014", "name": "SEDEX", "carrier": "Correios", "enabled": true },
{ "code": "04510", "name": "PAC", "carrier": "Correios", "enabled": true },
{ "code": "jadlog-package", "name": ".Package", "carrier": "Jadlog", "enabled": true }
]
}/api/trackingConsulta o rastreamento de um pedido por número do pedido ou código de rastreio.
orderstringtrackingstringrefreshbooleancurl "https://fretenapista.com/api/tracking?order=12345"{
"order": "12345",
"tracking_code": "BR123456789BR",
"carrier": "Correios",
"status": "em_transito",
"events": [
{
"date": "2026-03-20T14:30:00Z",
"description": "Objeto em trânsito - por favor aguarde",
"location": "São Paulo / SP"
},
{
"date": "2026-03-19T09:15:00Z",
"description": "Objeto postado",
"location": "Maringá / PR"
}
]
}/api/webhook/wakeRecebe webhooks da Wake Commerce para atualização automática de pedidos e rastreamento.
pedido.novoeventpedido.situacao.alteradoeventpedido.rastreamento.alteradoeventConfigure a URL do webhook no painel da Wake Commerce apontando para:
https://fretenapista.com/api/webhook/wakecurl -X POST https://fretenapista.com/shipping/quote \
-H "Content-Type: application/json" \
-H "token: seu-token-aqui" \
-d '{
"RecipientCEP": "01310100",
"ShipmentInvoiceValue": 500,
"ShippingItemArray": [{
"Quantity": 1,
"Weight": 5,
"Length": 40,
"Height": 15,
"Width": 25
}]
}'const response = await fetch("https://fretenapista.com/shipping/quote", {
method: "POST",
headers: {
"Content-Type": "application/json",
"token": "seu-token-aqui"
},
body: JSON.stringify({
RecipientCEP: "01310100",
ShipmentInvoiceValue: 500,
ShippingItemArray: [{
Quantity: 1,
Weight: 5,
Length: 40,
Height: 15,
Width: 25
}]
})
});
const data = await response.json();
console.log(data.ShippingSevicesArray);<?php
$ch = curl_init("https://fretenapista.com/shipping/quote");
$payload = json_encode([
"RecipientCEP" => "01310100",
"ShipmentInvoiceValue" => 500,
"ShippingItemArray" => [[
"Quantity" => 1,
"Weight" => 5,
"Length" => 40,
"Height" => 15,
"Width" => 25,
]]
]);
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => $payload,
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"token: seu-token-aqui"
]
]);
$response = curl_exec($ch);
curl_close($ch);
$data = json_decode($response, true);
print_r($data["ShippingSevicesArray"]);Limites por token
Ao exceder o limite, a API retorna 429 Too Many Requests. Aguarde 60 segundos antes de tentar novamente.
{
"error": "Descrição do erro",
"code": 400
}