Marcar como Falha
Guia de Integração do Aplicativo Móvel
Marcar como Falha
Reporta que uma mensagem não pôde ser enviada. Incrementa o failed_count da campanha e o retry_count da fila.
Corpo da Requisição
| Campo | Tipo | Descrição | |
|---|---|---|---|
| id | integer | obrigatório | ID da mensagem na fila. |
| reason | string | opcional | Motivo da falha legível por humanos (máx. 499 caracteres). Armazenado em failed_reason. |
Exemplo de Requisição
cURL
curl -X POST "https://api.rcszilla.com/?endpoint=mark_failed" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR-DEVICE-TOKEN" \
-d '{"id": 101, "reason": "SmsManager returned RESULT_ERROR_NO_SERVICE"}'
Resposta
JSON200 OK
{"success": true, "message": "Marked as failed"}
Each call increments
retry_count on the queue row. The web panel's retry cron will re-queue the message automatically based on the configured retry policy.