API: ofertas

Gerencie ofertas recebidas em fretes.

GET/api/public/v1/freights/{id}/offersAuth: API key

Lista todas as ofertas recebidas para um frete.

POST/api/public/v1/freights/{id}/offers/{offerId}/acceptAuth: API key

Aceita uma oferta. O frete passa a status aceito e demais ofertas são automaticamente rejeitadas.

POST/api/public/v1/freights/{id}/offers/{offerId}/rejectAuth: API key
json
{
  "reason": "Valor acima do limite"
}
POST/api/public/v1/freights/{id}/offers/{offerId}/counterAuth: API key

Envia uma contra-oferta.

json
{
  "price": 2800,
  "valid_until": "2026-05-08T18:00:00Z",
  "message": "Aceito por R$ 2.800"
}