This is an old revision of the document!


Services management

To manage services use command core/update_billing_service:

svc=account/update_billing_service&params={"itemId":<long>,
					   "name":<text>,
					   "type":<ubyte>,	
					   "intervalType":<ubyte>,
					   "costTable":<text>
}

Parameters

Name Description
itemId resource(account) ID
name service name
type service type (see below)
intervalType interval type (see below)
costTable cost table

Service types:

  • 1 – on demand, например SMS, Команды и т.д. Интервал определяет как часто счетчик использования сервиса будет сбрасываться.
  • 2 – периодический сервис, платежи за который должны поступать через определенный временной интервал.

Типы интервалов:

  • 0 – никогда;
  • 1 – ежечасно;
  • 2 – ежедневно;
  • 3 – еженедельно;
  • 4 – ежемесячно.

Возвращаемый результат

{}	/* пустой объект при удачном выполнении, при неудачном - код ошибки */
Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2024 Gurtam