You are viewing a document related to an older software Maintenance Release%XX%.
Click here to see the latest version of PortaSwitch
About PortaBilling API
Preface
This document provides information for developers who want to interface their applications with PortaBilling via XML and JSON API.
The PortaSIP Media Applications XML and JSON API is described in the PortaSIP Media Applications XML / JSON API Reference Guide.
What is new
Overview
PortaBilling allows you to perform operations such as data retrieval or data modification via API using the following Web Application Services: XML (SOAP) and JSON RPC.
Performing operations via API has several advantages:
-
It is based on either XML/SOAP (Simple Object Access Protocol) or JSON (JavaScript Object Notation) Web Application Services and HTTPS transport, so it is accessible
from any platform or operating system, and all communication between the server and clients is secure.
-
The business logic embedded into the API provides integrity checks for all data modifications, and can compile records from several database tables to create a single
customer information retrieval structure.
-
PortaBilling API is accessible to every owner of a virtual environment or reseller. Each user's access is automatically limited to his "visible" portion of the available data, e.g. a reseller can only retrieve information about his own sub-customers or their accounts.
PortaBilling XML / JSON API allows users to perform select, update, insert or delete operations on entities such as customers or accounts. Each user has his own login credentials,
and each operation he wishes to perform is analyzed to determine if it is possible with regard to general data integrity (e.g. a new account cannot be created without being assigned
to a customer) as well as the given user’s security permissions (ACLs) (e.g. while it is generally possible to create new accounts, a certain user may be prohibited from doing so).
By default, all API requests that contain attributes with date and time must be sent in the UTC timezone. The API returns the date and time information in the UTC timezone, respectively. Please note that some methods can receive and return the date and time information in the timezone different from the UTC (e.g. UTC+08). In this case the attributes of such methods have the appropriate description.
Security
Connection to the XML / JSON API is provided via HTTPS. Authentication is done using a pair: a user login and either the API access token or the user password for the admin web interface.
Each request to the API should contain the AuthInfoStructure structure as the header attribute. Note that we strongly recommend using the session_id property (which must be received
during the authorization via the login request) in the AuthInfoStructure structure for all session requests. Otherwise, if you use the login-password or the API access token authentication
pairs for every request, new sessions will be created and cause additional load to the database.
XML API
XML (SOAP) API has its own advantages and drawbacks as compared with JSON API. Among the benefits are the following:
-
There is a wide range of reusable software available to programmers to handle XML so they do not have to re-invent code.
-
XML (SOAP) is more verbose compared with JSON, but because of this, the data encoding result is typically larger than the equivalent encoding in JSON API.
Access to XML API
All SOAP requests to PortaBilling API must be sent to the following URL:
https://portabilling-web.yourdomain.com:port/soap/
Please replace the portabilling-web.yourdomain.com with the actual hostname of your PortaBilling web server.
Replace 'port' with the required port. The SOAP interface is available for administrators on port 443, the interface for customers is available on port 8444, the interface for resellers
is available on port 8442 and the interface for accounts is available on port 8445.
Error Handling
SOAP faults are used to carry error information within a SOAP message. If the actual response has a SOAP fault element as the body entry, then an error has occurred. In this case,
any other fields in the response cannot be guaranteed as accurate; only the fault sub-elements should be used to identify an error. Currently, these sub-elements are:
-
faultcode is intended for use by the client software and provides an algorithmic mechanism for identifying the fault;
-
faultstring provides a human readable explanation of the fault, and is not intended for algorithmic processing.
JSON API
As an alternative to XML API, PortaBillling supports JSON API, thus providing your development department with a choice of Web Application Services that can be used.
Among the advantages of JSON API are the following:
-
Simple data structures that can be easily read and written.
-
JSON format is faster in parsing and generating data due to simple syntax, thus there is little influence on web server performance.
-
Supports the same methods as those in the SOAP.
-
Simplifies the creation of front-end web sites that receive and modify data in PortaBilling with minimum impact on performance.
Access to JSON API
All JSON requests to PortaBilling® API must be sent to the following URL:
https://portabilling-web.yourdomain.com:port/rest/service/method/auth_info/parameters/bg_info/
Please replace the portabilling-web.yourdomain.com with the actual hostname of your PortaBilling web server.
Replace 'port' with the required port. The JSON interface is available for administrators on port 443, the interface for customers is available on port 8444,
the interface for resellers is available on port 8442 and the interface for accounts is available on port 8445.
Replace 'service' with the API service that contains the required method (e.g. specify the Account service to manage account information.)
Replace 'method' with the required API method (e.g. specify get_account_info method in order to get an account record from the database.)
Replace 'auth_info' with your credentials to access the PortaBilling web server. See the AuthInfoStructure for details.
Please note that values that have int or float types (according to this guide), will be represented in the JSON responses by a string containing a number,
like in the following example:
{ "i_account": "123456" }
Here is an example of the URL to send a POST request to:
https://demo.portaone.com:443/rest/Account/get_account_info/{"login":"password"}/{"i_account": "123456"}/
You can run JSON requests in the asynchronous mode so that they are executed in the background. For this, add the aux_info structure into the
request. The structure has the following fields:
-
async - indicates that the method must be run in the asynchronous mode.
-
bg_request_id - the ID of the background task started.
-
dry_run - indicates that the method must be run in the dry run mode (possible values: all, simple).
Here is an example of the URL to run the API method in asynchronous mode:
https://demo.portaone.com:443/rest/Account/get_account_info/{"login":"password"}/{"i_account": "123456"}/{"async":"1"}
NOTE: The asyncronous API requests are not processed during the software updrade.
Sending an HTTP request
For HTTP requests you must include the following parameters (in JSON format) in the POST request body:
-
auth_info - The mandatory authentication information (see the Security section).
-
params - A set of method parameters (in JSON format) that depend on a method structure. Note that method parameters and their structures are the same as those in the SOAP.
The Content-Type header field used with a HTP POST request must have one of the following values:
- application/x-www-form-urlencoded
- multipart/form-data
Error Handling
If the server returns the '500 Internal Server Error' status code in the HTTP response, then the response body contains a JSON object which includes two elements (keys) that carry
error information:
-
faultcode, that is intended for use by the client software and provides an algorithmic mechanism for identifying the fault.
-
faultstring, that provides a human readable explanation of the fault, and is not intended for algorithmic processing.
Examples
You can find code samples for Perl for both XML (SOAP) and JSON formats in the Appendices to the guide.
WSDL
Each installation of PortaBilling contains its own set of WSDL documents available for download from the web server from the following URL:
https://portabilling-web.yourdomain.com/wsdl/
Please replace the portabilling-web.yourdomain.com with the actual hostname of your PortaBilling web server.
All requests to PortaBilling API are handled via an SSL connection. By default, PortaBilling installations contain a self-signed certificate that provides the means to encrypt data.
However, since the authenticity of this certificate cannot be validated, you may experience some problems when connecting to an SSL site. In this case, it may be necessary to obtain
a certificate from a genuine certificate authority. Another option is to generate your own certificate authority and have certificates deployed to all API clients. However, this goes
beyond the scope of the present document.
PortaBilling API methods
Establishing authenticated session
SOAP URI (namespace): https://portabilling-web.yourdomain.com/Porta/SOAP/Session
Authenticated session management
AuthInfoStructure |
Property |
Type |
Description |
login |
string, 16 chars max |
The user login for the PortaBilling web interface. |
and one of the following: |
password |
string, 16 chars max |
The user password for the PortaBilling web interface. |
or |
token |
string |
The API access token of a user
Note that the token can only be used for the administrative interface (the admin realm). |
or alternatively (used without the login): |
session_id |
string, 32 chars max |
The unique ID of a previously opened SOAP session. |
i_env |
unsignedLong |
The unique ID of of the environment. This value is defined only for priviledged users. |
change_password |
The API method enables an API user to change their password (also changes expired passwords) |
Parameters |
SessionChangePasswordRequest |
Return Value |
SessionChangePasswordResponse |
Realm |
administrator, reseller, account, retail customer, cc staff, representative, distributor |
Standalone mode support |
No |
SessionChangePasswordRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
login |
Yes |
string |
No |
The username for the PortaBilling web interface. |
|
new_password |
Yes |
string |
No |
The new user password for the PortaBilling web interface. |
|
password |
Yes |
string |
No |
The user password for the PortaBilling web interface. |
|
SessionChangePasswordResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
success |
Yes |
string |
No |
1 is case of success, exception error message in case of failure. |
|
generate_captcha |
Enables an API user to generate a captcha image |
Parameters |
GenerateCaptchaRequest |
Return Value |
GenerateCaptchaResponse |
Realm |
administrator, reseller, account, retail customer, cc staff, representative, distributor |
Standalone mode support |
No |
GenerateCaptchaRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
Does not include any properties |
GenerateCaptchaResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
ca_content |
Yes |
string |
No |
The encoded captcha image. |
|
ca_token |
Yes |
string |
No |
The captcha token. |
|
get_session_context |
This method enables an API user to get the euuid for the current session |
Parameters |
GetSessionContextRequest |
Return Value |
GetSessionContextResponse |
Realm |
administrator, reseller, distributor, cc staff, retail customer, account, representative |
Standalone mode support |
No |
GetSessionContextRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
Does not include any properties |
GetSessionContextResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
euuid |
No |
string |
No |
The unique identifier of the environment. |
|
login |
This method checks the validity of login and password or token and returns the session_id on success. API Fault is thrown on failure |
Parameters |
LoginRequest |
Return Value |
LoginResponse |
Realm |
administrator, reseller, account, retail customer, cc staff, representative, distributor |
Standalone mode support |
No |
LoginRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
ca_code |
No |
string |
No |
The captcha code. |
|
ca_token |
No |
string |
No |
The captcha token. |
|
login |
Yes |
string |
No |
User Name, as specified on web interface. |
|
password |
No |
string |
No |
Password, as specified on web interface. |
|
token |
No |
string |
No |
The API access token of a user. |
|
LoginResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
session_id |
Yes |
string |
No |
The unique ID of the newly opened session. |
|
logout |
This method enables an API user to terminate a session. Call logout() to terminate the session properly |
Parameters |
LogoutRequest |
Return Value |
LogoutResponse |
Realm |
administrator, reseller, account, retail customer, cc staff, representative, distributor |
Standalone mode support |
No |
LogoutRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
session_id |
No |
string |
No |
The ID of a previously opened session. |
|
LogoutResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
success |
No |
int |
No |
1 for success, 0 for failure. |
|
ping |
This method checks the validity of a previously opened session and returns the user_id on success. API Fault is thrown on failure |
Parameters |
PingRequest |
Return Value |
PingResponse |
Realm |
administrator, reseller, account, retail customer, cc staff, representative, distributor |
Standalone mode support |
No |
PingRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
session_id |
No |
string |
No |
The ID of a previously opened session. |
|
PingResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
user_id |
No |
unsignedLong |
No |
The ID of the user currently logged into the specified session. |
|
reset_password |
This method enables an API user to reset the password (when the user forgets it, for example) and create a new one |
Parameters |
ResetPasswordRequest |
Return Value |
ResetPasswordResponse |
Realm |
administrator, reseller, account, retail customer, cc staff, representative, distributor |
Standalone mode support |
No |
ResetPasswordRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
custom_url |
No |
string |
No |
Optional link to the reset password page (e.g. http://yourdomain.com/reset_password). If not supplied then the default PortaBilling "forgot password" page url will be sent. |
|
email |
No |
string |
No |
The user email address. |
|
id |
No |
string |
No |
The reset password ID - A 32- symbol (128-bit) hexadecimal nonce previously sent to an email address as a part of the password reset link (it can be found at the end of the link). |
|
login |
No |
string |
No |
The user login for the PortaBilling web interface. |
|
password |
No |
string |
No |
A new password. |
|
ResetPasswordResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
success |
Yes |
int |
No |
1 for success, 0 for failure. |
|
set_session_context |
This method enables an API user to change the euuid for the current session |
Parameters |
SetSessionContextRequest |
Return Value |
SetSessionContextResponse |
Realm |
administrator, reseller, distributor, cc staff, representative |
Standalone mode support |
No |
SetSessionContextRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
euuid |
No |
string |
No |
The unique identifier of the environment. |
|
i_customer |
No |
unsignedLong |
No |
The unique ID of the customer record. |
|
SetSessionContextResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
success |
Yes |
int |
No |
1 for success, 0 for failure. |
|
Access control tools
SOAP URI (namespace): https://portabilling-web.yourdomain.com/Porta/SOAP/AccessControl
Access control management
get_operation_access_id |
This method enables getting access ID for a particular operation. The ID will be sent to the email/mobile of the requestor |
Parameters |
GetOperationAccessIdRequest |
Return Value |
GetOperationAccessIdResponse |
Realm |
administrator, reseller, retail customer, account |
Standalone mode support |
No |
GetOperationAccessIdRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
operation |
Yes |
string |
No |
A unique operation name that requires an additional ID for access. |
Min value: 1 |
GetOperationAccessIdResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
success |
No |
int |
No |
1 on success. |
|
Access policy information
SOAP URI (namespace): https://portabilling-web.yourdomain.com/Porta/SOAP/AccessPolicy
Access policy management
add_access_policy |
This method enables an API user to create an access policy using the supplied data |
Parameters |
AddAccessPolicyRequest |
Return Value |
AddAccessPolicyResponse |
Realm |
administrator, reseller |
Standalone mode support |
No |
AddAccessPolicyRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
access_policy_info |
Yes |
AccessPolicyInfo structure |
No |
The data related to the access policy. |
|
AddAccessPolicyResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_access_policy |
Yes |
unsignedLong |
No |
The unique ID of the access policy. |
|
DeleteAccessPolicyRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_access_policy |
Yes |
unsignedLong |
No |
The unique ID of the access policy. |
|
DeleteAccessPolicyResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
success |
Yes |
int |
No |
1 in case od success, exception error message in case of failure. |
|
GetAccessPolicyInfoRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
check_usage |
No |
int |
No |
If set to '1', the 'is_used' field will be provided in the response. |
|
i_access_policy |
Yes |
unsignedLong |
No |
The unique ID of the Access Policy. |
|
with_access_phases |
No |
int |
No |
If set to '1', the list of access_phases will be provided in the response. |
|
with_attributes |
No |
int |
No |
If set to '1', the list of related service policy attribute values will be provided in the response. |
|
GetAccessPolicyInfoResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
access_policy_info |
No |
AccessPolicyInfo structure |
No |
Access Policy information. |
|
GetAccessPolicyListRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
check_usage |
No |
int |
No |
If set to '1', the 'is_used' field will be provided for every record in the response. |
|
get_total |
No |
int |
No |
Get the total number of retrieved records. |
|
limit |
No |
int |
No |
The number of rows to retrieve. |
|
managed_by |
No |
unsignedLong |
No |
The unique ID of the reseller who owns the access policy. |
|
name |
No |
string |
No |
The name of the access policy. |
|
offset |
No |
int |
No |
The number of rows to skip at the beginning of the list. Requires the limit property to be specified in the API request. |
|
with_access_phases |
No |
int |
No |
If set to '1', the list of 'access_phases' will be provided for every record in the response. |
|
with_attributes |
No |
int |
No |
If set to '1', the list of related service policy attribute values will be provided for every record in the response. |
|
GetAccessPolicyListResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
access_policy_list |
No |
Array of AccessPolicyInfo structure |
No |
The list of access policy records. |
|
total |
No |
int |
No |
The total number of retrieved records. |
|
UpdateAccessPolicyRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
access_policy_info |
Yes |
AccessPolicyInfo structure |
No |
The data related to the access policy. |
|
UpdateAccessPolicyResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_access_policy |
Yes |
unsignedLong |
No |
The unique ID of the access policy. |
|
Access role information
SOAP URI (namespace): https://portabilling-web.yourdomain.com/Porta/SOAP/AccessRole
Access role management
AddAccessRoleRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
access_role_info |
Yes |
AccessRoleInfo structure |
No |
The information about the access role. |
|
AddUpdateAccessRoleResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_role |
Yes |
unsignedLong |
No |
The identifier of the access role. |
|
DeleteAccessRoleRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_role |
Yes |
unsignedLong |
No |
The identifier of the access role. |
|
DeleteAccessRoleResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
success |
Yes |
int |
No |
1 for success, exception in case of failure. |
|
GetAccessRoleInfoRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_role |
Yes |
unsignedLong |
No |
The identifier of the access role. |
|
with_permissions |
No |
int |
No |
Flag that indicates if the access role permissions should be returned. |
|
with_usage |
No |
int |
No |
Flag that indicates if the access role usage should be returned. |
|
GetAccessRoleInfoResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
access_role_info |
No |
AccessRoleInfo structure |
No |
Data on the access role. |
|
GetAccessRoleListRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
get_total |
No |
int |
No |
Get the total number of the retrieved access roles. |
|
i_role_type |
No |
int |
No |
The type of the access role. |
|
limit |
No |
int |
No |
The number of rows to retrieve. |
|
name |
No |
string |
No |
The name of the access role. |
|
offset |
No |
int |
No |
The number of rows to skip at the beginning of the list. |
|
with_usage |
No |
int |
No |
Flag that indicates if the access role usage should be returned. |
|
GetAccessRoleListResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
access_roles |
Yes |
Array of AccessRoleInfo structure |
Yes |
The list of access roles. |
|
total |
No |
int |
No |
The total number of the access roles. |
|
GetAccessRoleTypeListRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
with_metadata |
No |
int |
No |
Specifies whether the retrieve components tree metadata for the access role type. |
|
GetAccessRoleTypeListResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
access_role_types |
Yes |
Array of AccessRoleTypeInfo structure |
Yes |
The list of access role types. |
|
UpdateAccessRoleRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
access_role_info |
Yes |
AccessRoleInfo structure |
No |
The information about the access role. |
|
Account information
SOAP URI (namespace): https://portabilling-web.yourdomain.com/Porta/SOAP/Account
Account management
add_account |
This method allows an API user to create a new account record using the supplied data |
Parameters |
AddAccountRequest |
Return Value |
AddUpdateAccountResponse |
Realm |
administrator, reseller |
Standalone mode support |
No |
AddAccountRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
account_info |
No |
AccountInfo structure |
No |
Note: i_account will be ignored; most fields may be omitted. |
|
generate_web_password |
No |
int |
No |
Specifies whether to autogenerate a password to the account self-care interface. Possible values: 1 - Generate a password; 0 - Do not generate a password. |
|
AddUpdateAccountResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_account |
No |
unsignedLong |
No |
The unique ID of the created/modified account record. |
|
ChangeAccountPasswordRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_account |
No |
unsignedLong |
No |
The unique ID of the account record. |
|
new_password |
Yes |
string |
No |
The new password. |
Max value: 32 Min value: 1 |
old_password |
No |
string |
No |
The old password. |
|
get_account_info |
This method allows an API user to get an account record from the database. The account must be viewable (owned) by the user making the request |
Parameters |
GetAccountInfoRequest |
Return Value |
GetAccountInfoResponse |
Realm |
administrator, reseller, distributor, account, retail customer, cc staff, representative |
Standalone mode support |
Yes |
GetAccountInfoRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
batch_name |
No |
string |
No |
Name of batch to which the account belongs. |
Max value: 32 |
control_number |
No |
int |
No |
Sequential number of the account in the batch. This attribute serves to determine what account from the batch you wish to retrieve the information about. Mandatory for the API request with the batch_name property specified. |
Max value: 4294967295 |
detailed_info |
No |
int |
Yes |
Detailed information. |
|
expand_alias |
No |
int |
No |
For account aliases: indicates whether the information should be retrieved from the alias or from the related master account. |
|
get_included_services |
No |
int |
No |
Specifies whether to retrieve the list of services configured for the account. Possible values: 1 - Retreive the list of services; 0 - Do not retrieve the list of services. |
|
get_service_features |
No |
ArrayOfString |
No |
Specifies which service features to show. |
|
i_account |
No |
unsignedLong |
No |
The unique ID of the account. |
Max value: 4294967295 Min value: 1 |
i_batch |
No |
unsignedLong |
No |
Refers to batch record to which the account belongs. |
Max value: 4294967295 Min value: 1 |
i_subscriber |
No |
unsignedLong |
No |
The unique ID of the account's subscriber record. Refers to the Subscribers table. |
|
id |
No |
string |
No |
ID (PIN) of the account on the PortaBilling interface, unique in the environment. |
Max value: 128 |
login |
No |
string |
No |
Account login for the account web self-care interface. The unique in the environment. |
Max value: 128 |
with_customer_info |
No |
int |
No |
If with_customer_info == 1 then return information about customer. |
|
with_reseller_info |
No |
int |
No |
If with_reseller_info == 1 then return information about reseller. |
|
without_service_features |
No |
int |
No |
Specifies whether the information about service features should be included in the response. Note that SOAP requests without information requests about service features are 30% faster, so specify "1" here if you don't need information about service features. |
|
get_account_list |
This method allows an API user to get the list of account records. The account must be viewable (owned) by the user making the request |
Parameters |
GetAccountListRequest |
Return Value |
GetAccountListResponse |
Realm |
administrator, reseller, retail customer |
Standalone mode support |
Yes |
GetAccountListRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
batch_name |
No |
string |
No |
The batch name to which the account belongs. |
Max value: 32 |
billing_model |
No |
int |
No |
The account type. Possible values: -1 - Debit; 0 - Recharge voucher; 1 - Credit. |
Possible values: -1, 1, 0 |
callshop_enabled |
No |
string |
No |
Set this value to filter Accounts whose customers have callshop feature enabled or disabled. Possible values: Y - enabled, N - disabled. |
Possible values: Y, N |
city |
No |
string |
No |
City of account owner's address. |
|
cont1 |
No |
string |
No |
Main contact person. |
|
control_number |
No |
int |
No |
The sequential number of the account in the batch. |
|
faxnum |
No |
string |
No |
Fax number. |
|
firstname |
No |
string |
No |
Account owner's first name. |
|
free_of_extension |
No |
int |
No |
Get only the accounts that aren't assigned to any extension. |
|
get_not_closed_accounts |
No |
int |
Yes |
Get only accounts with statuses different from "closed". |
|
get_only_real_accounts |
No |
int |
Yes |
Get only accounts and skip account aliases. |
|
get_service_features |
No |
ArrayOfString |
No |
Specifies the list of service features to get for each account. |
|
get_statuses |
No |
int |
No |
Get the statuses of the accounts. |
|
get_total |
No |
int |
Yes |
Get the total number of the retrieved accounts. |
|
i_account_balance_control_type |
No |
unsignedLong |
No |
The unique ID of the account's balance control type. |
Possible values: 1, 2, 3 |
i_addon_product |
No |
unsignedLong |
No |
The unique ID of the record of the addon product that is assigned to the account. |
Max value: 4294967295 Min value: 1 |
i_batch |
No |
unsignedLong |
Yes |
Refers to batch record to which the account belongs. |
Max value: 4294967295 Min value: 1 |
i_customer |
No |
unsignedLong |
No |
Refers to the customer record to which the account belongs. |
Max value: 4294967295 Min value: 1 |
i_customer_site |
No |
unsignedLong |
Yes |
The unique ID of the customer site. |
Max value: 4294967295 Min value: 1 |
i_product |
No |
unsignedLong |
No |
Refers to the product record which is assigned to the account. |
Max value: 4294967295 Min value: 1 |
id |
No |
string |
No |
Search pattern for account IDs. |
Max value: 128 |
legal_intercept_only |
No |
int |
Yes |
Get only accounts with "Legal Intercept" enabled. |
|
limit |
No |
int |
No |
The number of rows to retrieve. |
Default value: 50 Max value: 1000 Min value: 1 |
login |
No |
string |
No |
User login for self-care web interface. |
|
offset |
No |
int |
No |
The number of rows to skip at the beginning of the list. |
Max value: 4294967295 |
phone1 |
No |
string |
No |
Main phone number. |
|
phone2 |
No |
string |
No |
Alternative phone number. |
|
salutation |
No |
string |
No |
Account owner's salutation. |
|
sip_status |
No |
int |
No |
Indicates whether the account is used by a SIP phone to register with a PortaSIP server: 1 - online (the account is used by a SIP phone to register with a PortaSIP server); 0 - offline. |
Max value: 1 |
GetAccountListResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
account_list |
No |
Array of AccountInfo structure |
No |
Set of account data records. |
|
total |
No |
int |
No |
The total number of the retrieved accounts. |
|
move_account |
This method allows an administrator to "move" an account to a different customer. The "movement" is performed in two steps: 1) The clone of the target account is created for the appropriate customer; 2) The target account is terminated |
Parameters |
MoveAccountRequest |
Return Value |
MoveAccountResponse |
Realm |
administrator |
Standalone mode support |
No |
MoveAccountRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
batch_name |
Yes |
string |
No |
The name of the a batch to put the account into. |
|
i_account |
Yes |
unsignedLong |
No |
The unique ID of the account to be moved. |
|
i_customer |
Yes |
unsignedLong |
No |
The unique ID of the customer to move account to. |
|
i_product |
No |
unsignedLong |
Yes |
The unique ID of the product. |
|
i_routing_plan |
No |
unsignedLong |
Yes |
The unique ID of the routing plan. |
|
i_vd_plan |
No |
unsignedLong |
Yes |
The unique ID of the volume discount plan. |
|
MoveAccountResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_account |
Yes |
unsignedLong |
No |
The new unique ID of the account that was moved. |
|
old_i_account |
Yes |
unsignedLong |
No |
The old ID of the account that was moved. |
|
warnings |
No |
ArrayOfString |
Yes |
Warnings accumulated while moving the account. |
|
TerminateAccountRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_account |
Yes |
unsignedLong |
No |
The unique ID of the account. |
|
TerminateAccountResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
success |
Yes |
int |
No |
1 in case of success, 0 in case of failure. |
|
update_account |
This method allows an API user to update an existing account record using the supplied data |
Parameters |
UpdateAccountRequest |
Return Value |
AddUpdateAccountResponse |
Realm |
administrator, reseller, distributor, retail customer, account, cc staff, representative |
Standalone mode support |
No |
UpdateAccountRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
account_info |
No |
AccountInfo structure |
No |
Note: i_account is a mandatory field; only fields requiring modification should be provided. |
|
validate_account_info |
This method allows an API user to check if the supplied data can be used to create a new account record or update an existing one. If successful, the completed data is returned |
Parameters |
ValidateAccountInfoRequest |
Return Value |
ValidateAccountInfoResponse |
Realm |
administrator, reseller |
Standalone mode support |
Yes |
ValidateAccountInfoRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
account_info |
No |
AccountInfo structure |
No |
Complete information about an account; note: omit i_account to check if data can be used to create a new account record. |
|
ValidateAccountInfoResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
account_info |
No |
AccountInfo structure |
No |
Data about an account, see AccountInfo above. |
|
Alias management
AddAccountAliasRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
alias_info |
Yes |
AliasInfo structure |
No |
Alias information. |
|
AddAccountAliasResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_account |
No |
unsignedLong |
Yes |
The unique ID of the alias record. |
|
success |
Yes |
int |
No |
1 for success, 0 for failure. |
|
DeleteAccountAliasRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
alias_info |
Yes |
AliasInfo structure |
No |
Alias information. |
|
DeleteAccountAliasResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
success |
Yes |
int |
No |
1 if success, 0 if failure. |
|
GetAccountAliasListRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
get_total |
No |
int |
Yes |
Get the total number of the retrieved aliases. |
|
i_master_account |
No |
unsignedLong |
No |
ID of a master account record. |
|
GetAccountAliasListResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
alias_list |
No |
Array of AliasInfo structure |
No |
The list of aliases. |
|
total |
No |
int |
No |
The number of the retrieved aliases. |
|
UpdateAccountAliasRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
alias_info |
Yes |
AliasInfo structure |
No |
Alias information. |
|
UpdateAccountAliasResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
success |
Yes |
int |
No |
1 for success, 0 for failure. |
|
Async API notification management
DisableApiNotificationsAccountRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
event |
Yes |
string |
No |
The event name. |
Possible values: sip.call_control_notifications |
i_account |
Yes |
unsignedLong |
No |
The unique ID of the account record. |
|
DisableApiNotificationsAccountResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
success |
Yes |
int |
No |
A non-zero value means that the operation has been successfully completed. |
|
EnableApiNotificationsAccountRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
event |
Yes |
string |
No |
The event name. |
Possible values: sip.call_control_notifications |
i_account |
Yes |
unsignedLong |
No |
The unique ID of the account record. |
|
EnableApiNotificationsAccountResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
success |
Yes |
int |
No |
A non-zero value means that the operation has been successfully completed. |
|
Auto-payment management
AddUpdateAutoPaymentInfoRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
auto_payment_info |
Yes |
AutoPaymentInfo structure |
No |
Auto-payment data. |
|
AddUpdateAutoPaymentInfoResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_object |
Yes |
unsignedLong |
No |
The unique ID of either an account or a customer. |
|
delete_auto_payment |
This method enables an API user to delete an account's automated periodic payment |
Parameters |
DeleteAutoPaymentRequest |
Return Value |
DeleteAutoPaymentResponse |
Realm |
administrator, reseller, retail customer, account |
Standalone mode support |
No |
DeleteAutoPaymentRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_object |
Yes |
unsignedLong |
No |
The unique ID of an account or a customer. Not mandatory when the method that requires this structure is executed from the retail customer realm. |
|
DeleteAutoPaymentResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
success |
Yes |
int |
No |
1 for success, 0 for failure. |
|
get_auto_payment_info |
This method enables an API user to get an account’s automated periodic payment record |
Parameters |
GetAutoPaymentInfoRequest |
Return Value |
GetAutoPaymentInfoResponse |
Realm |
administrator, reseller, retail customer, account |
Standalone mode support |
Yes |
GetAutoPaymentInfoRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_object |
Yes |
unsignedLong |
No |
The unique ID of an account or a customer. Not mandatory when the method that requires this structure is executed from the retail customer realm or the account realms. |
|
GetAutoPaymentInfoResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
auto_payment_info |
Yes |
AutoPaymentInfo structure |
Yes |
Auto-payment data. |
|
Batch management
GenerateAccountsRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
activation_date |
No |
date |
No |
The date when the account becomes usable. |
Default value: current date |
addon_products |
No |
ArrayOfInt |
No |
The list of effective add-on products for the given accounts. |
|
batch |
Yes |
string |
No |
Name of existing batch or new one. |
Max value: 32 Min value: 1 |
billing_model |
No |
int |
No |
One of the following: -1 - Debit; 0 - Recharge Voucher;1 - Credit . |
Default value: -1 Possible values: -1, 1, 0 |
blocked |
No |
string |
No |
Shows whether account will be blocked after creation; default: N. |
Default value: N Possible values: Y, N |
credit_limit |
No |
float |
No |
Account's credit limit value. Only for credit accounts; default: 0. |
|
ecommerce_enabled |
No |
string |
No |
Allow the account's owner to make online payments or set up periodical payments on the account's self-care interface. |
Default value: N Possible values: Y, N |
expiration_date |
No |
date |
Yes |
The date when the account become unusable. |
Default value: in 1y since the current date |
gen_amount |
No |
int |
No |
Amount of accounts to generate. |
Default value: 10 Max value: 10000 Min value: 1 |
gen_credentials_method |
No |
string |
No |
Method of login and password generation: empty, auto. |
Default value: auto Possible values: empty, auto |
gen_h323_length |
No |
int |
No |
Length of service password to generate for method auto_digits; default: defined by cfg option Cardissue.NumericH323PasswordLength. |
|
gen_h323_method |
No |
string |
No |
Method of service password generation: empty, auto, auto_digits. Only for Debit accounts and Recharge vouchers. |
Default value: empty Possible values: empty, auto, auto_digits |
gen_i_do_batch |
No |
unsignedLong |
No |
ID of DID owner batch to use DID numbers from. Only for DID Inventory method. |
|
gen_id_length |
No |
int |
No |
Account ID length. Only for the Random method. |
Default value: 11 Max value: 64 Min value: 4 |
gen_id_prefix |
No |
string |
No |
Account ID prefix. Only for the Random method. |
Max value: 64 |
gen_method |
No |
string |
No |
The accounts generation method: R - Random; S - Sequential; D - DID Inventory. |
Default value: R Possible values: R, S, D |
gen_start_did |
No |
string |
No |
Starting DID number. Only for the DID Inventory method . |
|
gen_start_id |
No |
string |
No |
Account's start ID. Only for Sequential method. |
|
i_account_balance_control_type |
No |
unsignedLong |
No |
The unique ID of the Account_Balance_Control_Types record (the Balance Control field on the PortaBilling web interface). |
|
i_account_role |
No |
unsignedLong |
No |
The unique ID of the account role; refers to the Account_Roles table. An account role defines what a specific account is designated for (e.g. whether the account represents a phone line or a top-up voucher) and executes account ID validation. Thus, for a phone line, one can only pick a valid phone number as an account ID. |
Default value: 1 |
i_acl |
No |
unsignedLong |
No |
The unique ID for the account's access level; refers to the Access_Levels table. |
|
i_batch |
No |
unsignedLong |
No |
The unique ID of the batch to which the account belongs. |
|
i_customer |
Yes |
unsignedLong |
No |
The unique ID of the customer record. |
|
i_customer_site |
No |
unsignedLong |
No |
The unique ID of a customer site record. |
|
i_distributor |
No |
unsignedLong |
No |
The unique ID of the distributor. Only for Debit accounts and Recharge vouchers. |
|
i_product |
Yes |
unsignedLong |
No |
The unique ID of the product record. |
|
i_time_zone |
No |
unsignedLong |
No |
The unique ID of the time zone record. |
Default value: 113 |
in_date_format |
No |
string |
No |
Input format for date indication. |
Default value: YYYY-MM-DD Max value: 16 |
in_time_format |
No |
string |
No |
Input format for time indication. |
Default value: HH24:MI:SS Max value: 16 |
inactive |
No |
string |
No |
Shows whether account will be inactive after creation. Only for Debit accounts and Recharge vouchers. The default value is: Y. |
Default value: Y Possible values: Y, N |
inactivity_expire_time |
No |
int |
No |
Specifies the number of days the account remains active after its last use or recharge. |
Max value: 65535 Min value: 1 |
language |
No |
string |
No |
The accounts' language. |
Max value: 2 Min value: 2 |
life_time |
No |
int |
Yes |
Accounts will expire on the first usage time + lifetime days. |
Default value: 90 Max value: 65535 Min value: 1 |
opening_balance |
No |
float |
No |
The initial balance of the account. |
Default value: 10 Max value: 99999999999.99998 Min value: -9999999999.99999 Precision: 15, Scale: 5 |
out_date_format |
No |
string |
No |
Output format for date indication. |
Default value: YYYY-MM-DD Max value: 16 |
out_date_time_format |
No |
string |
No |
Output format for full date/time indication. |
Default value: YYYY-MM-DD HH24:MI:SS Max value: 32 |
out_time_format |
No |
string |
No |
Output format for time indication. |
Default value: HH24:MI:SS Max value: 16 |
service_features |
No |
Array of ServiceFeatureInfo structure |
No |
Contains values for account's service attributes. |
|
GenerateAccountsResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
success |
Yes |
int |
No |
Returns 1 if accounts generation procedure has been placed. |
|
UpdateAccountsBatchRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
activate |
No |
int |
No |
Indicates that accounts should be activated. Only for debit accounts and vouchers. |
|
activation_date |
No |
date |
No |
The date from which accounts are usable. |
|
addon_products |
No |
ArrayOfInt |
No |
The list of effective add-on products for the given accounts. |
|
batch |
No |
string |
No |
The batch name. |
Max value: 32 Min value: 1 |
blocked |
No |
string |
No |
Indicates whether accounts should be blocked or unblocked. |
Possible values: Y, N |
charge |
No |
float |
No |
The amount to charge accounts. |
Max value: 99999999999.99998 Min value: 0.00001 Precision: 15, Scale: 5 |
control_number |
No |
string |
No |
Comma-separated integer control numbers and/or ranges of integer control numbers. For example: 3,5-9,12. |
Min value: 1 |
credit |
No |
float |
No |
The amount to credit accounts. |
Max value: 99999999999.99998 Min value: 0.00001 Precision: 15, Scale: 5 |
expiration_date |
No |
date |
Yes |
The date from which accounts will become unusable. |
|
i_batch |
No |
unsignedLong |
No |
The unique ID of batch record. |
|
i_customer_site |
No |
unsignedLong |
Yes |
The unique ID of Customer Site record. |
|
i_distributor |
No |
unsignedLong |
Yes |
The unique ID of Distributor. |
|
i_product |
No |
unsignedLong |
No |
The unique ID of Product record . |
|
i_time_zone |
No |
unsignedLong |
No |
The unique ID of Time Zone record. |
|
ivr_language |
No |
string |
Yes |
Preferred IVR language. |
Max value: 5 Min value: 2 |
life_time |
No |
int |
Yes |
Accounts will expire on the first usage time + lifetime days. |
Max value: 65535 Min value: 1 |
reapply_subscriptions |
No |
int |
No |
Product subscriptions will be reapplied for accounts. |
|
redirect_number |
No |
string |
No |
Associated number. |
Max value: 64 |
terminate |
No |
int |
No |
Indicates that accounts should be terminated. |
|
unified_messaging |
No |
string |
No |
Enable/disable or set as defined by the product UM service feature. |
Possible values: ~, Y, N |
UpdateAccountsBatchResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
success |
Yes |
int |
No |
Returns 1 if accounts batch update has been successful. |
|
Call barring rules management
get_call_barring_options |
This method allows an API user to retrieve all available options for account call barring and check their status |
Parameters |
GetCallBarringOptionsRequest |
Return Value |
GetCallBarringOptionsResponse |
Realm |
administrator, reseller, retail customer, account |
Standalone mode support |
No |
GetCallBarringOptionsRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
get_effective_values |
No |
int |
No |
Possible values: 1 - Retreive the call barring rules defined at the customer level; 0 - Retreive only those call barring rules that were defined for the account. |
|
i_account |
Yes |
unsignedLong |
No |
The unique ID of the account. |
|
update_call_barring_options |
This method allows an API user to update options for account call barring, i.e. enable or disable the corresponding items |
Parameters |
UpdateCallBarringOptionsRequest |
Return Value |
UpdateCallBarringOptionsResponse |
Realm |
administrator, reseller, retail customer, account |
Standalone mode support |
No |
UpdateCallBarringOptionsRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_account |
Yes |
unsignedLong |
No |
The unique ID of the account. |
|
options |
Yes |
Array of CallBarringRuleInfo structure |
No |
Call barring options. |
|
UpdateCallBarringOptionsResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
success |
Yes |
int |
No |
1 in case of success, 0 in case of failure. |
|
Call screening management
add_cp_condition |
This method allows an API user to add a call screening condition |
Parameters |
AddCPConditionRequest |
Return Value |
AddCPConditionResponse |
Realm |
administrator, reseller, retail customer, account |
Standalone mode support |
No |
AddCPConditionRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
cp_condition_info |
Yes |
CPConditionInfo structure |
No |
Call screening condition structure. |
|
AddCPConditionResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_cp_condition |
Yes |
unsignedLong |
No |
The unique ID of the call screening condition record. |
|
add_cp_rule |
This method allows an API user to create a new call screening rule |
Parameters |
AddCPRuleRequest |
Return Value |
AddCPRuleResponse |
Realm |
administrator, reseller, retail customer, account |
Standalone mode support |
No |
AddCPRuleRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
cp_rule_info |
Yes |
CPRuleInfo structure |
No |
Call screening rule info structure. Note: i_account is a mandatory field. |
|
AddCPRuleResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_cp_rule |
Yes |
unsignedLong |
No |
The unique ID of the call screening rule record. |
|
arrange_cp_rules |
This method allows an API user to redefine the order in which call screening rules are applied |
Parameters |
ArrangeCPRulesRequest |
Return Value |
ArrangeCPRulesResponse |
Realm |
administrator, reseller, retail customer, account |
Standalone mode support |
No |
ArrangeCPRulesRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_account |
Yes |
unsignedLong |
No |
The unique ID of the account. |
|
rules |
Yes |
Array of unsignedLong structure |
No |
Array of IDs of CPRuleInfo structures. |
|
ArrangeCPRulesResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
success |
Yes |
int |
No |
One of the following: 1 - success, 0 - failed. |
|
delete_cp_condition |
This method enables an API user to delete an existing call screening condition |
Parameters |
DeleteCPConditionRequest |
Return Value |
DeleteCPConditionResponse |
Realm |
administrator, reseller, retail customer, account |
Standalone mode support |
No |
DeleteCPConditionRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
cp_condition_info |
Yes |
CPConditionInfo structure |
No |
Call screening condition. |
|
DeleteCPConditionResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
success |
Yes |
int |
No |
One of the following: 1 - success, 0 - failed. |
|
delete_cp_rule |
This method allows an API user to delete an existing call screening rule |
Parameters |
DeleteCPRuleRequest |
Return Value |
DeleteCPRuleResponse |
Realm |
administrator, reseller, retail customer, account |
Standalone mode support |
No |
DeleteCPRuleRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
cp_rule_info |
Yes |
CPRuleInfo structure |
No |
The unique ID of the call screening rule record. |
|
DeleteCPRuleResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
success |
Yes |
int |
No |
One of the following: 1 – success, 0 – failed. |
|
get_cp_condition_list |
This method allows an API user to retrieve the list of call screening conditions defined for a given customer |
Parameters |
GetCPConditionListRequest |
Return Value |
GetCPConditionListResponse |
Realm |
administrator, reseller, retail customer, account |
Standalone mode support |
Yes |
GetCPConditionListRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
get_total |
No |
int |
No |
Get the total number of the retrieved call processing rule data records. |
|
i_account |
Yes |
unsignedLong |
No |
The unique ID of the account. |
|
limit |
No |
int |
No |
The number of rows to retrieve. |
|
offset |
No |
int |
No |
The number of rows to skip at the beginning of the list. |
|
type |
No |
string |
Yes |
One of the following: FromNumber, ToNumber, TimeWindow. |
|
GetCPConditionListResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
cp_condition_list |
No |
Array of CPConditionInfo structure |
No |
Array of CPConditionInfo structures. |
|
total |
No |
int |
No |
The total number of the retrieved call processing rule records. |
|
get_cp_rule_list |
This method allows an API user to retrieve the information about defined call screening rules |
Parameters |
GetCPRuleListRequest |
Return Value |
GetCPRuleListResponse |
Realm |
administrator, reseller, retail customer, account |
Standalone mode support |
Yes |
GetCPRuleListRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
get_total |
No |
int |
No |
Get the total number of the retrieved rate data records. |
|
i_account |
Yes |
unsignedLong |
No |
The unique ID of the account. |
|
limit |
No |
int |
No |
The number of rows to retrieve. |
|
offset |
No |
int |
No |
The number of rows to skip at the beginning of the list. |
|
GetCPRuleListResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
cp_rule_list |
No |
Array of CPRuleInfo structure |
No |
Array of CPRuleInfo structures. |
|
total |
No |
int |
No |
The total number of records. |
|
update_cp_condition |
This method allows an API user to update an existing call screening condition |
Parameters |
UpdateCPConditionRequest |
Return Value |
UpdateCPConditionResponse |
Realm |
administrator, reseller, retail customer, account |
Standalone mode support |
No |
UpdateCPConditionRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
cp_condition_info |
Yes |
CPConditionInfo structure |
No |
Call screening condition structure. |
|
UpdateCPConditionResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_cp_condition |
Yes |
unsignedLong |
No |
The unique ID of the call screening condition rule. |
|
update_cp_rule |
This method allows an API user to update an existing call screening rule |
Parameters |
UpdateCPRuleRequest |
Return Value |
UpdateCPRuleResponse |
Realm |
administrator, reseller, retail customer, account |
Standalone mode support |
No |
UpdateCPRuleRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
cp_rule_info |
Yes |
CPRuleInfo structure |
No |
Call screening rule info structure. Note: i_account will be ignored. |
|
UpdateCPRuleResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_cp_rule |
Yes |
unsignedLong |
No |
The unique ID of the call screening rule record. |
|
Custom field management
get_custom_fields_schema |
This method allows an API user to get the list of account's custom fields with information about their types and allowed values |
Parameters |
GetAccountCustomFieldsSchemaRequest |
Return Value |
GetAccountCustomFieldsSchemaResponse |
Realm |
administrator, reseller, retail customer, account, distributor, cc staff, representative |
Standalone mode support |
Yes |
GetAccountCustomFieldsSchemaRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_account |
Yes |
unsignedLong |
No |
The unique ID of the account record. If not provided, the ID of the entity that is logged in will be used. |
|
GetAccountCustomFieldsSchemaResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
custom_fields |
No |
Array of AccountCustomFieldsInfo structure |
Yes |
The list of Custom Fields with information for the given account. |
|
GetAccountCustomFieldsValuesRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_account |
Yes |
unsignedLong |
No |
The unique ID of the account record. |
|
GetAccountCustomFieldsValuesResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
custom_fields_values |
No |
Array of CustomFieldsValuesInfo structure |
Yes |
The list of Custom Fields values for the given account. |
|
UpdateAccountCustomFieldsValuesRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
custom_fields_values |
Yes |
Array of CustomFieldsValuesInfo structure |
Yes |
The list of Custom Fields values for the given account. |
|
i_account |
No |
unsignedLong |
No |
The unique ID of the account record. |
|
UpdateAccountCustomFieldsValuesResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
custom_fields_values |
No |
Array of CustomFieldsValuesInfo structure |
Yes |
The list of Custom Fields values for the given account. |
|
i_account |
No |
unsignedLong |
Yes |
The unique ID of the account record. |
|
Favourites list management
AddPreferableAccountRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
preferable_account_info |
Yes |
PreferableAccountInfo structure |
No |
Information about a frequently used account. |
|
AddPreferableAccountResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_preferable_account |
Yes |
unsignedLong |
No |
The unique ID of the frequently used account. |
|
DeletePreferableAccountRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_preferable_account |
Yes |
unsignedLong |
No |
The unique ID of the frequently used account. |
|
DeletePreferableAccountResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
success |
No |
int |
No |
One of the following: 1 – success, 0 – failed. |
|
get_preferable_account |
This method enables an API user to obtain information about the account’s Favourites list record |
Parameters |
GetPreferableAccountRequest |
Return Value |
GetPreferableAccountResponse |
Realm |
administrator, reseller, retail customer, account |
Standalone mode support |
Yes |
GetPreferableAccountRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_preferable_account |
Yes |
unsignedLong |
No |
The unique ID of the frequently used account. |
|
GetPreferableAccountResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
preferable_account_info |
No |
PreferableAccountInfo structure |
No |
Information about a frequently used account. |
|
GetPreferableAccountListRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
get_total |
No |
int |
No |
Get the total number of the retrieved frequently used accounts. |
|
group_name |
No |
string |
No |
The name used to group frequently used accounts. |
|
i_owner_account |
Yes |
unsignedLong |
No |
The unique ID of the owner account for a frequently used account. |
|
limit |
No |
int |
No |
The number of rows to retrieve. Mandatory for an API request with the offset property specified. |
Max value: 1000 Min value: 1 |
offset |
No |
int |
No |
The number of rows to skip at the beginning of the list. Requires the limit property to be specified in the API request. |
Max value: 4294967295 |
GetPreferableAccountListResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
preferable_account_list |
No |
Array of PreferableAccountInfo structure |
No |
The list of frequently used accounts. |
|
total |
No |
int |
No |
The number of the retrieved frequently used accounts. |
|
UpdatePreferableAccountRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
preferable_account_info |
Yes |
PreferableAccountInfo structure |
No |
Information about a frequently used account. |
|
UpdatePreferableAccountResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_preferable_account |
Yes |
unsignedLong |
No |
The unique ID of the frequently used account. |
|
Follow-me settings management
add_followme_number |
This method allows an API user to add a new follow-me entry (number) associated with an account. If successful, a new ID number is returned. Note: the newly added number becomes the last entry in the list of the account’s follow-me numbers |
Parameters |
AddFollowMeNumberRequest |
Return Value |
AddUpdateFollowMeNumberResponse |
Realm |
administrator, reseller, retail customer, account |
Standalone mode support |
No |
delete_followme_number |
This method allows an API user to delete an existing follow-me entry (number) associated with the account. It requires an ID number returned, for example, by the add_followme_number method |
Parameters |
DeleteFollowMeNumberRequest |
Return Value |
DeleteFollowMeNumberResponse |
Realm |
administrator, reseller, retail customer, account |
Standalone mode support |
No |
get_account_followme |
This method retrieves the follow-me settings associated with an account. Follow-me entries (numbers) are returned in the order of their priority |
Parameters |
GetAccountFollowMeRequest |
Return Value |
GetAccountFollowMeResponse |
Realm |
administrator, reseller, retail customer, account |
Standalone mode support |
Yes |
GetAccountFollowMeRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_account |
No |
unsignedLong |
No |
The unique ID of the account record. |
|
i_follow_me |
No |
unsignedLong |
No |
ID of the Follow_Me record. |
|
GetAccountFollowMeResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
default_followme_numbers_timeout |
No |
int |
No |
The default number of seconds to wait until a call is answered. |
|
followme_info |
No |
FollowMeInfo structure |
No |
Follow-me settings associated with the account. |
|
followme_numbers |
No |
Array of FollowMeNumberInfo structure |
No |
The list of follow-me numbers associated with the account. |
|
update_account_followme |
This method allows an API user to update the follow-me settings associated with an account. It does not add or update follow-me entries |
Parameters |
UpdateAccountFollowMeRequest |
Return Value |
UpdateAccountFollowMeResponse |
Realm |
administrator, reseller, retail customer, account |
Standalone mode support |
No |
UpdateAccountFollowMeRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
followme_info |
Yes |
FollowMeInfo structure |
No |
Follow-me settings associated with the account. |
|
i_account |
Yes |
unsignedLong |
No |
The unique ID of the account record. |
|
UpdateAccountFollowMeResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_follow_me |
Yes |
unsignedLong |
No |
The unique ID of the follow-me database record. |
|
update_followme_number |
This method allows an API user to update an existing follow-me entry (number) associated with an account. It requires an ID number returned, for example, by the add_followme_number method |
Parameters |
UpdateFollowMeNumberRequest |
Return Value |
AddUpdateFollowMeNumberResponse |
Realm |
administrator, reseller, retail customer, account |
Standalone mode support |
No |
update_followme_number_list |
This method allows an API user to update a list of follow-me entries (numbers) associated with an account. It requires an ID number to be returned, for example, by the add_followme_number method |
Parameters |
UpdateFollowMeNumberListRequest |
Return Value |
AddUpdateFollowMeNumberListResponse |
Realm |
administrator, reseller, retail customer, account |
Standalone mode support |
No |
Fraud condition management
get_account_state |
This method allows an administrator to obtain the current condition applied to the account by the Fraud Prevention feature (e.g. Active, Screened, Quarantined) |
Parameters |
GetAccountStateRequest |
Return Value |
GetAccountStateResponse |
Realm |
administrator |
Standalone mode support |
Yes |
GetAccountStateRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_acc_state_type |
No |
unsignedLong |
No |
The unique ID of the account state type: 1 – voice_fraud_suspicion. This property is mandatory if state_name and service_type are not specified. |
|
i_account |
Yes |
unsignedLong |
No |
The unique ID of the account record. |
|
service_type |
No |
string |
No |
The name of the service type. Possible values: INTERNAL, SESSION, VOICE, DATA, NETACCESS, QUANTITY, WIFI, DIALUP, MSG, CONFERENCE. This property is mandatory if i_acc_state_type is not specified. |
Possible values: INTERNAL, SESSION, VOICE, DATA, NETACCESS, QUANTITY, WIFI, DIALUP, MSG, CONFERENCE |
state_name |
No |
string |
No |
The name of the account state type. Possible value: voice_fraud_suspicion. This property is mandatory if i_acc_state_type is not specified. |
|
GetAccountStateResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
value |
No |
string |
No |
The state of the account. Posssible values: 0 – ACTIVE, 1 – SCREENED – Allow calls only via the Screening IVR, 2 – SCREENED – Allow calls only via the Screening IVR. A caller failed to validate that they are an authorized user once, 3 – SCREENED – Allow calls only via the Screening IVR. A caller failed to validate that they are an authorized user twice, 4 – SCREENED – Allow calls only via the Screening IVR. A caller failed to validate that they are an authorized user three times, 5 – QUARANTINED – Disallow all calls. |
|
set_account_state |
This method allows an administrator to change the account's condition for the Fraud Prevention feature (e.g. Active, Screened, Quarantined) |
Parameters |
SetAccountStateRequest |
Return Value |
SetAccountStateResponse |
Realm |
administrator |
Standalone mode support |
No |
SetAccountStateRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_acc_state_type |
No |
unsignedLong |
No |
The unique ID of the account state type: 1 – voice_fraud_suspicion This property is mandatory if state_name and service_type are not specified. |
|
i_account |
Yes |
unsignedLong |
No |
The unique ID of the account record. |
|
notify_users |
No |
int |
No |
Specifies whether the state change notification should be triggered for administrators (the notification for customers is always triggered). |
|
service_type |
No |
string |
No |
The name of the service type. Possible values: INTERNAL, SESSION, VOICE, DATA, NETACCESS, QUANTITY, WIFI, DIALUP, MSG, CONFERENCE. This property is mandatory if i_acc_state_type is not specified. |
Possible values: INTERNAL, SESSION, VOICE, DATA, NETACCESS, QUANTITY, WIFI, DIALUP, MSG, CONFERENCE |
state_name |
No |
string |
No |
The name of the account state type. Possible value: voice_fraud_suspicion service_type. This property is mandatory if i_acc_state_type is not specified. |
|
value |
Yes |
int |
No |
The state of the account. Possible values: 0 – ACTIVE; 1 – SCREENED – Allow calls only via the Screening IVR; 2 – SCREENED – Allow calls only via the Screening IVR. A caller failed to validate that they are an authorized user once; 3 – SCREENED – Allow calls only via the Screening IVR. A caller failed to validate that they are an authorized user twice; 4 – SCREENED – Allow calls only via the Screening IVR. A caller failed to validate that they are an authorized user three times; 5 – QUARANTINED – Disallow all calls. |
Max value: 5 |
SetAccountStateResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
success |
Yes |
int |
No |
Indicates whether the account's state setting was: 1 – successful, 0 – unsuccessful. |
|
IP device assigment management
assign_ua |
This method allows an API user to assign a UA to an account |
Parameters |
AssignUARequest |
Return Value |
AssignUAResponse |
Realm |
administrator, reseller |
Standalone mode support |
No |
AssignUARequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
config |
No |
string |
No |
Configuration parameters of UA. |
|
i_account |
Yes |
unsignedLong |
No |
The unique ID of the account record. |
|
i_ua |
Yes |
unsignedLong |
No |
ID of UA record. |
|
port |
Yes |
int |
No |
UA port used by this account. Note: if the type of UA is PortaPhone, the port field is not mandatory. |
Max value: 32 Min value: 1 |
AssignUAResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
success |
No |
int |
No |
1 in case of success, 0 in case of failure. |
|
get_ua_info |
This method allows an API user to get the information about the UA (IP phone) assigned to account |
Parameters |
GetAccountUAInfoRequest |
Return Value |
GetAccountUAInfoResponse |
Realm |
administrator, reseller |
Standalone mode support |
Yes |
GetAccountUAInfoRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_account |
Yes |
unsignedLong |
No |
The unique ID of the account record. |
|
i_customer |
No |
unsignedLong |
No |
The unique ID of the customer record. |
|
GetAccountUAInfoResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
ua_info |
No |
UAInfo structure |
No |
The information about the UA. |
|
release_ua |
This method allows an API user to release an account's UA |
Parameters |
ReleaseUARequest |
Return Value |
ReleaseUAResponse |
Realm |
administrator, reseller |
Standalone mode support |
No |
ReleaseUARequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_account |
No |
unsignedLong |
No |
The unique ID of the account. |
|
ReleaseUAResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
success |
No |
int |
No |
1 in case of success, 0 in case of failure. |
|
Information and statistics management
GetAccountProductInfoRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_account |
Yes |
unsignedLong |
No |
The unique ID of the account record. |
|
GetProductInfoResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
product_info |
Yes |
ProductInfo structure |
Yes |
Complete information about the product. |
|
GetMemberOfHuntgroupsList |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_account |
Yes |
unsignedLong |
No |
The unique ID of the account record. |
|
GetHGListInfoResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
huntgroup_list |
No |
Array of HGInfo structure |
No |
The list of huntgroups. |
|
total |
No |
int |
No |
Number of huntgroups. |
|
GetAccountMOHListInfoRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_account |
Yes |
unsignedLong |
No |
The unique ID of the account record. |
|
GetAccountMOHListInfoResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
moh_list_info |
No |
AccountMOHListInfo structure |
No |
Account MOH List object. |
|
GetAccountPermittedProxyInfoRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_account |
Yes |
unsignedLong |
No |
The unique ID of the account record. |
|
GetAccountPermittedProxyInfoResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
is_add_new_sip_proxy_allowed |
No |
int |
No |
Indicates whether the adding of a new proxy is allowed. |
|
permitted_sip_proxies |
No |
Array of PermittedSipProxiesInfo structure |
Yes |
The list of permitted SIP proxies. |
|
GetAccountSWXDRListRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
from_date |
Yes |
dateTime |
No |
Get xDRs with bill_time starting from this date. |
|
get_total |
No |
int |
No |
Get the total number of the retrieved xDRs. |
Max value: 1 |
history_pattern |
No |
string |
Yes |
Specifies whether to show xDRs with history that matches the pattern. |
|
i_account |
Yes |
unsignedLong |
No |
The unique ID of the account record. Not mandatory when the method that requires this structure is executed from the account realm. |
|
i_dest_group |
No |
unsignedLong |
No |
The unique ID of the destination group. |
|
limit |
No |
int |
No |
The number of rows to retrieve. Mandatory for an API request with the offset property specified. |
|
offset |
No |
int |
No |
The number of rows to skip at the beginning of the list. Requires the limit property to be specified in the API request. |
|
to_date |
Yes |
dateTime |
No |
Get XDRs with bill_time before this date. |
|
with_usage |
No |
int |
No |
Includes usage records to the retrieved XDRs list. |
|
GetAccountSWXDRListResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
total |
No |
int |
No |
The number of the retrieved xDRs. |
|
xdr_list |
No |
Array of ServiceWalletXDRInfo structure |
No |
Array of the account service wallet xDRs and taxes. |
|
GetAccountConsumedServiceRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
from_date |
No |
dateTime |
No |
Get information recorded starting from this date. |
|
get_total |
No |
int |
No |
Get the total number of the retrieved services. |
|
group_by_roaming |
No |
int |
No |
Group xDRs by their roaming status. |
|
i_account |
No |
unsignedLong |
No |
The unique ID of the account record. |
|
i_invoice |
No |
unsignedLong |
No |
Indicates what xDRs will be shown: nill – Midterm xDRs and out-of-turn xDRs; 0 – Out Of Turn xDRs; Not set – xDRs of all types. |
|
i_service |
No |
unsignedLong |
No |
The unique ID of the service record. |
|
limit |
No |
int |
No |
The number of rows to retrieve. Mandatory for an API request with the offset property specified. |
Default value: 50 |
offset |
No |
int |
No |
The number of rows to skip at the beginning of the list. Requires the limit property to be specified in the API request. |
|
show_unsuccessful |
No |
int |
No |
Show records of unsuccessful attempts. |
|
to_date |
No |
dateTime |
No |
Get information recorded before this date. |
|
GetAccountConsumedServiceResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
consumed_service_list |
No |
Array of ConsumedServiceInfo structure |
Yes |
The list of ConsumedServices records. |
|
total |
No |
int |
No |
The total number of the retrieved services. |
|
get_sip_status |
This method allows an API user to check if an account is currently being used by a SIP UA to register with the SIP server and retrieve registration information, such as the user agent’s identification or URI |
Parameters |
GetSipStatusRequest |
Return Value |
GetSipStatusResponse |
Realm |
administrator, reseller |
Standalone mode support |
Yes |
GetSipStatusRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_account |
Yes |
unsignedLong |
No |
The unique ID of the account record. |
|
GetSipStatusResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
additional_sip_info_list |
No |
Array of SipStatusInfo structure |
No |
Additional information about SIP UA registrations. |
|
sip_info |
No |
SipStatusInfo structure |
No |
Information about SIP UA registration. |
|
sip_status |
No |
int |
Yes |
1 - online (account is used by SIP UA to register with the SIP server), 0 - offline. |
|
GetAccountXDRListRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
cld |
No |
string |
No |
Calling line destination. |
|
cli |
No |
string |
No |
The calling party phone number. |
|
format |
No |
string |
No |
This parameter allows to get xDRs in other formats via SOAP attachment. Currently only the "csv" format is supported. |
|
from_date |
No |
dateTime |
No |
Get xDRs with bill_time starting from this date. |
|
get_split_xdrs |
No |
int |
No |
If set, split XDRs will be present in the response. |
|
get_total |
No |
int |
No |
Get the total number of the retrieved xDRs. |
|
h323_conf_id |
No |
string |
No |
The unique identifier of the call. |
|
history_pattern |
No |
string |
No |
Specifies whether to show xDRs with history that matches the pattern. |
|
i_account |
No |
unsignedLong |
No |
The unique ID of the account record. |
|
i_dest_group |
No |
unsignedLong |
No |
The unique ID of the destination group. |
|
i_service |
No |
unsignedLong |
Yes |
ID of Service, refer to Services table. |
|
i_service_type |
No |
unsignedLong |
No |
ID of the Service Type that can be used instead of i_service. |
|
limit |
No |
int |
Yes |
The number of rows to retrieve. |
|
offset |
No |
int |
Yes |
The number of rows to skip at the beginning of the list. |
|
roaming |
No |
int |
No |
Set this flag to filter xDRs by their roaming status. When it's not provided, all xDRs are obtained. |
|
show_unsuccessful |
No |
int |
No |
Show xDRs of unsuccessful attempts. |
|
to_date |
No |
dateTime |
No |
Get xDRs with bill_time before this date. |
|
with_cr_download_ids |
No |
int |
No |
If set, then each xDR will contain download ids to the recorded files if any. |
|
with_netaccess_usage |
No |
int |
No |
If set, then each netaccess xDR will contain 'bytes_downloaded' and 'bytes_uploaded' fields in the response. |
|
GetAccountXDRListResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
total |
No |
int |
No |
The number of the retrieved xDRs. |
|
xdr_list |
No |
Array of AccountXDRInfo structure |
No |
The list of XDRs. |
|
mark_xdr_out_of_turn |
This method allows an administrator to include a transaction on an out-of-turn invoice to be issued on demand |
Parameters |
MarkXdrOutOfTurnRequest |
Return Value |
MarkXdrOutOfTurnResponse |
Realm |
administrator, reseller |
Standalone mode support |
No |
MarkXdrOutOfTurnRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_xdr |
Yes |
unsignedLong |
No |
The unique ID of the XDR record. |
|
MarkXdrOutOfTurnResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
success |
Yes |
int |
No |
1 for success, 0 for failure. |
|
Location management
AddAllowedLocationRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
allowed_location_info |
No |
AllowedLocationInfo structure |
No |
Allowed location information. |
|
AddAllowedLocationResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_a_verified_locations |
Yes |
unsignedLong |
No |
The ID of the account's allowed location record. |
|
DeleteAllowedLocationRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_a_verified_locations |
Yes |
unsignedLong |
No |
The ID of the account's allowed location record. |
|
DeleteAllowedLocationResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
success |
No |
int |
No |
1 in case of success, 0 in case of failure. |
|
GetAllowedLocationListRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
get_total |
No |
int |
No |
Get the total number of the retrieved allowed locations. |
|
i_account |
Yes |
unsignedLong |
No |
The unique ID of the account record. |
|
limit |
No |
int |
No |
The number of rows to retrieve. |
|
offset |
No |
int |
No |
The number of rows to skip at the beginning of the list. |
|
GetAllowedLocationListResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
allowed_location_list |
No |
Array of AllowedLocationInfo structure |
No |
The list of the account's allowed locations. |
|
total |
No |
int |
No |
The number of the retrieved records. |
|
GetUsedLocationListRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
get_total |
No |
int |
No |
Get the total number of the retrieved used locations. |
|
group_by_ip |
No |
int |
No |
Group usage locations by their subscriber ip. |
|
i_account |
Yes |
unsignedLong |
No |
The unique ID of the account record. |
|
limit |
No |
int |
No |
The number of rows to retrieve. |
|
offset |
No |
int |
No |
The number of rows to skip at the beginning of the list. |
|
GetUsedLocationListResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
total |
No |
int |
No |
The number of the retrieved records. |
|
used_location_list |
No |
Array of UsedLocationInfo structure |
No |
The list of the account's allowed locations. |
|
UpdateAllowedLocationRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
allowed_location_info |
No |
AllowedLocationInfo structure |
No |
Allowed location information. |
|
UpdateAllowedLocationResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_a_verified_locations |
Yes |
unsignedLong |
No |
The ID of the account's allowed location record. |
|
Payment and topup management
DeleteAccountPaymentMethodRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_account |
Yes |
unsignedLong |
No |
ID of account record. |
|
DeleteAccountPaymentMethodResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
success |
Yes |
int |
No |
1 in case of success, 0 in case of failure. |
|
estimate_taxes |
This method allows an API user to show tax rates or calculate the tax for a list of xDRs |
Parameters |
AccountEstimateTaxesRequest |
Return Value |
AccountEstimateTaxesResponse |
Realm |
administrator, reseller, retail customer, account, distributor |
Standalone mode support |
Yes |
AccountEstimateTaxesRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
calc_taxes |
No |
int |
No |
Specifies whether to calculate the tax or just show tax rates Possible values: 0 or undefined – return tax rates; 1 – calculate the tax for the provided xDRs. |
|
i_account |
Yes |
unsignedLong |
No |
The unique ID of the account record. |
|
issue_date |
No |
dateTime |
No |
The date when transactions took place (xDRs were created). It is used only for the EZtax (formerly known as BillSoft EZtax) plug-in. The default value is 'now'. |
|
use_xdrs_from_db_up_to_date |
No |
dateTime |
No |
Get transactions (xDRs) from the database instead of xdr_list. The transactions for the period starting from the previous bill_to time to the specified time will be taken. Possible values: A specific date and time in the 'YYYYMM-DD HH24:MI:SS' format; 'now'. |
|
xdr_list |
No |
Array of EstimateTaxesXDRInfo structure |
No |
List of XDRs. |
|
AccountEstimateTaxesResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
taxes_list |
No |
Array of EstimatedTax structure |
No |
List of the estimated/calculated taxes. |
|
warnings |
No |
ArrayOfString |
No |
Returns procedure warnings if any. |
|
GetAccountPaymentMethodInfoRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
empty_if_not_configured |
No |
int |
No |
Set this flag to receive undef value if payment method not configured. When it's not provided error returns. |
|
i_account |
Yes |
unsignedLong |
No |
The unique ID of the account. |
|
GetAccountPaymentMethodInfoResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
payment_method_info |
No |
AccountPaymentMethodInfo structure |
No |
PaymentMethodInfo object. |
|
topup_account |
This method allows an API user to top up an account using voucher |
Parameters |
TopupAccountRequest |
Return Value |
TopupAccountResponse |
Realm |
administrator, reseller, retail customer, account |
Standalone mode support |
Yes |
TopupAccountRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
account_info |
Yes |
AccountInfo structure |
No |
Data about an account. Note: only i_account is used. |
|
use_debit_voucher |
No |
int |
Yes |
Specifies whether to use another prepaid card to recharge an account (both accounts must have the same main product assigned). Possible values: 1 – Use prepaid card, 0 – Use voucher. |
|
voucher_info |
Yes |
VoucherInfo structure |
No |
The information about a voucher. |
|
TopupAccountResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
amount |
Yes |
float |
No |
Amount by which the account's balance will increase. |
|
available_funds |
No |
float |
No |
For debit accounts, this is equal to the h323-credit-amount. For credit accounts, this returns the actual amount of available funds (the difference between the credit limit and the current balance with respect to the credit limits for the individual account and customer). This field is not present in the response for accounts with the unlimited available funds. |
|
balance |
Yes |
float |
No |
The current amount of the account's balance. |
|
billing_model |
Yes |
string |
No |
Shows the account type. |
|
breakage |
Yes |
float |
Yes |
The breakage amount of the account's product. |
|
credit_limit |
Yes |
float |
Yes |
The account's credit limit value. |
|
currency |
Yes |
string |
No |
Shows the account currency. |
|
customer_balance |
Yes |
float |
No |
The customer's balance. |
|
customer_credit_limit |
Yes |
float |
Yes |
The customer's credit limit value. |
|
update_payment_method |
This method allows an API user to assign a preferred payment method to an account. For online payment methods, all the information required by the payment processor should be provided, and an appropriate payment processor must be set up and properly configured beforehand |
Parameters |
UpdateAccountPaymentMethodRequest |
Return Value |
UpdateAccountPaymentMethodResponse |
Realm |
administrator, reseller, retail customer, account |
Standalone mode support |
No |
UpdateAccountPaymentMethodRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_account |
Yes |
unsignedLong |
No |
The unique ID of the account. |
|
payment_method_info |
Yes |
AccountPaymentMethodInfo structure |
No |
Data about payment method. |
|
UpdateAccountPaymentMethodResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_credit_card |
Yes |
unsignedLong |
Yes |
ID of modified payment method record. |
|
Phonebook management
AddUpdatePhoneBookRecordRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
phonebook_rec_info |
No |
PhoneBookRecInfo structure |
No |
Phonebook record data. |
|
AddUpdatePhoneBookRecordResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_account_phonebook |
No |
unsignedLong |
Yes |
The unique ID of the PhoneBook's record. |
|
DeletePhoneBookRecordRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_account_phonebook |
No |
unsignedLong |
No |
The unique ID of the Phone book record. |
|
DeletePhoneBookRecordResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
success |
No |
int |
No |
One of the following: 1 – success, 0 – failed. |
|
estimate_call_price |
This method allows an API user to see the price for calls to a specific destination (e.g. to a number from a user’s contact list) with applicable volume discounts |
Parameters |
AccountEstimateCallPriceRequest |
Return Value |
AccountEstimateCallPriceResponse |
Realm |
administrator, reseller, distributor, account, retail customer, cc staff |
Standalone mode support |
Yes |
AccountEstimateCallPriceRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_account |
No |
unsignedLong |
No |
The unique ID of the owner account. |
|
number |
Yes |
string |
No |
A number to estimate the call price for. |
Min value: 1 |
rating_context |
No |
string |
No |
An abstract string with rating context information. For example: 'i_service_type=3,i_node=1,accessCode=ANY, selectCode=ANY,oliCode=ANY'. |
|
AccountEstimateCallPriceResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
call_price_info |
Yes |
EstimatedCallPriceInfo structure |
No |
The information about the estimated call price. |
|
get_phonebook_list |
This method allows an API user to obtain the list of the account's Phonebook records |
Parameters |
GetPhoneBookListRequest |
Return Value |
GetPhoneBookListResponse |
Realm |
administrator, reseller, retail customer, account |
Standalone mode support |
Yes |
GetPhoneBookListRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
get_total |
No |
int |
No |
Get the total number of Phone book records. |
|
i_account |
Yes |
unsignedLong |
No |
The unique ID of the owner account. Not mandatory when the method that requires this structure is executed from the account realm. |
|
limit |
Yes |
int |
No |
Limit of Phonebook records (the maximum quantity of Phonebook records, number of rows to retrieve). |
|
offset |
Yes |
int |
No |
Starting position for a Phonebook list (number of rows to skip at the beginning of the list). |
|
phone_number_pattern |
No |
string |
No |
Phone Number Pattern (default is %). |
|
GetPhoneBookListResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
phonebook_rec_list |
No |
Array of PhoneBookRecInfo structure |
No |
The list of Phonebook records. |
|
total |
No |
int |
No |
The total number of Phone book records. |
|
GetPhoneBookRecordRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_account_phonebook |
Yes |
unsignedLong |
No |
The unique ID of the Phonebook’s record. |
|
GetPhoneBookRecordResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
phonebook_rec_info |
No |
PhoneBookRecInfo structure |
Yes |
Phonebook record data. |
|
SIM card management
assign_sim_card |
This method enables an API user to assign a SIM card from the SIM card inventory to an account |
Parameters |
AssignSIMCardRequest |
Return Value |
AssignSIMCardResponse |
Realm |
administrator, reseller |
Standalone mode support |
No |
AssignSIMCardRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_account |
Yes |
unsignedLong |
No |
The ID of the account record. |
|
i_sim_card |
Yes |
unsignedLong |
No |
The ID of the SIM card record. |
|
AssignSIMCardResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
success |
Yes |
int |
No |
Returns 1 if the SIM card was assigned to an account. |
|
release_sim_card |
This method enables an API user to release a previously assigned SIM card from an account |
Parameters |
ReleaseSIMCardRequest |
Return Value |
ReleaseSIMCardResponse |
Realm |
administrator, reseller |
Standalone mode support |
No |
ReleaseSIMCardRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_account |
Yes |
unsignedLong |
No |
The ID of the account record. |
|
ReleaseSIMCardResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
success |
Yes |
int |
No |
Returns 1 if the SIM card was successfully released. |
|
Service features management
GetAccountServiceFeaturesRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_account |
Yes |
unsignedLong |
No |
The unique ID of the account record. |
|
GetAccountServiceFeaturesResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
service_features |
No |
Array of ServiceFeatureInfo structure |
Yes |
The list of service features. |
|
UpdateAccountServiceFeaturesRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
detailed_response |
No |
int |
No |
Specifies whether a list of Service Features will be returned in the response or not. |
|
i_account |
No |
unsignedLong |
No |
The unique ID of the account. |
|
service_features |
No |
Array of ServiceFeatureInfo structure |
Yes |
The list of service features. |
|
UpdateAccountServiceFeaturesResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_account |
No |
unsignedLong |
No |
The unique ID of the account. |
|
service_features |
No |
Array of ServiceFeatureInfo structure |
No |
The list of service features. |
|
Subscription management
activate_subscriptions |
This method allows an API user to instantly activate an accounts's pending subscriptions, where the start date is less than or equal to today's date (in the customer’s time zone). An activation fee will be charged for each subscription, if applicable |
Parameters |
ActivateAccountSubscriptionsRequest |
Return Value |
ActivateAccountSubscriptionsResponse |
Realm |
administrator, reseller |
Standalone mode support |
No |
ActivateAccountSubscriptionsRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_account |
Yes |
unsignedLong |
No |
The unique ID of the account. |
|
ActivateAccountSubscriptionsResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
success |
Yes |
int |
No |
1 in case of success, 0 in case of failure. |
|
AddAccountSubscriptionRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_account |
Yes |
unsignedLong |
No |
The unique ID of the account. |
|
subscription_info |
Yes |
AccountSubscriptionInfo structure |
No |
Note: i_account_subscription will be ignored; i_subscription is a mandatory field, and must be unique among all of the account's pending and active subscriptions. |
|
AddUpdateAccountSubscriptionResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_account_subscription |
Yes |
unsignedLong |
No |
The unique ID of the created/modified account subscription record. |
|
ChargeAccountSubscriptionFeesRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_account |
Yes |
unsignedLong |
No |
The unique ID of the account record to be charged. |
|
immediately_in_advance |
No |
int |
No |
Amount of periods that should be charged in advance. |
Max value: 50 Min value: 1 |
ChargeAccountSubscriptionFeesResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
success |
Yes |
int |
No |
1 in case of success, 0 in case of failure. |
|
close_subscription |
This method allows an API user to close an existing active subscription associated with an account. It requires an ID number returned, for example, by the add_subscription method |
Parameters |
CloseDeleteAccountSubscriptionRequest |
Return Value |
CloseAccountSubscriptionResponse |
Realm |
administrator, reseller |
Standalone mode support |
No |
CloseDeleteAccountSubscriptionRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_account_subscription |
Yes |
unsignedLong |
No |
The unique ID of the account's subscription record to be closed / deleted. |
|
CloseAccountSubscriptionResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_account_subscription |
Yes |
unsignedLong |
No |
The unique ID of the account’s subscription record. |
|
DeleteAccountSubscriptionResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
success |
Yes |
int |
No |
1 in case of success, 0 in case of failure. |
|
GetAccountSubscriptionsRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_account |
Yes |
unsignedLong |
No |
The unique ID of the account. |
|
update_subscription |
This method allows an API user to update an existing subscription record associated with an account. It requires an ID number returned, for example, by the add_subscription method |
Parameters |
UpdateAccountSubscriptionRequest |
Return Value |
AddUpdateAccountSubscriptionResponse |
Realm |
administrator, reseller, retail customer, account |
Standalone mode support |
No |
UpdateAccountSubscriptionRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_account |
Yes |
unsignedLong |
No |
The unique ID of the account. |
|
i_account_subscription |
Yes |
unsignedLong |
No |
The unique ID of the account subscription record to be updated. |
|
subscription_info |
Yes |
AccountSubscriptionInfo structure |
No |
Note: i_account_subscripti on and i_subscription will be ignored. |
|
Transaction management
GetAccountTransactionsTotalInfoRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
billing_model |
No |
int |
No |
Specifies the account type for which to show transactions; one of the following: -1 – Debit account; 1 – Credit account. |
|
cld |
No |
string |
No |
The called party phone number. |
|
cli |
No |
string |
No |
The calling party phone number. |
|
from_date |
Yes |
dateTime |
No |
Get transactions made after this date. |
|
i_account |
Yes |
unsignedLong |
No |
The unique ID of the account record. |
|
i_service |
No |
unsignedLong |
Yes |
The unique ID of the Service record; refers to the Services table. |
|
show_unsuccessful |
No |
int |
No |
Show the records of unsuccessful attempts. The field applies only to the admin realm. |
|
to_date |
Yes |
dateTime |
No |
Get transactions made before this date. |
|
GetAccountTransactionsTotalInfoResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
count |
No |
int |
No |
The total number of transactions. |
|
iso_4217 |
No |
string |
No |
Transactions currency. |
|
per_service_info |
No |
Array of AccountPerServiceInfo structure |
Yes |
The list of objects containing information on per-service basis. |
|
sessions_count |
No |
int |
No |
The total number of sessions. |
|
total_amount |
No |
float |
No |
Total transactions amount. |
|
total_info |
No |
Array of TotalTransInfo structure |
No |
The list of per-service total values. |
|
make_transaction |
This method allows an API user to adjust an account's balance or issue a payment transaction, including e-commerce transactions |
Parameters |
MakeAccountTransactionRequest |
Return Value |
MakeAccountTransactionResponse |
Realm |
administrator, reseller, retail customer, account, cc staff, distributor |
Standalone mode support |
No |
MakeAccountTransactionRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
action |
Yes |
string |
No |
Possible values: Manual Charge, Manual Credit, Manual Payment, Promotional Credit, E-Commerce Payment, E-Commerce Refund, Authorization Only, Capture Payment, Transfer Funds. |
|
amount |
Yes |
float |
No |
Amount by which the customer's balance will increase / decrease. The number of digits depends on the maximum number of decimal places allowed by the currency. Note: for a manual charge transaction applied to a debit account, the amount must not exceed the account's balance. |
|
card_info |
No |
AccountPaymentMethodInfo structure |
No |
Payment Method information for this transaction. |
|
date_inside_billing_period |
No |
date |
No |
A date associated with the manual charge/credit transaction. For example, you can specify a date for a manual credit transaction for when an account was credited. |
|
datetime_inside_billing_period |
No |
dateTime |
No |
A date and time associated with the manual charge/credit. For example, you can specify a date for manual credit action for when an item is credited. |
|
enable_balance_fraud_protection |
No |
int |
No |
Indicates whether to perform balance fraud checks to make sure the charged amount never exceeds the available balance. |
|
h323_conf_id |
No |
string |
No |
Optional unique ID of the transaction generated by an external system. For example, if your external application generates unique IDs for transactions made via API and you want to keep these IDs in PortaBilling, then pass them in this field. |
Max value: 36 |
i_account |
Yes |
unsignedLong |
No |
The unique ID of the account record. |
|
i_service |
No |
unsignedLong |
No |
The unique ID of the Service record; refers to the Services table. |
|
internal_comment |
No |
string |
No |
An internal comment on this transaction; not visible in the xDR browser, and accessible only directly from the database. |
Max value: 200 |
recipient_id |
No |
int |
No |
The unique ID of the recipient account record for transactions between accounts. |
|
save_card |
No |
string |
No |
Indicates whether the supplied payment method should be saved as preferred. |
Default value: N Possible values: Y, N |
suppress_notification |
No |
int |
No |
1 - do not send email notifications to the customer, 0 - send the notifications. |
|
transaction_id |
No |
string |
No |
Applicable to Capture payment and E-Commerce refund transactions. Must contain the ID of a previously issued Authorization only / E-commerce payment transaction. |
Max value: 32 |
visible_comment |
No |
string |
No |
A comment on this transaction visible in the xDR browser. |
|
MakeAccountTransactionResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
authorization |
No |
string |
No |
E-Commerce authorization code. |
|
balance |
Yes |
float |
No |
Modified account balance. |
|
i_payment_transaction |
No |
unsignedLong |
No |
The unique ID of the transaction. |
|
i_xdr |
No |
unsignedLong |
No |
The unique ID of the XDR record. |
|
result_code |
No |
string |
No |
E-Commerce operation result code. |
|
transaction_id |
No |
string |
No |
E-Commerce transaction ID. |
|
AccountRegisterTransactionRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
amount |
Yes |
float |
No |
The amount for payment. |
|
i_account |
No |
unsignedLong |
No |
Unique ID of the Account for which a transaction will be registered. |
|
i_payment_method |
Yes |
unsignedLong |
No |
Unique ID of the chosen Payment Method. |
|
AccountRegisterTransactionResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
transaction |
No |
TransactionInfo structure |
No |
The information about the transaction. |
|
Volume discount management
GetAccountFullVDCounterListInfoRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_account |
Yes |
unsignedLong |
No |
The unique ID of the account record. Not mandatory when the method that requires this structure is executed from the account realm. |
|
separate_units |
No |
int |
No |
Specifies whether to provide threshold values and discount amount units (e.g., minutes) in a separate field. |
|
with_discount_info |
No |
int |
No |
Specifies whether to provide the discount information of a counter. |
|
with_service_pool_info |
No |
int |
No |
Specifies whether to provide service pool information of counter. |
|
GetFullVDCounterListInfoResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
counter_list |
No |
Array of FullCounterInfo structure |
Yes |
Array of full counter objects. |
|
GetAccountVDCounterListRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
detailed_info |
No |
int |
Yes |
Detailed information. |
|
dg_name |
No |
string |
No |
Destination group name pattern. |
|
i_account |
Yes |
unsignedLong |
No |
The unique ID of the account record. |
|
peak_level |
No |
int |
No |
ID of the Peak Level (0 - Peak Period, 1 - Off-Peak Period, 2 - 2nd Off-Peak Period). |
Possible values: 0, 1, 2 |
service_name |
No |
string |
No |
Service name pattern. |
|
GetAccountVDCounterListResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
counter_list |
No |
Array of CounterInfo structure |
Yes |
Array of counter objects. |
|
vd_topup |
This method allows an administrator to top-up the volume of a service (e.g. free minutes or gigabytes) provided to an end-user (account) with the discount |
Parameters |
AccountVDTopupRequest |
Return Value |
VDTopupResponse |
Realm |
administrator, reseller, retail customer, account |
Standalone mode support |
No |
AccountVDTopupRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
addon_priority |
No |
int |
No |
The add-on product's precedence level. If there are more than one add-on products assigned to an account they will be sorted according to the specified precedence level. Possible values: 0 – Main product, 10 – Low, 15 – Medium low, 20 – Medium, 25 – Medium high, 30 – High. |
Default value: 255 |
h323_conf_id |
No |
string |
No |
Custom data for third-party application processing. |
Max value: 255 |
i_account |
Yes |
unsignedLong |
No |
The unique ID of the account record. Not mandatory when the method that requires this structure is executed from the account realm. |
|
i_dest_group |
Yes |
unsignedLong |
No |
The unique ID of the destination group to apply the top-up to. |
|
i_service |
Yes |
unsignedLong |
No |
The unique ID of the destination group to apply the top-up to. |
Min value: 1 |
payment_info |
No |
AccountPaymentInfo structure |
No |
The payment information. |
|
peak_level |
Yes |
int |
No |
Possible values: 0 – The peak period; 1 – The off-peak period; 2 – The 2nd off-peak period. |
Possible values: 0, 1, 2 |
topup_amount |
Yes |
int |
No |
The top-up amount. |
|
topup_expires |
No |
dateTime |
No |
A date and time in the UTC format when the topped up volume discount becomes expired (YYYY-MM-DD HH24:MI:SS). |
Min value: current date and time |
voucher_info |
No |
VoucherInfo structure |
No |
The information about a voucher. |
|
VDTopupResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
counter_info |
No |
FullCounterInfo structure |
No |
The volume discount counter. See the FullCounterInfo structure in the Customer Information section. |
|
ACL system
SOAP URI (namespace): https://portabilling-web.yourdomain.com/Porta/SOAP/ACL
ACL management
get_acl_list |
This method allows an API user to get the list of ACL |
Parameters |
GetAclListRequest |
Return Value |
GetAclListResponse |
Realm |
administrator, reseller |
Standalone mode support |
Yes |
GetAclListRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
group |
No |
string |
No |
The name of ACL group to search. |
Max value: 32 |
limit |
No |
int |
No |
The number of rows to retrieve. Mandatory for an API request with the offset property specified. |
|
name |
No |
string |
No |
Search ACL by name. |
Max value: 64 |
offset |
No |
int |
No |
The number of rows to skip at the beginning of the list. Requires the limit property to be specified in the API request. |
Max value: 4294967295 |
subsystem |
No |
string |
No |
The name of subsystem ACL belongs to. |
Max value: 32 |
type |
No |
string |
No |
Type of ACL to search. Possible values: Component, User, Customer, CC Staff, Account, Vendor, Representative, Reseller, Distributor. |
Possible values: Component, User, Customer, CC Staff, Account, Vendor, Representative, Reseller, Distributor |
with_i_acl |
No |
unsignedLong |
No |
If the entity has customized default ACL (instead of the predefined one), specify the unique ID of this customized default ACL here. Then it will be included to the list. |
|
GetAclListResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
acl_list |
Yes |
Array of AclInfo structure |
No |
The list of ACL records. |
|
total |
No |
int |
No |
The total number of found ACLs. |
|
get_my_permissions_for_objects |
This method allows an API user to get a list of ACL permissions for specific objects on the PortaBilling web interface |
Parameters |
GetMyAclForObjectsRequest |
Return Value |
GetMyAclForObjectsResponse |
Realm |
administrator, reseller, retail customer, account, cc staff, representative, distributor |
Standalone mode support |
Yes |
GetMyAclForObjectsRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
objects |
Yes |
Array of string structure |
No |
A list of web interface objects for which the ACL permissions will be collected (e.g. selfcare, WebForms, etc.). |
|
GetMyAclForObjectsResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
access_level |
No |
AccessLevelInfo structure |
No |
The information about the ACL permissions. |
|
Asynchronous request information
SOAP URI (namespace): https://portabilling-web.yourdomain.com/Porta/SOAP/AsyncRequest
API notification management
DisableAsyncApiNotificationsRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
Does not include any properties |
DisableAsyncApiNotificationsResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
success |
Yes |
int |
No |
A non-zero value means that the operation has been successful. |
|
EnableAsyncApiNotificationsRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
Does not include any properties |
EnableAsyncApiNotificationsResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
success |
Yes |
int |
No |
A non-zero value means that the operation has been successful. |
|
Asynchronous request management
GetAsyncRequestInfoRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_async_request |
Yes |
unsignedLong |
No |
The unique ID of the request. |
|
GetAsyncRequestInfoResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
request_info |
No |
AsyncRequestInfo structure |
No |
The asynchronous request info. |
|
get_request_list |
This method enables getting the list of async requests |
Parameters |
GetAsyncRequestListRequest |
Return Value |
GetAsyncRequestListResponse |
Realm |
administrator, reseller, distributor, cc staff, representative, retail customer, account |
Standalone mode support |
No |
Mode |
Syncronous only |
GetAsyncRequestListRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
Does not include any properties |
GetAsyncRequestListResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
request_list |
No |
Array of AsyncRequestInfo structure |
No |
A set of asynchronous request records. |
|
Authorization rule information
SOAP URI (namespace): https://portabilling-web.yourdomain.com/Porta/SOAP/AuthzRule
Authorization rule management
add_authz_rule |
This method allows an API user to define manual authentication rules allowing PortaSIP servers to handle incoming calls in the desired manner |
Parameters |
AddUpdateAuthzRuleRequest |
Return Value |
AddUpdateAuthzRuleResponse |
Realm |
administrator |
Standalone mode support |
No |
AddUpdateAuthzRuleRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
authz_rule_info |
Yes |
AuthzRuleInfo structure |
No |
Authentication rule data. |
|
override_autogenerated |
No |
int |
No |
Specifies whether to override existing autogenerated rules: 1 – if an autogenerated rule for this IP address already exists, override it by the new manual rule, 0 – if an autogenerated rule for this IP address already exists, throw SOAP fault 'duplicate ip pattern'. |
|
AddUpdateAuthzRuleResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_authz_rule |
No |
unsignedLong |
No |
The unique ID of the created authentication rule. |
|
DeleteAuthzRuleRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_authz_rule |
Yes |
unsignedLong |
No |
The unique ID of the authentication rule record to delete. |
|
DeleteAuthzRuleResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
success |
Yes |
int |
No |
1 in case of success, 0 in case of failure. |
|
get_authz_rule_list |
This method allows an API user to get a list of authentication rules that show how PortaSIP servers handle incoming calls. An authentication rule combines an authorization method and call parameters |
Parameters |
GetAuthzRuleListRequest |
Return Value |
GetAuthzRuleListResponse |
Realm |
administrator |
Standalone mode support |
No |
GetAuthzRuleListRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
auto_link_type |
No |
string |
Yes |
The entity for which to show the rules: No value specified for this property – Retreive all existing rules. Empty string – Retrieve manually specified rules. Accounts – Retrieve autogenerated rules for accounts. Connections – Retrieve autogenerated rules for connections. |
Possible values: , Accounts, Connections |
GetAuthzRuleListResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
authz_rule_list |
Yes |
Array of AuthzRuleInfo structure |
Yes |
A list of authentication rules found. |
|
update_authz_rule |
This method allows an API user to update manual authentication rules to change how PortaSIP servers handle incoming calls |
Parameters |
AddUpdateAuthzRuleRequest |
Return Value |
AddUpdateAuthzRuleResponse |
Realm |
administrator |
Standalone mode support |
No |
Billing sessions information
SOAP URI (namespace): https://portabilling-web.yourdomain.com/Porta/SOAP/BillingSession
Billing session management
DisconnectSessionRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
billing_session_id |
No |
string |
No |
The h323-conf-id of the session. |
Max value: 36 Min value: 1 |
service_session_id |
No |
string |
No |
The call-id of the session. |
Max value: 100 Min value: 1 |
DisconnectSessionResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
success |
Yes |
int |
No |
1 in case of success. |
|
get_active_calls_list |
This method allows an API user to get the list of active calls |
Parameters |
GetActiveCallsRequest |
Return Value |
GetActiveCallsResponse |
Realm |
administrator, reseller, retail customer, account |
Standalone mode support |
Yes |
GetActiveCallsRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
actual |
No |
string |
No |
Return only actual records. |
Default value: N Possible values: Y, N |
i_account |
No |
unsignedLong |
No |
The unique ID of the account. |
|
i_customer |
No |
unsignedLong |
No |
The unique ID of the customer. |
|
limit |
No |
int |
No |
The number of rows to retrieve. Mandatory for an API request with the offset property specified. |
Min value: 1 |
offset |
No |
int |
No |
The number of rows to skip at the beginning of the list. Requires the limit property to be specified in the API request. |
Max value: 4294967295 |
GetActiveCallsResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
active_calls_list |
Yes |
Array of ActiveCallInfo structure |
Yes |
The list of active calls. |
|
GetActiveSessionsRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
account_id |
No |
string |
No |
The ID (PIN) of the account on the PortaBilling interface, unique in the environment. |
Max value: 128 |
call_id |
No |
string |
No |
The call-id of the session. |
Max value: 100 |
cld |
No |
string |
No |
The called line phone number. |
Max value: 128 |
cli |
No |
string |
No |
The calling line phone number. |
Max value: 128 |
get_total |
No |
int |
No |
Get the total number of the retrieved active session records. |
|
h323_conf_id |
No |
string |
No |
The h323-conf-id of the session. |
Max value: 36 |
hotlined |
No |
string |
No |
The flag that shows whether the session is hotlined (Internet sessions only). |
Possible values: Y, N |
i_connection |
No |
unsignedLong |
No |
The unique ID of the connection. |
|
i_customer |
No |
unsignedLong |
No |
The unique ID of the customer record. |
|
i_node |
No |
unsignedLong |
No |
The unique ID of the node. |
|
i_parent |
No |
unsignedLong |
No |
Omit for a direct customer; i_customer of the reseller for a subcustomer. |
|
i_service_type |
No |
unsignedLong |
No |
The unique ID of the service type. |
|
i_vendor |
No |
unsignedLong |
No |
The unique ID of the vendor record. |
|
limit |
No |
int |
No |
The number of rows to retrieve. Mandatory for an API request with the offset property specified. |
|
offset |
No |
int |
No |
The number of rows to skip at the beginning of the list. Requires the limit property to be specified in the API request. |
|
source_ip |
No |
string |
No |
The IP address of the entity. |
Max value: 15 Min value: 7 |
with_cld_country |
No |
int |
No |
Specifies whether the information about country and subdivision of CLD should be included in the response. |
|
with_nodes |
No |
int |
No |
Specifies whether the information about used nodes should be included in the response. |
|
with_resale_hierarchy |
No |
int |
No |
Specifies whether the information about the resellers hierarchy should be included in the response. |
|
GetActiveSessionsResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
active_session_list |
No |
Array of ActiveSessionInfo structure |
No |
The list of active sessions. |
|
total |
No |
int |
No |
The total number of the retrieved sessions. |
|
Call recording management
ManageActiveCallRecordingRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
call_id |
Yes |
string |
No |
The unique ID of the call. |
|
command |
Yes |
string |
No |
Allows you to start or stop call recording. One of the following: stop; start. |
Possible values: start, stop |
ManageActiveCallRecordingResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
cld_status |
Yes |
string |
No |
Callee part call recording start/stop status; enum [
FAILED - some errors happened during attempt to enabled/disable recording;
DENIED - action isn't allowed according to BE data;
OK - action processed successfully ]. |
|
cli_status |
Yes |
string |
No |
Caller part call recording start/stop status; enum [
FAILED - some errors happened during attempt to enabled/disable recording;
DENIED - action isn't allowed according to BE data;
OK - action processed successfully ]. |
|
Internet session management
AddDisconnectQueueRecordRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
account_id |
Yes |
string |
No |
Account number. |
Max value: 64 |
at_time |
No |
dateTime |
No |
Time when status should be applied. Default: current time. |
|
i_node |
No |
unsignedLong |
No |
Unique ID of Nodes record (should be POD server). |
Min value: 1 |
i_service_type |
No |
unsignedLong |
No |
The unique ID of the related service type. Default: 6 (NETACCESS). |
Default value: 6 Min value: 2 |
param1 |
No |
string |
No |
Formatted disconnector parameters string. |
Max value: 255 |
session_id |
No |
string |
No |
ID of the session to work with. |
Max value: 36 |
tx_expire |
No |
dateTime |
No |
Expiration time. |
|
AddDisconnectQueueRecordResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_pod |
Yes |
unsignedLong |
No |
The unique ID of the disconnect request. Refers to the DisconnectQuery table. |
|
Brand pane information
SOAP URI (namespace): https://portabilling-web.yourdomain.com/Porta/SOAP/BrandPane
Brand pane management
get_brand_pane_zip |
This method allows an API user to get the brandpane template and css files. The brandpane-related files are returned in a MIME attachment |
Parameters |
GetBrandPaneRequest |
Return Value |
GetBrandPaneResponse |
Realm |
administrator, reseller, retail customer, account |
Standalone mode support |
Yes |
GetBrandPaneRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
env |
Yes |
unsignedLong |
No |
This property represents environments. It must be 'default' (for an unspecified environment) or the i_env number. |
|
realm |
Yes |
string |
No |
Realm name as in the configuration (admin, accounts, cc_staff, customer, vendor, representative, etc.). |
Possible values: admin, customer, accounts, cc_staff, vendor, representative |
GetBrandPaneResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
css_file_name |
No |
string |
No |
A path (relative to /home/porta-admin directory) to the brandpane's style – CSS file (e.g. /brandpane/env_3/accounts/brandpane.css). |
|
html_file_name |
No |
string |
No |
A path (relative to /home/porta-admin directory) to the brandpane’s template – HTML file named 'brandpane.tmpl' (e.g. /brandpane/env_3/accounts/brandpane.tmpl). |
|
Bundle promotion information
SOAP URI (namespace): https://portabilling-web.yourdomain.com/Porta/SOAP/BundlePromotion
Bundle promotion management
Criterium management
AddUpdateCriterionRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
criterion_info |
Yes |
CriterionInfo structure |
No |
The information about the bundle promotion criteria. The i_bd_criteria parameter is mandatory for the update_criterion method. |
|
AddUpdateCriterionResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_bd_criteria |
No |
unsignedLong |
No |
The unique ID of the bundle promotion criterion. |
|
DeleteCriterionRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_bd_criteria |
Yes |
unsignedLong |
No |
The unique ID of the bundle promotion criterion. |
|
DeleteCriterionResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
success |
Yes |
int |
No |
Possible values: 1 – The bundle promotion criteria are successfully deleted. 0 – The bundle promotion criteria have not been deleted. |
|
GetCriteriaListRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
get_total |
No |
int |
No |
Specifies whether to show the total number of criteria found. Then, even if, e.g. the limit property is specified, the total number of criteria that satisfy other conditions will be shown. |
|
i_bd_plan |
Yes |
unsignedLong |
No |
The unique ID of the Bundle Promotion Plan. |
|
limit |
No |
int |
No |
The number of rows to retrieve. Mandatory for an API request with the offset property specified. |
|
offset |
No |
int |
No |
The number of rows to skip at the beginning of the list. Requires the limit property to be specified in the API request. |
|
with_thresholds |
No |
int |
No |
Specifies whether to show the list of thresholds associated with the criteria. 1 – Show the the list of thresholds. 0 – Do not show the list of thresholds. |
|
GetCriteriaListResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
criteria_list |
Yes |
Array of CriterionInfo structure |
Yes |
The list of Bundle Discount Criteria found. |
|
total |
No |
int |
No |
The total number of Criteria found. |
|
GetCriterionRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_bd_criteria |
Yes |
unsignedLong |
No |
The unique ID of the bundle promotion criteria. |
|
with_thresholds |
No |
int |
No |
Specifies whether to show the list of thresholds associated with the criteria. Possible values: 1 – Show the the list of thresholds. 0 – Do not show the list of thresholds. |
|
GetCriterionInfoResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
criterion_info |
No |
CriterionInfo structure |
Yes |
The information about the bundle promotion criterion. |
|
Call barring information
SOAP URI (namespace): https://portabilling-web.yourdomain.com/Porta/SOAP/CallBarring
Call barring class management
AddCallBarringClassRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
call_barring_class_info |
Yes |
CallBarringClassInfo structure |
No |
Information about the call barring class. |
|
AddCallBarringClassResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_cp_condition |
Yes |
unsignedLong |
No |
The unique ID of the call barring class. |
|
DeleteCallBarringClassRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_cp_condition |
Yes |
unsignedLong |
No |
The unique ID of the call barring class. |
|
DeleteCallBarringClassResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
success |
Yes |
int |
No |
1 for success, exception error message in case of failure. |
|
GetCallBarringClassInfoRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
check_usage |
No |
int |
No |
Check whether the call barring class is in use. |
|
i_cp_condition |
Yes |
unsignedLong |
No |
The unique ID of the call barring class. |
|
GetCallBarringClassInfoResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
call_barring_class_info |
No |
CallBarringClassInfo structure |
No |
Information about a call barring class. |
|
GetCallBarringClassListRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
check_usage |
No |
int |
No |
Check whether the call barring class is in use. |
|
get_total |
No |
int |
No |
Get the total number of records in the DB. |
|
limit |
No |
int |
No |
The number of rows to retrieve. Mandatory for an API request with the offset property specified. |
|
matching_type |
No |
string |
No |
The mode of number selection for the call barring class. Possible values: 'excluding' - bar numbers that do not fit the patterns defined in the number_pattern_list, 'including' - bar numbers that fit the patterns defined in the number_pattern_list. |
Possible values: excluding, including |
name |
No |
string |
No |
Call barring class name. |
|
number |
No |
string |
No |
The call barring class number pattern. |
|
offset |
No |
int |
No |
The number of rows to skip at the beginning of the list. |
|
GetCallBarringClassListResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
call_barring_class_list |
No |
Array of CallBarringClassInfo structure |
No |
A list of call barring classes. |
|
total |
No |
int |
No |
The total number of retrieved records. |
|
UpdateCallBarringClassRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
call_barring_class_info |
Yes |
CallBarringClassInfo structure |
No |
Information about the call barring class. |
|
UpdateCallBarringClassResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_cp_condition |
Yes |
unsignedLong |
No |
The unique ID of the call barring class. |
|
CDR information
SOAP URI (namespace): https://portabilling-web.yourdomain.com/Porta/SOAP/CDR
Call recording management
get_call_recording |
This method enables an API user to get the list of call recording records |
Parameters |
GetCallRecordingRequest |
Return Value |
GetCallRecordingResponse |
Realm |
administrator, reseller, retail customer, account |
Standalone mode support |
Yes |
GetCallRecordingRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
call_recording_id |
No |
string |
No |
The ID of the call recording record. |
Max value: 40 Min value: 1 |
i_xdr |
Yes |
unsignedLong |
No |
ID of XDR record. |
|
GetCallRecordingResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
Does not include any properties |
Disconnect reason management
get_disconnect_reason_list |
The method enables an API user to fetch the list of available xDR disconnect reasons |
Parameters |
GetDisconnectReasonListRequest |
Return Value |
GetDisconnectReasonListResponse |
Realm |
administrator, reseller, cc staff, distributor, representative, retail customer, account |
Standalone mode support |
Yes |
GetDisconnectReasonListRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
Does not include any properties |
GetDisconnectReasonListResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
disconnect_reason_list |
Yes |
Array of DisconnectReasonInfo structure |
No |
Set of disconnect reason data records. |
|
XDR management
GetNetaccessUsageRecordListRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
format |
No |
string |
No |
This parameter enables the user to get xDRs in other formats via a SOAP attachment. Currently only the "csv" format is supported. |
Possible values: csv |
h323_conf_id |
No |
string |
No |
The unique identifier of the session. At least one of the following fields is mandatory in the request: xdr_id_list, h323_conf_id. |
Max value: 36 |
limit |
No |
int |
No |
The number of rows to retrieve. |
|
offset |
No |
int |
No |
The number of rows to skip at the beginning of the list. |
|
xdr_id_list |
No |
Array of unsignedLong structure |
No |
The list of xDR ids to filter the response. At least one of the following fields is mandatory in the request: xdr_id_list, h323_conf_id. |
Min value: 1 |
GetNetaccessUsageRecordListResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
netaccess_usage_record_list |
No |
Array of NetaccessUsageRecordInfo structure |
No |
The list of net access usage records related to accounts' xDR(s). |
|
revert_xdr_list |
The method enables an API user to revert all transactions for a list of xDRs |
Parameters |
RevertXDRListRequest |
Return Value |
RevertXDRListResponse |
Realm |
administrator, reseller |
Standalone mode support |
No |
RevertXDRListRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
revert_list |
Yes |
Array of XDRRevertInfo structure |
No |
The information about xDRs that are going to be reverted. |
|
RevertXDRListResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
failed_record_list |
No |
Array of FailedXDRRevertRecordInfo structure |
No |
The list of xDRs that failed to revert. |
|
success |
Yes |
int |
No |
1 for success, 0 for failure. |
|
Commission plan information
SOAP URI (namespace): https://portabilling-web.yourdomain.com/Porta/SOAP/CommissionPlan
Commission plan management
AddCommissionPlanRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
commission_plan_info |
Yes |
CommissionPlanInfo structure |
No |
Complete information about the commission plan. |
|
AddCommissionPlanResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_commission_plan |
Yes |
unsignedLong |
No |
The unique ID of the commission plan. |
|
DeleteCommissionPlanRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_commission_plan |
Yes |
unsignedLong |
No |
The unique ID of the commission plan. |
|
DeleteCommissionPlanResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
success |
Yes |
int |
No |
1 in case of success, 0 in case of failure. |
|
GetCommissionPlanInfoRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_commission_plan |
Yes |
unsignedLong |
No |
The unique ID of the commission plan. |
|
GetCommissionPlanInfoResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
commission_plan_info |
No |
CommissionPlanInfo structure |
No |
Complete information about the commission plan. |
|
GetCommissionPlanListRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
get_total |
No |
int |
No |
Flag which indicates whether the total number of the commission plans should be retrurned. |
|
i_cp_base |
No |
int |
No |
The unique ID of the commission plan base. |
|
iso_4217 |
No |
string |
No |
The commission plan currency. |
Max value: 3 |
limit |
No |
int |
No |
The number of rows to retrieve. |
|
managed_by |
No |
unsignedLong |
Yes |
The unique ID of entity, which manage the commission plan. |
|
name |
No |
string |
No |
The commission plan name. |
|
offset |
No |
int |
No |
The number of rows to skip at the beginning of the list. |
|
GetCommissionPlanListResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
commission_plan_list |
Yes |
Array of CommissionPlanInfo structure |
No |
The set of the commission plans data records. |
|
total |
No |
int |
No |
The total number of found commission plans. |
|
UpdateCommissionPlanRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
commission_plan_info |
Yes |
CommissionPlanInfo structure |
No |
Complete information about the commission plan. |
|
UpdateCommissionPlanResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_commission_plan |
Yes |
unsignedLong |
No |
The unique ID of the commission plan. |
|
Content-based charging information
SOAP URI (namespace): https://portabilling-web.yourdomain.com/Porta/SOAP/ContentBasedCharging
Marketing group management
add_marketing_group |
This method enables an API user to add a marketing group |
Parameters |
AddMarketingGroupRequest |
Return Value |
AddMarketingGroupResponse |
Realm |
administrator |
Standalone mode support |
No |
AddMarketingGroupRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
marketing_group_info |
Yes |
MarketingGroupInfo structure |
No |
The information about the marketing group. |
|
AddMarketingGroupResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_marketing_group |
No |
unsignedLong |
No |
The ID of the marketing group. |
|
delete_marketing_group |
This method enables an API user to delete a marketing group record |
Parameters |
DeleteMarketingGroupRequest |
Return Value |
DeleteMarketingGroupResponse |
Realm |
administrator |
Standalone mode support |
No |
DeleteMarketingGroupRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_marketing_group |
Yes |
unsignedLong |
No |
The ID of the marketing group. |
|
DeleteMarketingGroupResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
success |
No |
int |
No |
Possible values: 1 - for success; 0 - for failure. |
|
get_marketing_group_info |
This method enables an API user to retrieve the information about a marketing group – a certain type of network traffic (e.g. Messengers, Social Networks, etc.) |
Parameters |
GetMarketingGroupInfoRequest |
Return Value |
GetMarketingGroupInfoResponse |
Realm |
administrator |
Standalone mode support |
Yes |
GetMarketingGroupInfoRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
get_external_info |
No |
int |
No |
This flag indicates whether a local group or a group from the CoSS server should be returned. |
|
i_marketing_group |
No |
unsignedLong |
No |
The ID of the marketing group. |
|
id |
No |
int |
No |
Marketing group code on the CoSS server. |
|
name |
No |
string |
No |
Marketing group name. |
|
GetMarketingGroupInfoResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
marketing_group_info |
No |
MarketingGroupInfo structure |
No |
The information about the marketing group. |
|
get_marketing_group_list |
This method enables an API user to retrieve the list of existing marketing groups |
Parameters |
GetMarketingGroupListRequest |
Return Value |
GetMarketingGroupListResponse |
Realm |
administrator |
Standalone mode support |
Yes |
GetMarketingGroupListRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
get_external_groups |
No |
int |
No |
This flag indicates whether local groups or groups from the CoSS server should be returned. |
|
id |
No |
string |
No |
Marketing group code pattern. |
|
name |
No |
string |
No |
Marketing group name pattern. |
|
GetMarketingGroupListResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
marketing_group_list |
No |
Array of MarketingGroupInfo structure |
No |
Set of the marketing group records. |
|
update_marketing_group |
This method enables an API user to update the information about a marketing group |
Parameters |
UpdateMarketingGroupRequest |
Return Value |
UpdateMarketingGroupResponse |
Realm |
administrator |
Standalone mode support |
No |
UpdateMarketingGroupRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
marketing_group_info |
Yes |
MarketingGroupInfo structure |
No |
The information about the marketing group. |
|
UpdateMarketingGroupResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
success |
No |
int |
No |
One of the following: 1 – success, 0 – failed. |
|
Rating group management
add_rating_group |
This method enables an API user to add a rating group |
Parameters |
AddRatingGroupRequest |
Return Value |
AddRatingGroupResponse |
Realm |
administrator |
Standalone mode support |
No |
AddRatingGroupRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
rating_group_info |
Yes |
RatingGroupInfo structure |
No |
The information about the rating group. |
|
AddRatingGroupResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_rating_group |
No |
unsignedLong |
No |
The ID of the rating group. |
|
delete_rating_group |
This method enables an API user to delete a rating group record |
Parameters |
DeleteRatingGroupRequest |
Return Value |
DeleteRatingGroupResponse |
Realm |
administrator |
Standalone mode support |
No |
DeleteRatingGroupRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_rating_group |
Yes |
unsignedLong |
No |
The ID of the rating group. |
|
DeleteRatingGroupResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
success |
No |
int |
No |
Possible values: 1 - for success; 0 - for failure. |
|
get_rating_group_info |
This method enables an API user to retrieve the information about a rating group |
Parameters |
GetRatingGroupInfoRequest |
Return Value |
GetRatingGroupInfoResponse |
Realm |
administrator |
Standalone mode support |
Yes |
GetRatingGroupInfoRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_rating_group |
No |
unsignedLong |
No |
The ID of the rating group. |
|
id |
No |
int |
No |
The rating group code used for communication with the CoSS server. |
|
name |
No |
string |
No |
The name of the rating group. |
|
GetRatingGroupInfoResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
rating_group_info |
No |
RatingGroupInfo structure |
No |
The information about the rating group. |
|
get_rating_group_list |
This method enables an API user to retrieve the list of existing rating groups |
Parameters |
GetRatingGroupListRequest |
Return Value |
GetRatingGroupListResponse |
Realm |
administrator |
Standalone mode support |
Yes |
GetRatingGroupListRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
id |
No |
int |
No |
Rating group code pattern on the CoSS server. |
|
name |
No |
string |
No |
Rating group name pattern. |
|
GetRatingGroupListResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
rating_group_list |
No |
Array of RatingGroupInfo structure |
No |
Set of rating group records. |
|
update_rating_group |
This method enables an API user to update the information about a rating group |
Parameters |
UpdateRatingGroupRequest |
Return Value |
UpdateRatingGroupResponse |
Realm |
administrator |
Standalone mode support |
No |
UpdateRatingGroupRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
rating_group_info |
Yes |
RatingGroupInfo structure |
No |
The information about the rating group. |
|
UpdateRatingGroupResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
success |
No |
int |
No |
Possible values: 1 - for success; 0 - for failure. |
|
Currency information
SOAP URI (namespace): https://portabilling-web.yourdomain.com/Porta/SOAP/Currency
Currencies exchange management
convert_money |
This method allows an API user to convert an amount from one currency to another |
Parameters |
ConvertMoneyRequest |
Return Value |
ConvertMoneyResponse |
Realm |
administrator, reseller |
Standalone mode support |
Yes |
ConvertMoneyRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
amount |
Yes |
float |
No |
The amount of money to convert. |
|
from_iso_4217 |
Yes |
string |
No |
The initial currency. |
|
to_iso_4217 |
Yes |
string |
No |
The target currency. |
|
ConvertMoneyResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
converted |
No |
float |
No |
The amount in the target currency (the converted amount). |
|
get_exchange_rate_list |
This method allows an API user to get a list of all exchange rates used within the system |
Parameters |
GetXrateListRequest |
Return Value |
GetXrateListResponse |
Realm |
administrator |
Standalone mode support |
No |
GetXrateListRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
get_total |
No |
int |
No |
Get total amount of exchange rates. |
|
iso_4217 |
No |
string |
No |
Get only exchange rates for provided iso_4217. |
|
limit |
No |
int |
No |
Limit of response list. |
|
offset |
No |
int |
No |
Offset of response list. |
|
only_active |
No |
int |
No |
Get only active exchange rates. |
|
GetXrateListResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
exchange_rate_list |
No |
Array of XrateInfo structure |
No |
The list of exchange rate records. |
|
total |
No |
int |
No |
The total number of the retrieved exchange rate data records. |
|
sync_exchange_rates |
This method enables an API user to synchronize exchange rates with their external sources |
Parameters |
SyncXratesRequest |
Return Value |
SyncXratesResponse |
Realm |
administrator, reseller |
Standalone mode support |
No |
SyncXratesRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
Does not include any properties |
SyncXratesResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
success |
Yes |
int |
No |
1 for success, 0 for failure. |
|
Currency management
AddCurrencyRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
currency_info |
Yes |
CurrencyInfo structure |
No |
Complete information about the Currency. |
|
AddCurrencyResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_ma_currency |
No |
unsignedLong |
No |
The unique merchant account currency identifier. |
|
iso_4217 |
Yes |
string |
No |
The unique ID of the Currency record. |
|
DeleteCurrencyRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_ma_currency |
No |
unsignedLong |
No |
The unique merchant account currency identifier. |
|
iso_4217 |
Yes |
string |
No |
The unique ID of the Currency record. |
|
DeleteCurrencyResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
success |
Yes |
int |
No |
1 for success, 0 for failure. |
|
get_currency_info |
This method allows an API user to get information about a currency created in PortaBilling |
Parameters |
GetCurrencyInfoRequest |
Return Value |
GetCurrencyInfoResponse |
Realm |
administrator, reseller, cc staff, distributor |
Standalone mode support |
Yes |
GetCurrencyInfoRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_ma_currency |
No |
unsignedLong |
No |
The unique merchant account currency identifier. |
|
iso_4217 |
Yes |
string |
No |
Currency ISO4217 code. |
|
GetCurrencyInfoResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
currency_info |
Yes |
CurrencyInfo structure |
No |
Complete information about the Currency. |
|
get_currency_list |
This method allows an API user to get the list of currencies created in PortaBilling |
Parameters |
GetCurrencyListRequest |
Return Value |
GetCurrencyListResponse |
Realm |
administrator, reseller, cc staff |
Standalone mode support |
Yes |
GetCurrencyListRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
limit |
No |
int |
No |
The number of rows to retrieve. |
|
offset |
No |
int |
No |
The number of rows to skip at the beginning of the list. |
|
search |
No |
string |
No |
Pattern that allows to search by Currency name. Use the following wildcard symbols: The percentage ( % ) wildcard allows you to match any string of zero or more characters; The underscore ( _ ) wildcard allows you to match any single character. |
|
GetCurrencyListResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
currency_list |
Yes |
Array of CurrencyInfo structure |
No |
Set of Currency data records. |
|
UpdateCurrencyRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
currency_info |
Yes |
CurrencyInfo structure |
No |
Complete information about the Currency. |
|
UpdateCurrencyResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_ma_currency |
No |
unsignedLong |
No |
The unique merchant account currency identifier. |
|
iso_4217 |
Yes |
string |
No |
The unique ID of the Currency record. |
|
Custom fields information
SOAP URI (namespace): https://portabilling-web.yourdomain.com/Porta/SOAP/CustomFields
Custom field management
AddCustomFieldRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
custom_field_info |
Yes |
CustomFieldsInfo structure |
No |
The custom field information. |
|
AddCustomFieldResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_custom_field |
Yes |
unsignedLong |
No |
The unique ID of the custom field record. |
|
DeleteCustomFieldRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_custom_field |
Yes |
unsignedLong |
No |
The unique ID of the custom field record. |
|
DeleteCustomFieldResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
success |
Yes |
int |
No |
A non-zero value means that the operation was completed. |
|
GetCustomFieldInfoRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_custom_field |
Yes |
unsignedLong |
No |
The unique ID of the custom field record. |
|
GetCustomFieldInfoResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
custom_field_info |
No |
CustomFieldsInfo structure |
No |
The custom field information. |
|
get_custom_field_list |
This method enables an API user to get the list of custom fields with information about their types and possible values |
Parameters |
GetCustomFieldListRequest |
Return Value |
GetCustomFieldListResponse |
Realm |
administrator, reseller |
Standalone mode support |
Yes |
GetCustomFieldListRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
check_usage |
No |
int |
No |
Check whether the custom field was used. |
|
managed_by |
No |
unsignedLong |
No |
The unique ID of the reseller who manages the Custom field record. If undefined, only custom fields managed by administrator will be returned. |
|
mandatory |
No |
string |
No |
The flag shows whether the custom field is mandatory. Possible values: 'Y', 'N'. |
Possible values: Y, N |
name |
No |
string |
No |
The custom field name pattern. |
|
object |
No |
string |
No |
The object the custom field is applicable to. Possible values: 'customer', 'account'. |
Possible values: customer, account |
type |
No |
string |
No |
The canonical name of the custom field type. Currently supported: 'text', 'list', 'date', 'number', 'datetime'. |
Possible values: number, date, text, datetime, list |
visible_to_end_user |
No |
string |
No |
The flag shows whether the custom field is visible to the end user. Possible values: 'Y', 'N'. |
Possible values: Y, N |
GetCustomFieldListResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
custom_fields |
No |
Array of CustomFieldsInfo structure |
No |
The list of available custom fields. |
|
UpdateCustomFieldRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
custom_field_info |
Yes |
CustomFieldsInfo structure |
No |
The custom field information. |
|
UpdateCustomFieldResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_custom_field |
Yes |
unsignedLong |
No |
The unique ID of the custom field record. |
|
Customer class information
SOAP URI (namespace): https://portabilling-web.yourdomain.com/Porta/SOAP/CustomerClass
Business model management
GetBusinessModelsListRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
Does not include any properties |
GetBusinessModelsListResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
business_models |
No |
Array of BusinessModelInfo structure |
No |
The list of available business models. |
|
Customer class management
AddUpdateCustomerClassRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
customer_class_info |
Yes |
CustomerClassInfo structure |
No |
Complete information about customer class records. |
|
AddUpdateCustomerClassResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_customer_class |
Yes |
unsignedLong |
No |
The unique ID of the customer class record. |
|
DeleteCustomerClassRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_customer_class |
Yes |
unsignedLong |
No |
The unique ID of the customer class record. |
|
DeleteCustomerClassResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
success |
Yes |
int |
No |
1 if operation is successful, 0 if not. |
|
GetCustomerClassInfoRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
check_usage_by_resellers |
No |
int |
No |
If the method is called by the administrator and is set to '1' then the 'is_used_by_resellers' field will be provided for every record in the response. |
|
i_customer_class |
No |
unsignedLong |
No |
The unique ID of the customer class record. |
|
name |
No |
string |
No |
Name of the customer class on the PortaBilling interface, unique in the environment. |
Max value: 100 |
GetCustomerClassInfoResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
customer_class_info |
No |
CustomerClassInfo structure |
No |
Complete information about customer class records. |
|
GetCustomerClassListRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
check_usage |
No |
int |
No |
Check whether the customer class is in use. |
|
i_business_model |
No |
unsignedLong |
No |
The unique ID of the business model. |
|
i_customer |
No |
unsignedLong |
Yes |
ID of the reseller who manages the customer class. |
|
invoicing_status |
No |
string |
No |
Possible values: 1 - both regular and out-of-turn invoicing enabled , 2 - regular invoicing enabled, 3 - out-of-turn invoicing enabled, 4 - invoicing disabled. |
|
limit |
No |
int |
No |
The number of rows to retrieve. |
|
name |
No |
string |
No |
The name of the customer class. |
|
offset |
No |
int |
No |
The number of rows to skip at the beginning of the list. |
|
search |
No |
string |
No |
Search in the name and description of a customer class. |
|
with_shared |
No |
int |
No |
If set to '1' and the reseller's data is requested then shared entities managed by the administrator will be added to the response. |
|
GetCustomerClassListResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
customer_class_list |
No |
Array of CustomerClassInfo structure |
No |
The list of customer classes. |
|
total |
No |
int |
No |
The total number of the retrieved customer class records. |
|
GetDefaultCustomerClassRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_customer |
No |
unsignedLong |
No |
ID of the reseller who manages the customer class (undefined in case of Managed By Administrator Only). |
|
GetDefaultCustomerClassResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
customer_class_info |
No |
CustomerClassInfo structure |
No |
Complete information about customer class records. |
|
Notification template management
GetCustomerClassNotificationListRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_customer_class |
No |
unsignedLong |
No |
The unique ID of the customer class. |
|
GetCustomerClassNotificationListResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
notification_list |
No |
Array of NotificationInfo structure |
No |
The list of notifications with their properties. |
|
total |
Yes |
int |
No |
The total amount of notifications. |
|
GetCustomerClassNotificationTemplateInfoRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_customer_class |
Yes |
unsignedLong |
No |
The unique ID of the customer class. |
|
name |
Yes |
string |
No |
The name of the either email or sms notification template as it appears in the Notifications table in the database. |
|
GetCustomerClassNotificationTemplateInfoResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
bcc |
No |
string |
No |
An email address of the person who wants to receive a copy of this notification. You can specify more than one valid email address; make sure you separate them with commas. |
|
body |
No |
string |
No |
The content of the message. |
|
subject |
No |
string |
No |
The subject as it appears in an email to a recepient. |
|
variables |
No |
Array of NotificationTemplateVariable structure |
No |
The set of available variables with information about them. |
|
SendMeCustomerClassNotificationSampleRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_customer_class |
Yes |
unsignedLong |
No |
The unique ID of the customer class. |
|
messaging_service_type |
Yes |
string |
No |
The type of the notification. Possible values: SMS, Mail. |
Possible values: mail, sms |
name |
Yes |
string |
No |
The name of the notification. |
|
SendMeCustomerClassNotificationSampleResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
is_sent |
Yes |
int |
No |
Specifies whether the notification was sent. Possible values: 1 – The notification was sent, 0 – The notification was not sent. |
|
UpdateCustomerClassNotificationTemplateRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
bcc |
No |
string |
No |
An email address of the person who wants to receive a copy of this notification. You can specify more than one valid email address; make sure you separate them with commas. |
|
body |
No |
string |
No |
The content of the message. |
|
i_customer_class |
Yes |
unsignedLong |
No |
The unique ID of the customer class. |
|
name |
Yes |
string |
No |
The name of the either email or sms notification template as it appears in the Notifications table in the database. |
|
reset_to_default |
No |
int |
No |
Specifies whether to reset the notification template to its default value. Possible values: 1 – Reset the notification template to its default value, 0 – Do not reset the notification template. |
|
subject |
No |
string |
No |
The subject as it appears in an email to a recepient. |
|
variables |
No |
Array of NotificationTemplateVariable structure |
No |
The set of available variables with information about them. |
|
UpdateCustomerClassNotificationTemplateResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
authorship |
No |
string |
No |
Specifies whether the template has been modified. Possible values: System – The template has not been modified; Custom – The template has been modified. |
|
is_updated |
Yes |
int |
No |
Specifies whether the notification template was updated. Possible values: 1 – The notification template was updated, 0 – The notification template was not updated. |
|
Payments, taxation and invoice management
GetCustomerClassTaxationInfoRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_customer_class |
Yes |
unsignedLong |
No |
The unique ID of the customer class record. |
|
GetCustomerClassTaxationInfoResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
taxation_info |
Yes |
TaxationInfo structure |
No |
TaxationInfo object. |
|
UpdateCustomerClassTaxationRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_customer_class |
Yes |
unsignedLong |
No |
The unique ID of the customer class record. |
|
taxation_info |
Yes |
TaxationInfo structure |
No |
TaxationInfo object. |
|
UpdateCustomerClassTaxationResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
success |
Yes |
int |
No |
1 for success, 0 for failure. |
|
Customer information
SOAP URI (namespace): https://portabilling-web.yourdomain.com/Porta/SOAP/Customer
Abbreviated dialing number management
AddUpdateCustomerAbbreviatedDialingNumberRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
abbreviated_dialing_number_info |
Yes |
AbbreviatedDialingNumberInfo structure |
No |
Abbreviated dialing number object. |
|
i_customer |
Yes |
unsignedLong |
No |
ID of customer record. Not mandatory when the method that requires this structure is executed from the retail customer realm. |
|
AddUpdateCustomerAbbreviatedDialingNumberResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_ab_dialing |
Yes |
unsignedLong |
No |
ID of abbreviated dialing number record. |
|
DeleteCustomerAbbreviatedDialingNumberRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_ab_dialing |
Yes |
unsignedLong |
No |
ID of abbreviated dialing number record. |
|
DeleteCustomerAbbreviatedDialingNumberResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
success |
Yes |
int |
No |
1 if success, otherwise SOAP fault. |
|
GetCustomerAbbreviatedDialingNumberListRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_customer |
Yes |
unsignedLong |
No |
The unique ID of a customer record. Not mandatory when the method that requires this structure is executed from the retail customer realm. |
|
limit |
No |
int |
No |
The number of rows to retrieve. Mandatory for an API request with the offset property specified. |
|
offset |
No |
int |
No |
The number of rows to skip at the beginning of the list. Requires the limit property to be specified in the API request. |
Max value: 4294967295 |
GetCustomerAbbreviatedDialingNumberListResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
abbreviated_dialing_number_list |
No |
Array of AbbreviatedDialingNumberInfo structure |
No |
Array of abbreviated dialing number objects. |
|
total |
Yes |
int |
No |
The number of the retrieved abbreviated dialing number objects. |
|
Account batch management
AddUpdateCustomerBatchRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
batch_info |
Yes |
CustomerBatchInfo structure |
No |
Information about the batch. |
|
AddUpdateCustomerBatchResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_batch |
Yes |
unsignedLong |
No |
The unique ID of the batch. |
|
DeleteCustomerBatchRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_batch |
Yes |
unsignedLong |
No |
The unique ID of the batch. |
|
DeleteCustomerBatchResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
success |
Yes |
int |
No |
Possible values: 1 – In case of success; 0 - for failure. |
|
GetCustomerBatchInfoRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_batch |
Yes |
unsignedLong |
No |
The unique ID of the batch. |
|
GetCustomerBatchInfoResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
batch_info |
No |
CustomerBatchInfo structure |
No |
Information about the batch. |
|
GetCustomerBatchList |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_customer |
No |
unsignedLong |
No |
The unique ID of the customer record. |
|
name |
No |
string |
No |
The name of the batch. This property is useful when it is required to retieve the list of batches which names fit a particular pattern. |
Max value: 32 |
GetCustomerBatchListResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
batch_list |
Yes |
Array of CustomerBatchInfo structure |
Yes |
The list of the account batches under this customer. |
|
Async API notification management
DisableApiNotificationsCustomerRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
event |
Yes |
string |
No |
The event name. |
Possible values: sip.call_control_notifications |
i_customer |
No |
unsignedLong |
No |
The unique ID of the customer record. |
|
i_main_office |
No |
unsignedLong |
No |
The unique ID of a сustomer's record with headquarters office type. |
|
DisableApiNotificationsCustomerResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
success |
Yes |
int |
No |
A non-zero value means that the operation has been successfully completed. |
|
EnableApiNotificationsCustomerRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
event |
Yes |
string |
No |
The event name. |
Possible values: sip.call_control_notifications |
i_customer |
No |
unsignedLong |
No |
The unique ID of the customer record. |
|
i_main_office |
No |
unsignedLong |
No |
The unique ID of a сustomer's record with headquarters office type. |
|
EnableApiNotificationsCustomerResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
success |
Yes |
int |
No |
A non-zero value means that the operation has been successfully completed. |
|
Auto-payment management
add_auto_payment |
This method allows an API user to set up automated periodic payments. If you want to charge a customer’s credit card whenever his balance crosses a specified threshold, then specify the pay_amount and balance_threshold properties, and when the customer’s balance crosses this threshold, their credit card will be charged for the amount specified in the pay_amount field |
Parameters |
AddUpdateAutoPaymentInfoRequest |
Return Value |
AddUpdateAutoPaymentInfoResponse |
Realm |
administrator, reseller, retail customer |
Standalone mode support |
No |
delete_auto_payment |
This method enables an API user to delete customer's automated periodic payments |
Parameters |
DeleteAutoPaymentRequest |
Return Value |
DeleteAutoPaymentResponse |
Realm |
administrator, reseller, retail customer |
Standalone mode support |
No |
get_auto_payment_info |
This method allows an API user to get a customer’s automated periodic payment record |
Parameters |
GetAutoPaymentInfoRequest |
Return Value |
GetAutoPaymentInfoResponse |
Realm |
administrator, reseller, retail customer |
Standalone mode support |
Yes |
update_auto_payment |
This method allows an API user to update automated periodic payments. A customer's credit card will be charged when the billing period is closed. If you want to charge a customer's credit card whenever his balance crosses a specified threshold, then specify the pay_amount and balance_threshold properties, and when the customer's balance crosses this threshold, their credit card will be charged for the amount specified in the pay_amount field |
Parameters |
AddUpdateAutoPaymentInfoRequest |
Return Value |
AddUpdateAutoPaymentInfoResponse |
Realm |
administrator, reseller, retail customer |
Standalone mode support |
No |
Call barring rule management
GetCustomerCallBarringOptionsRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_customer |
Yes |
unsignedLong |
No |
The unique ID of the customer. |
|
UpdateCustomerCallBarringOptionsRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_customer |
Yes |
unsignedLong |
No |
The unique ID of the customer. |
|
options |
Yes |
Array of CallBarringRuleInfo structure |
No |
Call barring options. |
|
UpdateCustomerCallBarringOptionsResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
success |
Yes |
int |
No |
One of the following: 1 – success, 0 – failed. |
|
Call queue management
AddCallQueueRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
callqueue_info |
No |
CQInfo structure |
No |
Information about the call queue. |
|
AddUpdateCallQueueResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_c_queue |
Yes |
unsignedLong |
No |
The unique ID of the call queue record. |
|
DeleteCallQueueRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_c_queue |
Yes |
unsignedLong |
No |
The unique ID of the call queue record to be deleted. |
|
DeleteCallQueueResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
success |
Yes |
int |
No |
1 if success, otherwise SOAP fault. |
|
get_callqueue_info |
This method allows an API user to get call queue information |
Parameters |
GetCQInfoRequest |
Return Value |
GetCQInfoResponse |
Realm |
administrator, retail customer |
Standalone mode support |
Yes |
GetCQInfoRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_c_queue |
Yes |
unsignedLong |
No |
The unique ID of a call queue record. |
|
GetCQInfoResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
callqueue_info |
No |
CQInfo structure |
No |
Information about the call queue. |
|
get_callqueue_list |
This method allows an API user to get the list of a customer's call queues |
Parameters |
GetCQListInfoRequest |
Return Value |
GetCQListInfoResponse |
Realm |
administrator, retail customer, account |
Standalone mode support |
Yes |
GetCQListInfoRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
detailed_info |
No |
int |
No |
Specifies whether detailed information will be returned in the response or not. |
|
get_main_office_callqueues |
No |
int |
No |
Specifies whether the main office's call queues should be shown instead of call queues of the specified customer. |
|
i_customer |
Yes |
unsignedLong |
No |
The unique ID of a customer record. Not mandatory when the method that requires this structure is executed from the retail customer realm. |
|
limit |
No |
int |
No |
The number of rows to retrieve. Mandatory for an API request with the offset property specified. |
|
offset |
No |
int |
No |
The number of rows to skip at the beginning of the list. Requires the limit property to be specified in the API request. |
Max value: 4294967295 |
GetCQListInfoResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
callqueue_list |
No |
Array of CQInfo structure |
No |
Information about the call queue. |
|
total |
No |
int |
No |
The total number of retrieved call queues. |
|
get_callqueue_moh_file |
This method enables an API user to get the file with the music on hold for a specific call queue |
Parameters |
GetCQMohFileRequest |
Return Value |
GetCQMohFileResponse |
Realm |
administrator, retail customer |
Standalone mode support |
Yes |
GetCQMohFileRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_c_queue |
Yes |
unsignedLong |
No |
The unique record of a call queue. |
|
GetCQMohFileResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
success |
Yes |
int |
No |
1 for success, 0 for failure. |
|
get_callqueue_prompt_file |
This method enables an API user to get the file with prompts for a specific call queue |
Parameters |
GetCQPromptFileRequest |
Return Value |
GetCQPromptFileResponse |
Realm |
administrator, retail customer |
Standalone mode support |
Yes |
GetCQPromptFileRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_c_queue |
Yes |
unsignedLong |
No |
The unique record of a call queue. |
|
GetCQPromptFileResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
success |
Yes |
int |
No |
1 for success, 0 for failure. |
|
UpdateCallQueueRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
callqueue_info |
No |
CQInfo structure |
No |
Information about the call queue. |
|
Custom field management
get_custom_fields_schema |
This method allows an API user to get the list of customer's custom fields with information about their types and possible values |
Parameters |
GetCustomerCustomFieldsSchemaRequest |
Return Value |
GetCustomerCustomFieldsSchemaResponse |
Realm |
administrator, reseller, retail customer, distributor, cc staff, representative |
Standalone mode support |
Yes |
GetCustomerCustomFieldsSchemaRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_customer |
Yes |
unsignedLong |
No |
ID of customer record. |
|
GetCustomerCustomFieldsSchemaResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
custom_fields |
No |
Array of CustomerCustomFieldsInfo structure |
Yes |
Array of Custom Field Values and Validation Schemas for the given Customer. |
|
GetCustomerCustomFieldsValuesRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_customer |
Yes |
unsignedLong |
No |
The unique ID of the customer record. Not mandatory when the method that requires this structure is executed from the retail customer realm. |
|
GetCustomerCustomFieldsValuesResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
custom_fields_values |
No |
Array of CustomFieldsValuesInfo structure |
Yes |
The list of Custom Fields values for the given customer. |
|
UpdateCustomerCustomFieldsValuesRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
custom_fields_values |
Yes |
Array of CustomFieldsValuesInfo structure |
Yes |
The list of Custom Fields values for the given customer. |
|
i_customer |
No |
unsignedLong |
No |
The unique ID of the customer record. Not mandatory when the method that requires this structure is executed from the retail customer realm. |
|
UpdateCustomerCustomFieldsValuesResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
custom_fields_values |
No |
Array of CustomFieldsValuesInfo structure |
Yes |
The list of Custom Fields values for the given customer. |
|
i_customer |
No |
unsignedLong |
Yes |
The unique ID of the customer record. |
|
Customer management
add_customer |
This method allows an API user to create a new customer record using the supplied data |
Parameters |
AddCustomerRequest |
Return Value |
AddUpdateCustomerResponse |
Realm |
administrator, reseller |
Standalone mode support |
No |
AddCustomerRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
customer_info |
No |
CustomerInfo structure |
No |
Notes: i_customer will be ignored; most fields may be omitted, but iso_4217 and name are mandatory; for reseller API users, the i_customer_type and i_parent fields will be replaced with predefined values; default customer class will be set in case if i_customer_class is not defined. |
|
generate_web_password |
No |
int |
No |
Specifies whether to autogenerate a password for the customer self-care interface. Possible values: 1 - Generate a password; 0 - Do not generate a password. |
|
AddUpdateCustomerResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_customer |
No |
unsignedLong |
No |
ID of created / modified customer record. |
|
AddSubresellerRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
clone_product_list |
No |
Array of CloneProductInfo structure |
No |
The list of the resale products that will be cloned. |
|
clone_tariff_list |
No |
Array of CloneTariffInfo structure |
No |
The list of the resale tariffs that will be cloned. |
|
customer_info |
No |
CustomerInfo structure |
No |
Notes: i_customer will be ignored; iso_4217 and name are mandatory;. |
|
generate_web_password |
No |
int |
No |
Specifies whether to autogenerate a password for the customer self-care interface. Possible values: 1 - Generate a password; 0 - Do not generate a password. |
|
AddUpdateSubresellerResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_customer |
No |
unsignedLong |
No |
ID of created / modified subreseller record. |
|
ChangeCustomerPasswordRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_customer |
No |
unsignedLong |
No |
The unique ID of the customer record. |
|
new_password |
Yes |
string |
No |
New password. |
Max value: 32 Min value: 6 |
old_password |
Yes |
string |
No |
Old password. |
|
close_billing_period |
This method enables an API user to schedule a customer's billing period closure. Can be used only for the customers that require administrator's approval for billing period closure |
Parameters |
CloseBillingPeriodRequest |
Return Value |
CloseBillingPeriodResponse |
Realm |
administrator |
Standalone mode support |
No |
CloseBillingPeriodRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_customer |
Yes |
unsignedLong |
No |
The unique ID of the customer. |
|
CloseBillingPeriodResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
success |
Yes |
int |
No |
1 in case of success, 0 in case of failure. |
|
delete_customer |
This method allows an API user to delete an existing retail customer or reseller, provided it has no accounts, subcustomers, CDRs or managed objects |
Parameters |
DeleteCustomerRequest |
Return Value |
DeleteCustomerResponse |
Realm |
administrator, reseller |
Standalone mode support |
No |
DeleteCustomerRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_customer |
No |
unsignedLong |
No |
ID of customer record to be deleted. |
|
DeleteCustomerResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
success |
No |
int |
No |
1 for success, 0 for failure. |
|
get_customer_info |
This method allows an API user to get a customer record from the database. The customer must be viewable (owned) by the user making the request |
Parameters |
GetCustomerInfoRequest |
Return Value |
GetCustomerInfoResponse |
Realm |
administrator, reseller, distributor, retail customer, cc staff, representative |
Standalone mode support |
Yes |
GetCustomerInfoRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
aux_field_names |
No |
Array of string structure |
No |
Additional field names to fetch. |
|
detailed_info |
No |
int |
No |
Specifies whether detailed information will be returned in the response. |
|
effective_values |
No |
int |
No |
Get customer info (including the values that were overridden or inherited from other entities). |
|
get_auth_info |
No |
int |
No |
If set to '1', the information about the customer's authorization parameters will be provided in the response. |
|
get_main_office_info |
No |
int |
No |
If set to '1', information will be provided for the requested Branch Office (site) customer about the Main Office (HQ) customer which is linked with it. |
|
get_rt_auth_info |
No |
int |
No |
If set to '1', the customer's RT information will be provided in the response. |
|
get_time_zone_name |
No |
int |
No |
If set to '1', the customer's time zone will be provided in the response; refers to Time_Zones table. |
|
i_customer |
No |
unsignedLong |
No |
The unique ID of the customer record. |
|
login |
No |
string |
No |
User Name, as specified on web interface. |
|
name |
No |
string |
No |
The ID of the customer on the PortaBilling interface, unique in the environment. |
|
refnum |
No |
string |
No |
Reference number (custom field). |
|
with_reseller_info |
No |
int |
No |
If with_reseller_info == 1 then return information about reseller. |
|
GetCustomerInfoResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
customer_info |
No |
CustomerInfo structure |
No |
The complete information about a customer; for more information, see below. |
|
main_office_info |
No |
CustomerInfo structure |
No |
The complete information about the Main Office (HQ) customer, linked with this subordinate one. |
|
reseller_info |
No |
CustomerInfo structure |
No |
The complete information about a reseller. |
|
get_customer_list |
This method allows an API user to get a list of customer records. The customer must be viewable (or owned) by the user making the request |
Parameters |
GetCustomerListRequest |
Return Value |
GetCustomerListResponse |
Realm |
administrator, reseller, retail customer, cc staff, distributor, representative |
Standalone mode support |
Yes |
GetCustomerListRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
bill_status |
No |
string |
No |
O - the customer is open, S - the customer is suspended due to an overdue invoice, C - the customer is closed due to an unpaid invoice, E - the customer is exported. |
Possible values: , O, S, E, C, D |
callshop_enabled |
No |
string |
No |
Filter the customer list by the 'callshop_enabled' field. |
Possible values: Y, N |
check_usage |
No |
int |
No |
Check whether the customer has entities assigned. |
|
city |
No |
string |
No |
City of customer's address. |
Max value: 31 |
cont1 |
No |
string |
No |
Main contact person. |
Max value: 120 |
cont2 |
No |
string |
No |
Alternative contact person. |
Max value: 120 |
detailed_info |
No |
int |
No |
Specifies whether detailed information will be returned in the response. |
|
email |
No |
string |
No |
Email address. |
|
faxnum |
No |
string |
No |
Fax number. |
Max value: 21 |
firstname |
No |
string |
No |
Customer's first name. |
Max value: 120 |
get_auth_info |
No |
int |
No |
If set to '1', the information about the customer's authorization parameters will be provided in the response. |
|
get_notepad |
No |
int |
No |
Specifies whether to include the notes into the info. Possible values: 1 - Include the notes into the info; 0 - Do not include the notes into the info. |
|
get_statuses |
No |
int |
No |
Get the statuses of the customers. |
|
get_total |
No |
int |
No |
Get the total number of the retrieved customers. |
|
i_customer_class |
No |
unsignedLong |
No |
The unique ID of the customer class; refers to Customer_Classes table. |
|
i_customer_type |
No |
unsignedLong |
No |
The type of the customer. Possible values: 1 - Retail customer or subcustomer, 2 - Reseller, 3 - Distributor. |
|
i_distributor |
No |
unsignedLong |
Yes |
The unique ID of the distributor whose subdistributors you want to retrieve. |
|
i_main_customer |
No |
unsignedLong |
No |
The unique ID of the "main" customer (Main Office (HQ) customer) record within one linked customers' group. |
|
i_office_type |
No |
unsignedLong |
No |
The unique ID of the Office_Types record. Possible values: 1 – none; 2 – branch_office; 3 – main_office. |
Possible values: 1, 2, 3 |
i_parent |
No |
unsignedLong |
Yes |
The unique ID of the reseller who manages the customer. |
|
i_rep |
No |
unsignedLong |
Yes |
The unique ID of the customer's representative; refers to Representatives table. |
|
iso_4217 |
No |
string |
No |
ISO4217 code for currency in which the customer is billed. |
Max value: 3 |
limit |
Yes |
int |
No |
The number of rows to retrieve. |
|
login |
No |
string |
No |
Customer's login for self-care web interface. |
Max value: 64 |
name |
No |
string |
No |
The customer name pattern. |
|
offset |
Yes |
int |
No |
The number of rows to skip at the beginning of the list. |
|
only_local |
No |
int |
No |
The flag shows whether to return customers from the local system only. |
|
phone2 |
No |
string |
No |
Alternative phone number. |
Max value: 21 |
salutation |
No |
string |
No |
Customer's salutation. |
Max value: 15 |
with_subresellers |
No |
int |
No |
Specifies whether to include subresellers into the list. Possible values: 1 - Include subresellers into the list; 0 - Do not include subresellers into the list. |
|
with_terminated |
No |
int |
No |
Specifies whether to include terminated customers into the list. Possible values: 1 - Include terminated customers into the list; 0 - Do not include terminated customers into the list. |
|
GetCustomerListResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
customer_list |
No |
Array of CustomerInfo structure |
No |
Set of customer data records. |
|
total |
No |
int |
No |
The total number of the retrieved customers. |
|
suspend_customer |
This method allows to suspend all services to a retail customer, reseller or distributor |
Parameters |
SuspendCustomerRequest |
Return Value |
SuspendCustomerResponse |
Realm |
administrator, reseller |
Standalone mode support |
No |
SuspendCustomerRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_customer |
Yes |
unsignedLong |
No |
The unique ID of the customer record. |
|
SuspendCustomerResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
success |
Yes |
int |
No |
1 for success, 0 for failure. |
|
TerminateCustomerRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_customer |
Yes |
unsignedLong |
No |
ID of customer record to be terminated. |
|
supress_notification |
No |
int |
No |
Supress the notification about customer termination. |
|
TerminateCustomerResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
success |
Yes |
int |
No |
1 for success, 0 for failure . |
|
UnsuspendCustomerRequest |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
i_customer |
Yes |
unsignedLong |
No |
The unique ID of the customer record. |
|
UnsuspendCustomerResponse |
Property |
Mandatory |
Type |
Nillable |
Description |
Possible values |
success |
Yes |
int |
No |
1 for success, 0 for failure. |
|
update_customer |
This method allows an API user to update an existing customer record using the supplied data |
Parameters |
UpdateCustomerRequest |
Return Value |
AddUpdateCustomerResponse |
Realm |
administrator, reseller, retail customer, cc staff, distributor, representative |
Standalone mode support |
No |
<