Skip to content

Activate many subscriptions

This guide shows how to activate MEGOGO subscriptions for many users at one time, for example when you move your current subscribers to MEGOGO.

Before you start

  • The API does not have a request for many users. Send one subscribe for each phone number.
  • Each partner ID can send 1000 requests per minute. Above the limit, MEGOGO can return HTTP 429.
  • Each new subscription starts now and gets the full period of the service. You cannot set the start date or the end date.
  • We recommend that you tell your MEGOGO manager the date and the number of users before you start.

Step 1. Prepare the list

  1. Make a list of the phone numbers and the service ID for each number.
  2. Remove the numbers that are not in the international format, digits only.
  3. Remove the duplicate numbers.

Step 2. Send the requests

flowchart TD
    A[Next number from the list] --> B[subscriptions with phone]
    B --> C{Service is active?}
    C -- Yes --> E[Write: already active]
    C -- No --> D[subscribe]
    D --> F{Result}
    F -- successful: true --> G[Write: activated]
    F -- Code 2023 --> E
    F -- Other error --> H[Write: error, check later]
    F -- Timeout or 5xx --> B
    E --> A
    G --> A
    H --> A

For each number:

  1. Get subscriptions with the phone number. If the service is already active, do not send subscribe: in the mode "renewal by the partner", it adds one more period.
  2. Send subscribe.
  3. Write the result for the number in your system.

Each number needs two requests. Keep the speed below the limit, so that your other requests also get through: for example, 400 numbers per minute (800 requests). If you get HTTP 429, wait 1 minute and continue.

WARNING

After a timeout or an HTTP 5xx response, start again from step 1 for this number. See Retries.

Step 3. Check the result

  1. For the numbers with an error, find the cause in the Error catalog and send the requests again.
  2. For some numbers, get subscriptions again and make sure that the service is active.

Step 4. Tell the users

MEGOGO does not send a message to the users. Tell each user how to sign in to MEGOGO. See Activate a subscription.


Guide version 1.3.0, 2026-11-02 · Report a problem on this page