Data Bundle API
Data Purchase API Integration
This guide outlines the recommended workflow for integrating mobile data bundle purchase services using the Paybeta RESTful API.
The sandbox environment offers predefined test phone numbers so you can simulate different data purchase outcomes—including successes, errors, and edge cases—and verify how your integration handles each one.
Use the test numbers below to trigger specific API behaviors:
| Phone Number | Event | Behavior |
|---|---|---|
08011111111 |
Successful | Returns a standard successful data purchase response. |
201000000000 |
Pending | Simulates a transaction that remains in a pending state. |
500000000000 |
Unexpected Response | Returns an anomalous payload to test how your integration handles unexpected data. |
400000000000 |
No Response | Simulates an empty or missing response from the API. |
300000000000 |
Timeout | Simulates a delayed response that triggers a request timeout. |
| Any other random number | Failed | Returns a failed transaction response to test your error-handling flow. |