These docs are for v2.0. Click to read the latest docs for v3.0.

Comunidade

Ask a Question
Back to All

Integração API

Prezados, bom dia!

Fizemos a integração do API junto a Rodonaves, e disponibilizamos em uma base de teste. Realizamos alguns teste comparando com alguns conhecimentos que foram emitidos, porem os valores estão bem diferentes, podem por gentileza validar?


Requisição: https://quotation-apigateway.rte.com.br/api/v1/gera-cotacao
{ "OriginZipCode":"09891001", "OriginCityId":9640, "DestinationZipCode":"32686190", "DestinationCityId":2762, "TotalWeight":0.105, "EletronicInvoiceValue":894.28, "CustomerTaxIdRegistration":"02545405000130", "ReceiverCpfcnp":"41757527000142", "Packs":[ { "AmountPackages":1, "Weight":0.105, "Length":0, "Height":0, "Width":0 } ], "ContactName":"[email protected]", "ContactPhoneNumber":"(11) 4082-0720" }

Resposta:
{"Value":219.29,"DeliveryTime":2,"ProtocolNumber":"188975101","CustomerEmail":null,"Cubed":false,"Message":null,"ExpirationDay":"2025-02-19T00:00:00-03:00","ContactName":"[email protected]","ContactPhoneNumber":null,"AmountPacks":1,"UnitDestinyDescription":null,"UnitOriginDescription":null,"ReceiptForm":null,"EmissionDate":"2025-02-04T08:47:03.6049034-03:00","ActiveDeliveryTime":true,"DeliveryDaysOnError":false,"DeliveryDaysOnErrorMessage":null,"DeliveryPhysicalPerson":2,"DeliveryLegalPerson":0,"Distance":607}


Requisição: https://quotation-apigateway.rte.com.br/api/v1/gera-cotacao
{ "OriginZipCode":"09891001", "OriginCityId":9640, "DestinationZipCode":"32242000", "DestinationCityId":2980, "TotalWeight":1.49, "EletronicInvoiceValue":3249.27, "CustomerTaxIdRegistration":"02545405000130", "ReceiverCpfcnp":"41757527000223", "Packs":[ { "AmountPackages":1, "Weight":1.49, "Length":0, "Height":0, "Width":0 } ], "ContactName":"[email protected]", "ContactPhoneNumber":"(11) 4082-0720" }

Resposta:
{"Value":227.78,"DeliveryTime":2,"ProtocolNumber":"188975285","CustomerEmail":null,"Cubed":false,"Message":null,"ExpirationDay":"2025-02-19T00:00:00-03:00","ContactName":"[email protected]","ContactPhoneNumber":null,"AmountPacks":1,"UnitDestinyDescription":null,"UnitOriginDescription":null,"ReceiptForm":null,"EmissionDate":"2025-02-04T08:49:50.5691582-03:00","ActiveDeliveryTime":true,"DeliveryDaysOnError":false,"DeliveryDaysOnErrorMessage":null,"DeliveryPhysicalPerson":2,"DeliveryLegalPerson":0,"Distance":595}


Requisição: https://quotation-apigateway.rte.com.br/api/v1/gera-cotacao
{ "OriginZipCode":"09891001", "OriginCityId":9640, "DestinationZipCode":"32669185", "DestinationCityId":2762, "TotalWeight":444.79, "EletronicInvoiceValue":138879.26, "CustomerTaxIdRegistration":"02545405000130", "ReceiverCpfcnp":"40331350000660", "Packs":[ { "AmountPackages":1, "Weight":444.79, "Length":0, "Height":0, "Width":0 } ], "ContactName":"[email protected]", "ContactPhoneNumber":"(11) 4082-0720" }

Resposta:
{"Value":1737.32,"DeliveryTime":2,"ProtocolNumber":"188975476","CustomerEmail":null,"Cubed":false,"Message":null,"ExpirationDay":"2025-02-19T00:00:00-03:00","ContactName":"[email protected]","ContactPhoneNumber":null,"AmountPacks":1,"UnitDestinyDescription":null,"UnitOriginDescription":null,"ReceiptForm":null,"EmissionDate":"2025-02-04T08:51:45.8691223-03:00","ActiveDeliveryTime":true,"DeliveryDaysOnError":false,"DeliveryDaysOnErrorMessage":null,"DeliveryPhysicalPerson":2,"DeliveryLegalPerson":0,"Distance":607}