RCSZilla Versione 1.0

Segna fallito

Guida all'integrazione dell'app mobile

Segna fallito

POST /?endpoint=mark_failed

Segnala che un messaggio non รจ stato inviato.

Corpo della richiesta

CampoTipoDescrizione
idinteger obbligatorio ID messaggio in coda.
reasonstring 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.