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 (complete list of services is described in chapter Detailed information about account)
type service type (see below)
intervalType interval type (see below)
costTable cost table

Service types:

  • 1 – on demand, for example SMS, commands etc. IntervalType defines frequency of service usage counter reset.
  • 2 – periodic service, payments for them must be performed in specified time interval.

Interval types:

  • 0 – never;
  • 1 – hourly;
  • 2 – daily;
  • 3 – weekly;
  • 4 – monthly.

Response

{}	/* empty object if execution successful, if not - error code */
Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2024 Gurtam