Comunidade

Ask a Question
Back to all

Erro na geração de cotação via API – gera-cotacao

Prezados,

Estou realizando integrações com a API de cotação (https://quotation-apigateway.rte.com.br/api/v1/gera-cotacao) e, ao enviar o payload conforme documentação, estou recebendo o seguinte retorno:

{
"ErrorMessage": "Object reference not set to an instance of an object.",
"StackTrace": "Rodonaves.Quotation.Bll.Customer.SetReceiverCustomerAsync(QuotationInfo info, Boolean isSimulation) ... "
}

Payload enviado (exemplo):

{
"OriginZipCode": "92110470",
"DestinationZipCode": "91150001",
"EletronicInvoiceValue": 571.80,
"CustomerTaxIdRegistration": "42718567000148",
"ReceiverCpfcnp": "42718567000148",
"ContactName": "GSDEV",
"ContactPhoneNumber": "51977785636",
"Packs": [
{
"AmountPackages": 2,
"Weight": 1.0,
"Length": 15,
"Height": 28,
"Width": 5
}
]
}