Knowledge Base > Create new accounts through API

in

If you are a partner that want to open new inwise accounts automatically than you probably need to use this API.

Here is a request example:

 

DESTINATION

POST  https://api.inwise.com/inwisewebservicesadmin.asmx

 

HEADERS

Accept: */*
Accept-Encoding: gzip, deflate
Content-Length: 941
Content-Type: text/xml; charset=utf-8
Soapaction: http://tempuri.org/CreateAccount
User-Agent: runscope/0.1

 

BODY

<soap:Envelope
xmlns:soap=”http://schemas.xmlsoap.org/soap/envelope/”
xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”
xmlns:xsd=”http://www.w3.org/2001/XMLSchema”>
<soap:Header>
<SecHeader xmlns=”http://tempuri.org/”>
<username>inwise group admin username</username>
<pass>*****</pass>
</SecHeader>
</soap:Header>
<soap:Body>
<CreateAccount xmlns=”http://tempuri.org/”>
<account>
<UserName>newaccount@email.com</UserName>
<Password>*****</Password>
<GroupId>14072</GroupId>
<ContactName>name</ContactName>
<ContactEmail>newaccount@email.com</ContactEmail>
<CompanyName>company name</CompanyName>
<ContactPhone></ContactPhone>
</account>
</CreateAccount>
</soap:Body>
</soap:Envelope>

In the header node you should provide an admin inwise account credentials that allows to open accounts. Then in the account node you can provide the new account details:

UserName – you can provide email here
Password – the account password
GroupId – a group number that you will get from inwise
ContactName
ContactEmail – usually the same email like in username
CompanyName
ContactPhone
After opening new account, you might also be interest in integrated direct link inside your application to open inwise application with a token. Please see this manual in order to implement this.

If you want to use this advanced integrated feature then please contact us. You will need Group admin account with special permission to open new account

 

Here is another example specifically for .NET developer:

in visual studio you can create new project and add web reference to:
https://api.inwise.com/InwiseWebServicesAdmin.asmx

Lets call this reference “AdminApi”

Now you can open a new account by this code:

//get a reference to the service
AdminApi.InwiseWebServicesAdmin ws = new AdminApi.InwiseWebServicesAdmin();

//fill the security header
AdminApi.SecHeader header = new AdminApi.SecHeader();
header.username = “Your Admin Account in inwise”;
header.pass = “*****”;
ws.SecHeaderValue = header;//set credentials

AdminApi.Account account = null;

account = new AdminApi.Account();
account.AdditionalDetails = null;
account.ContactPerson = “rafael”;
account.Email = “theAccountEmail@email.com”;
account.FirstName = “inwiseTestR”;
account.GroupId = 1;
account.Language = “english”;
account.Locale = “en-US”;
account.Password = “*****”;
account.MobilePhone = null;
account.PhoneNumber = “8884521505”;
account.UserName = “theAccountEmail@email.com”;
ws.CreateAccount(account, null);