Segna fallito
Guida all'integrazione dell'app mobile
Segna fallito
Segnala che un messaggio non รจ stato inviato.
Corpo della richiesta
| Campo | Tipo | Descrizione | |
|---|---|---|---|
| id | integer | obbligatorio | ID messaggio in coda. |
| reason | string | opzionale | Motivo di errore leggibile (max 499 caratteri). Salvato in failed_reason. |
Esempio di richiesta
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"}'
Risposta
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.