Contact us Login LIVE DEMO FREE TRIAL

update(…)

update(codes, tariff_id, bonus_amount, free_days)

Change tariff_id, bonus_amount and free_days for all activation codes which:
1. has code listed in codes parameter
2. belongs to current dealer
3. not activated yet
4. belongs to same device_type as new tariff
And return count of updated codes.

parameters:

  • codes – JSON list of strings – codes to update
  • tariff_id – id of new tariff (have to belongs to current dealer)
  • bonus_amount – new bonus
  • free_days – new free period

required permissions:

  • activation_code: “update”

return:

{
    "success": true,
    "count": <int> // count of actually updated codes
}

errors:

  • 201 – Not found in database (when tariff with tariff_id not found for current dealer)

If you have more questions please contact our support team

Contacts

USA: +1 858 815 9045

Mexico: +52 334 1642158

UK: +44 808 1641499

Germany: +49 1573 5988250

Russia: +7 495 317 1622

Log in

Loading...

We use сookies to improve our website, products and related services, analyze site traffic, and serve targeted advertisements. If you continue to use our services, you consent to our use of сookies. Read more