Data/Hora:
06/12/2025 19:06:47
Tipo de Erro:
API_ERROR
Transportadora:
Tristar
Envio:
-
Mensagem de Erro:
Falha ao criar envio: The given data was invalid.
HTTP Code:
422
URL da Requisição:
https://sandbox.tristarexpress.com/v1/shipments
Método:
POST
Payload da Requisição:
{
"integration_code": "1",
"order_number": "ORDER-1",
"from_person_type": 1,
"from_name": "Farmausa Medicamentos Importados",
"from_document_type": 2,
"from_document": "00000000000000",
"from_country_code": "BR",
"from_postcode": "27260210",
"from_state_code": "RJ",
"from_address_1": "Rua Quarenta e dois, 20 - Vila Santa Cecília",
"from_address_number": "1",
"from_address_2": "",
"from_city": "Volta Redonda",
"from_email": "",
"from_phone": "",
"to_person_type": 1,
"to_name": "victor mangia",
"to_document_type": 1,
"to_document": "00000000000",
"to_address_1": "r. tancredo rodrigues de paula",
"to_address_number": "1",
"to_address_2": "",
"to_city": "Barra mansa",
"to_country_code": "BR",
"to_state_code": "RJ",
"to_postcode": "27321640",
"to_email": "victor@brasmid.com.br",
"to_phone": "24999382576",
"package_width": 10,
"package_height": 10,
"package_length": 10,
"package_weight": 10,
"package_freight": 0,
"total": 0,
"total_freight": 0,
"total_tax": 0,
"with_insurance": false,
"items": [
{
"shipment_item_type": 10,
"description": "321321321",
"quantity": 1,
"unit_price": 0
}
]
}
Resposta da API:
{
"message": "The given data was invalid.",
"errors": {
"to_document": [
"The to document is a invalid CPF."
]
}
}
Stack Trace:
#0 /www/wwwroot/teste.flextem.com.br/carriers/Tristar.php(124): ErrorLogger::logCarrierError()
#1 /www/wwwroot/teste.flextem.com.br/api-send-shipment.php(98): Tristar->criarEnvio()
#2 {main}
Dados de Contexto:
{
"response_data": {
"message": "The given data was invalid.",
"errors": {
"to_document": [
"The to document is a invalid CPF."
]
}
}
}
IP Address:
187.104.66.187
User Agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36