Getting started¶
This page shows the first requests with your test partner ID: activate a subscription, make the MEGOGO account of the subscriber, sign in and stop the subscription. It takes about 15 minutes.
Before you start¶
- You have the test partner ID and a test service ID from your MEGOGO manager. See Credentials.
- The IP address of your computer or server is in the list of your test partner ID.
- You have
curlor another HTTP client.
In the examples, test-0001 is the identifier of a test subscriber. Use
your own test identifiers.
Step 1. Activate a subscription¶
curl "https://billing.megogo.net/partners/{test_partner_id}/subscription/subscribe?userId=test-0001&serviceId={service_id}"
{"successful": true}
If MEGOGO has no subscriber with this identifier, the request makes the subscriber.
Step 2. Check the subscription¶
curl "https://billing.megogo.net/partners/{test_partner_id}/user/subscriptions?identifier=test-0001"
{
"identifier": "test-0001",
"svod": [
{
"serviceId": "{service_id}",
"serviceName": "SVOD partners",
"dateFinish": 1796750920,
"dateFinishString": "2026-12-08 17:28:40"
}
]
}
dateFinish is Unix time in seconds. dateFinishString is the same time
in UTC.
Step 3. Make the MEGOGO account¶
Set a login and a password for the subscriber. The login is an e-mail address, for example the contract number at your domain. The password has 6 or more characters.
curl -X POST "https://billing.megogo.net/partners/{test_partner_id}/user/changeCredentials" \
-H "Content-Type: application/json" \
-d '{"isdn": "test-0001", "email": "test-0001@your-isp.example", "password": "{password}"}'
{"successful": true}
isdn is the same identifier as userId in step 1.
Step 4. Get the login¶
curl "https://billing.megogo.net/partners/{test_partner_id}/user/innerId?identifier=test-0001"
{"uid": 1234567890, "email": "test-0001@your-isp.example"}
uid is the MEGOGO user ID. email is the current login of the
subscriber.
Step 5. Sign in to MEGOGO¶
Open https://megogo.net/ua/auth_login?view_action=login_email and sign in with the login and the password of step 3. The subscription of step 1 is in the profile.
Step 6. Stop the subscription¶
curl "https://billing.megogo.net/partners/{test_partner_id}/subscription/unsubscribe?userId=test-0001&serviceId={service_id}"
{"successful": true}
Access stops immediately. user/subscriptions gives "svod": [].
Next steps¶
Guide version 1.0.2, 2026-11-08 · Report a problem on this page