Skip to main content

Overview

Best practices for polling API endpoints to track order status efficiently.

Basic Polling Pattern

Service-Specific Polling

Mobile Top-Ups (5 minutes max)

Internet Top-Ups (5 minutes max)

Gift Cards (10 minutes max)

Best Practices

Set Timeouts

Always set maximum polling duration

Handle Errors

Catch and handle polling timeouts

Log Progress

Track polling attempts for debugging

Final States

Define clear terminal states

Mobile Top-Up Guide

Complete mobile integration workflow

Error Handling

Handle errors properly

Webhooks

Real-time status notifications

Best Practices

Security best practices