Transactions

Queue recovery

Recover stuck queued transactions with the TypeScript SDK.

POST/transactions/recover

Use blnk.Transactions.recoverQueue to retry queued transactions.

Call the method

const response = await blnk.Transactions.recoverQueue({
  threshold: '5m',
});
FieldTypeDescription
thresholdstringMinimum age of transactions to recover (for example 5m, 1h). Default 2m. Minimum 2 minutes.

Check how many were recovered

Read response.data.recovered to see how many transactions were re-enqueued. Use Search or get by ID to verify individual transaction statuses afterward.

Response

{
  "recovered": 3,
  "threshold": "5m0s"
}
FieldTypeDescription
recoverednumberNumber of transactions re-enqueued for processing.
thresholdstringThreshold duration that was used.