Test data and scenarios¶
This page gives the values that you need for tests and the scenarios that show that your integration works correctly.
What you need¶
| Value | Where to get it |
|---|---|
| Test partner ID, test public key, test private key | Your MEGOGO manager. See Credentials |
| Test service IDs | Your MEGOGO manager. Ask for one service with automatic renewal and one service with renewal by the partner, if you sell both |
| Phone numbers | The numbers of your test SIM cards |
| IP addresses | The IPv4 addresses of your test servers, in the list of your test partner ID |
WARNING
MEGOGO does not have a separate test environment. Do not use invented
phone numbers: subscriptions with a phone number and subscribe
create a MEGOGO user for each new number.
You need the test SIM card to sign in to MEGOGO: MEGOGO sends the one-time code by SMS or Viber.
Example values in this guide¶
The examples in this guide use values that do not exist. Do not send them.
| Value | Example |
|---|---|
| Partner ID | example_operator |
| Public key | example_pub |
| Service ID | example_light_30d |
To make sure that your signature is correct, use the worked example.
Test scenarios¶
Do the scenarios with your test credentials and a test SIM card. Before
each scenario, make sure that subscriptions for the number gives [].
| # | Scenario | Requests | Expected result |
|---|---|---|---|
| 1 | Activate | user/phone, subscribe, subscriptions |
"successful": true. subscriptions shows the service with dateFinish |
| 2 | Sign in | Sign in to a MEGOGO application with the number | The subscription is in the profile of the user |
| 3 | Repeat for automatic renewal | subscribe again |
Code 2023. dateFinish does not change |
| 4 | Repeat for renewal by the partner | subscribe again |
"successful": true. dateFinish moves forward by one period |
| 5 | Suspend | suspend, subscriptions |
subscriptions gives [] |
| 6 | Resume | resume, subscriptions |
The service is back. dateFinish moved forward by the time of the suspension |
| 7 | Stop | unsubscribe, subscriptions |
subscriptions gives []. The subscription is not in the MEGOGO application |
| 8 | Wrong signature | Any request with one character changed in sign |
HTTP 401 Not Authorized |
| 9 | Unknown service | subscribe with a service ID that is not yours |
Service is not configured for this partner |
| 10 | Retry | Simulate a timeout of subscribe in your system |
Your system gets subscriptions before it sends subscribe again. See Retries |
At the end, send unsubscribe for all services on your test numbers.
Related pages¶
Guide version 1.3.0, 2026-11-02 · Report a problem on this page