Reenviar uma entrega
POST
/v1/webhooks/entregas/{id}/reenviar
const url = 'https://sandbox-api.eagleix-corban.com.br/v1/webhooks/entregas/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/reenviar';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://sandbox-api.eagleix-corban.com.br/v1/webhooks/entregas/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/reenviar \ --header 'Authorization: Bearer <token>'Recoloca a entrega na fila (zera as tentativas) e tenta enviar na hora. Vale para entregas FALHOU ou ENTREGUE.
Autorizações
Seção intitulada “Autorizações”Parâmetros
Seção intitulada “Parâmetros”Path Parameters
Seção intitulada “Path Parameters”id
required
string format: uuid
Respostas
Seção intitulada “Respostas”Reenvio iniciado.
Token ausente, inválido ou expirado.
Tipo de mídiaapplication/json
object
code
required
Código estável, para tratamento programático.
string
message
required
Mensagem legível (pt-BR).
string
requestId
Id da requisição, igual ao header X-Request-Id.
string
Example
{ "code": "unauthorized", "message": "token inválido ou expirado", "requestId": "8d1f0c2a9b7e4c3d2a1b0f9e"}Headers
Seção intitulada “Headers”WWW-Authenticate
string
Example
Bearer error="invalid_token"Entrega não encontrada.
Tipo de mídiaapplication/json
object
code
required
Código estável, para tratamento programático.
string
message
required
Mensagem legível (pt-BR).
string
requestId
Id da requisição, igual ao header X-Request-Id.
string
Example
{ "code": "unauthorized"}