Marcar fallido
Guía de integración de la aplicación móvil
Marcar fallido
Reporta que un mensaje no pudo enviarse.
Cuerpo de la solicitud
| Campo | Tipo | Descripción | |
|---|---|---|---|
| id | integer | obligatorio | ID de mensaje en cola. |
| reason | string | opcional | Razón de fallo legible (máx. 499 caracteres). Almacenado en failed_reason. |
Ejemplo de solicitud
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"}'
Respuesta
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.