Comunidade

Ask a Question
Back to All

Lentidão na consulta de frete

Segue dados da requisição, esta demorando 28 segundos

%HTTPoison.Response{
status_code: 200,
body: "{"Value":3804.66,"DeliveryTime":1,"ProtocolNumber":"171078060","CustomerEmail":null,"Cubed":true,"Message":null,"ExpirationDay":"2024-04-10T00:00:00-03:00","ContactName":null,"ContactPhoneNumber":null,"AmountPacks":0,"UnitDestinyDescription":null,"UnitOriginDescription":null,"ReceiptForm":null,"EmissionDate":"0001-01-01T00:00:00","ActiveDeliveryTime":true,"DeliveryDaysOnError":false,"DeliveryDaysOnErrorMessage":null,"DeliveryPhysicalPerson":2,"DeliveryLegalPerson":0}",
headers: [
{"Cache-Control", "no-cache"},
{"Pragma", "no-cache"},
{"Content-Type", "application/json; charset=utf-8"},
{"Expires", "-1"},
{"Server", "Microsoft-IIS/10.0"},
{"X-AspNet-Version", "4.0.30319"},
{"X-Powered-By", "ASP.NET"},
{"Access-Control-Allow-Origin", "*"},
{"Date", "Tue, 26 Mar 2024 16:31:18 GMT"},
{"Content-Length", "471"}
],
request_url: "https://01wapi.rte.com.br/api/v1/gera-cotacao",
request: %HTTPoison.Request{
method: :post,
url: "https://01wapi.rte.com.br/api/v1/gera-cotacao",
headers: [
{"Authorization",
"bearer HERE"},
{"Content-Type", "application/json"}
],
body: "{"TotalWeight":3760.0,"ReceiverCpfcnp":"03267787000140","Packs":[{"Width":0.5,"Weight":25,"Length":0.8,"Height":0.18,"AmountPackages":30},{"Width":0.5,"Weight":25,"Length":0.8,"Height":0.18,"AmountPackages":120}],"OriginZipCode":"95707066","OriginCityId":7466,"EletronicInvoiceValue":33077.4,"DestinationZipCode":"99500000","DestinationCityId":7554,"CustomerTaxIdRegistration":"91975011000223","ContactPhoneNumber":"54991939595","ContactName":"lnf admin"}",
params: %{},
options: [timeout: :infinity, recv_timeout: :infinity]
}
}}