Account
Click here for a complete list of operations.
Open
Opens a new account. If you supply values for the ParentUsername and ParentPassword parameter you will create a sub-account.
Parameter | Notes |
| ParentUsername: | This should only be populated if you are creating a sub-account. |
| ParentPassword: | This should only be populated if you are creating a sub-account. |
| Username: | Provide a valid email address for the account holder. |
| Password: | This must be at least 6 or more alphanumeric characters long and contain at least one digit, one upper case and one lower case character. |
| FirstName: | The account holder's first name. |
| LastName: | The account holder's second name. |
| MobilePhone: | Provide a valid mobile device number for the account holder. |
| Company: | The account holder's company name. |
| Phone: | Provide a valid phone number for the account holder. |
| ResultText: | E.g. Account for main.account@company.com was created successfully. |
| Code: |
Test
The test form is only available for methods with primitive types as parameters.SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /WebServices/2.2/Simple/Account.asmx HTTP/1.1
Host: www.2sms.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.2sms.com/WebServices/2.2/Simple/Open"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<Open xmlns="http://www.2sms.com/WebServices/2.2/Simple/">
<ParentUsername>string</ParentUsername>
<ParentPassword>string</ParentPassword>
<Username>string</Username>
<Password>string</Password>
<FirstName>string</FirstName>
<LastName>string</LastName>
<MobilePhone>string</MobilePhone>
<Company>string</Company>
<Phone>string</Phone>
<ResultText>string</ResultText>
<Code>string</Code>
</Open>
</soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<OpenResponse xmlns="http://www.2sms.com/WebServices/2.2/Simple/">
<OpenResult>string</OpenResult>
<ResultText>string</ResultText>
<Code>string</Code>
</OpenResponse>
</soap:Body>
</soap:Envelope>
SOAP 1.2
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
POST /WebServices/2.2/Simple/Account.asmx HTTP/1.1
Host: www.2sms.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<Open xmlns="http://www.2sms.com/WebServices/2.2/Simple/">
<ParentUsername>string</ParentUsername>
<ParentPassword>string</ParentPassword>
<Username>string</Username>
<Password>string</Password>
<FirstName>string</FirstName>
<LastName>string</LastName>
<MobilePhone>string</MobilePhone>
<Company>string</Company>
<Phone>string</Phone>
<ResultText>string</ResultText>
<Code>string</Code>
</Open>
</soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<OpenResponse xmlns="http://www.2sms.com/WebServices/2.2/Simple/">
<OpenResult>string</OpenResult>
<ResultText>string</ResultText>
<Code>string</Code>
</OpenResponse>
</soap12:Body>
</soap12:Envelope>