Knowledge Base > API integration > Create new accounts through API

in API integration

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>[email protected]</UserName>
<Password>*****</Password>
<GroupId>14072</GroupId>
<ContactName>name</ContactName>
<ContactEmail>[email protected]</ContactEmail>
<CompanyName>company name</CompanyName>
<ContactPhone></ContactPhone>
<Language>hebrew</Language>
<Locale>he-il</Locale>
<ContactPhone></ContactPhone>
<TimeZone></TimeZone>
<AdditionalDetails></AdditionalDetails>
</account>
</CreateAccount>
</soap:Body>
</soap:Envelope>

 

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 = “[email protected]”;
account.FirstName = “inwiseTestR”;
account.GroupId = 1;
account.Language = “english”;
// account.LastName = ;
account.Locale = “en-US”;
account.Password = “*****”;
account.MobilePhone = null;
account.PhoneNumber = “035627077”;
account.RecipientsPackageId = 0;
account.StoragePackageId = 0;
account.TimeZone = “”;
account.UserName = “[email protected]”;
ws.CreateAccount(account, null);