IOSOR Learn

Processor retry must not double a top-up

Learn how IOSOR ensures idempotent auto-recharge transactions, preventing duplicate credits during payment processor retries while maintaining a USD 20 prepaid floor.

Processor retry must not double a top-up.

The Logic of Idempotent Payment Triggers

In the IOSOR ecosystem, auto-recharge is governed by strict idempotency protocols. When your balance hits the USD 20 prepaid floor, the system generates a unique transaction UUID. This token ensures that even if a network jitter causes the payment processor to retry the request, the ledger only records a single credit event. This prevents the 'double top-up' scenario which can disrupt financial reporting and cash flow management.

Managing Gateway Latency and Timeout States

Payment gateways occasionally experience latency that exceeds standard HTTP timeout windows. If a response is not received within the defined window, the IOSOR middleware enters a 'pending' state rather than firing a blind retry. By using the idempotency key, we ensure that any subsequent attempt to process the same recharge event is matched against the existing record.

Maintaining the USD 20 Prepaid Floor

The USD 20 prepaid floor acts as the trigger point for automated replenishment. Once the real-time ledger detects the balance dropping below this threshold, the JIT (Just-In-Time) billing engine initiates the recharge. This ensures that MRC (Monthly Recurring Charges) for E.164 number assignments and active messaging campaigns are never interrupted. The system holds the transaction in a 'Verify OK' state until the processor confirms the funds.

Ledger Synchronization and Webhook Validation

Every successful top-up triggers a webhook notification to your backend. These webhooks include the DLR (Delivery Receipt) sync data and the updated ledger balance. By validating these webhooks, developers can ensure their local database matches the IOSOR master record. If a processor retry occurs, the webhook will still reflect the original transaction UUID, maintaining a clean audit trail for all financial operations.

Scaling Limits and Spend Control Reviews

As your traffic grows, IOSOR provides safety nets to protect your capital. For accounts approaching a soft review near USD 1,000/month, our compliance team monitors recharge frequency to ensure patterns remain consistent with legitimate traffic. This review process helps prevent fraud while allowing for without fake-success scaling of your communication infrastructure.

Related: When Grace Ends Send Pauses — Live is Not Fake-Success · Auto-recharge so Live traffic does not stall · Prepaid hold before first debit.

Start with IOSOR

Open billing and locate the last threshold trip — the row that crossed the USD 20 trigger — then copy its idempotency key. If the processor still shows pending, do not fire a second auto-recharge. Wait for one terminal result: settled or declined. The webhook credits the wallet by that UUID, not because another HTTP 200 arrived.

IOSOR takeaway

A timeout is not a second top-up. One idempotency key belongs to one threshold breach; pending stays pending until the processor closes it. Do: match every retry to the existing row. Don't: refill the wallet while the first key is still open. The ledger trusts the UUID, not a second 200.

Was this guide helpful?

Related guides