update_billing_service

To manage the available services and their cost, use the account/update_billing_service method:

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

Parameters

The request must contain the following parameters:

Parameter Description
itemId Resource (account) ID.
name Service name. You can find the complete list of services on the get_account_data page.
type Service type: 1 – on demand (for example, SMS). IntervalType defines how often the indicated limit is reset. 2 – periodic services. Payments are made after a specified time interval.
intervalType Reset interval type: 0 – never 1 – hourly 2 – daily 3 – weekly 4 – monthly.
costTable Limit and cost in the format described on the Services page.

Response

If the service is updated successfully, an empty object is returned. Otherwise, an error code is returned.

If you find a mistake in the text, please select it and press Ctrl+Enter.

Report a mistake

Your message was sent. Thank you!

An error occurred while submitting the form

Download PDF file
Download Word document

See also