Marquer échoué

Guide d'intégration application mobile

Marquer échoué

POST /?endpoint=mark_failed

Signale qu'un message n'a pas pu être envoyé.

Corps de requête

ChampTypeDescription
idinteger obligatoire ID du message en file d'attente.
reasonstring optionnel Raison d'échec lisible (max 499 caractères). Stocké dans failed_reason.

Exemple de requête

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"}'

Réponse

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.