![]() |
|
8 (800) 700 7672 Free in Russia |
The API allows you to send messages through your projects and services over the HTTP/HTTPS, SMTP, and SMPP protocols. Ready-made libraries in different programming languages connect to your project and help you send messages from anywhere with a single command.
SENDING MESSAGES Sending an SMS message MANAGING MAILING LISTSComments in SMS messages Sending to a group of numbers Sending HLR-query Sending an MMS message Sending an e-mail message Sending a voice message (call) Sending a viber message Using prefixes when sending messages Managing message templates Managing operator templates Virtual sending (test mode) Event Notifications MESSAGE STATUSES Checking the status CHECKING THE BALANCE STATUSServer response and error codes Status codes Error codes in the status Deleting a message ÓÏÐÀÂËÅÍÈÅ ÊÎÍÒÀÊÒÀÌÈ ![]() Work with the subclient MANAGING SENDER NAMES (SENDER ID)Creating and uploading invoices and reports List of available operations with sender names GETTING DATAServer response and error codes Examples of actions with sender names Getting the history of sent messages VARIOUSReceiving incoming messages Getting statistics Request for rates Getting information about the operator Getting data about a short link | Client managementList of available operationsTo create or modify a subclient, you need to call method GET or POST an address indicating the required command and parameters.Create a subclient: https://smscentre.com/sys/users.php?add=1&login=<login>&psw=<password>&user=<user>&password=<password2> Change the settings of the subclient: https://smscentre.com/sys/users.php?chg=1&login=<login>&psw=<password>&user=<user>&fio=<fio> The change in the balance subclient: https://smscentre.com/sys/users.php?pay=1&login=<login>&psw=<password>&user=<user>&sum=<sum> Obtaining statistics on sub-clients c independent balance: https://smscentre.com/sys/users.php?get_stat=1 Obtaining statistics on one subclient: https://smscentre.com/sys/users.php?get_stat=1 or: https://smscentre.com/sys/users.php?get_stat=1 Get detailed statistics on the subclient with independent balance: https://smscentre.com/sys/users.php?get_stat_a Description of parametersDescription of the parameters passed to the Server:
Server response and error codesIf an error occurs, the Server returns the following string:
If the request is successful, the Server returns a response in the form of a string. When you create a subclient:
When changing the sublogin:
<login> - login subclient. <description> - operation name. <operator> - operator name. <mccmnc><mccmnc> - numeric code of the subscriber's country plus numeric code of the subscriber's operator <cnt><cnt> - number of messages. <credit> - debit. <debit> - credit. <currency> - the three-character currency code subclient. Examples of actions with the subclientExamples:Create a subclient with login "mylogin", password "mypassword", phone number 79999999999 and permission to use sender (Sender ID) of the main account: https://smscentre.com/sys/users.php?add=1&login=alex&psw=123&user=mylogin&password=mypassword&phone=79999999999&fl[29]=1 Change subclient with login "mylogin" to "mylogin2" type of customer "Tariff and the balance of the main account" and install codes allowed to send SMS only in Russia: https://smscentre.com/sys/users.php?chg=1&login=alex&psw=123&user=mylogin&password=mypassword&new_login=mylogin2&type=2&fmts=7,-77 Getting statistics on sub-clients who have a shared balance with the main account and SMS sent from the electronic balance: https://smscentre.com/sys/users.php?get_stat=1 Obtaining statistics on the subclient with the username "sub_alex": https://smscentre.com/sys/users.php?get_stat=1 Obtaining statistics on the independent subclient in the currency of the main account with "01.01.2014" "01.02.2014": https://smscentre.com/sys/users.php?get_stat=1 The server does not accept more than three requests within a minute to add a subclient or change the same subclient to reduce the load and protect against bugs and loops in the program on the Client side. Creating and uploading invoices and reportsTo create a new account for a subclient, you need to call method GET or POST address:
https://smscentre.com/sys/documents.php?add_ac
or:
https://smscentre.com/sys/documents.php?add_ac To upload an existing account subclient, you need to call method GET or POST address:
https://smscentre.com/sys/documents.php?get_ac
or:
https://smscentre.com/sys/documents.php?get_ac To upload an existing sub-client report, call the GET or POST address method:
https://smscentre.com/sys/documents.php?get_ac
https://smscentre.com/sys/documents.php?get_ac
or:
https://smscentre.com/sys/documents.php?get_ac
https://smscentre.com/sys/documents.php?get_ac The following parameters are passed to the server:
If an error occurs, the Server returns the following string:
In case of a successful request to create an invoice, the Server returns a multipart structure that includes 2 parts with the corresponding headers. The first part contains the Server response in json format, containing the ID and amount of the created invoice, the second part includes a file with the invoice in pdf format. If the invoice request is successful, the Server returns the invoice file in pdf format.. In case of a successful request to receive the act, the Server returns a file with the act in pdf format. The server does not accept more than one request to create or change an invoice or act within a minute to reduce the load and protect against errors and loops in the Client-side program. |
© 2003–2023 SMS Center LLC License no. 166255 | support@smscentre.com Contacts | Design — Artemy Lebedev Studio Site Information |
![]() |