Ascio Web Service v3
NodeJS CreateOrder - OwnerChange
Replaces the registrant with a new handle. There are 2 ways to submit the new Registrant: With the OwnerChange, it is possible to change Registrant and Admistrative Contact in one request. The rules for the owner-change depend on the registry. Please look at the TLD-Kit for details. An OwnerChange is needed when materialized data is changed If no materialized data is changed, a Registrant Details Update can be used instead. This is easier than an Owner change.

CreateOrderResponse CreateOrder(SecurityHeaderDetails securityHeader,CreateOrderRequest request)Response codes
| ResultCode | Message | Value |
|---|---|---|
| 200 | Order validated | |
| 200 | Order received | |
| 400 | Order not validated | Messages |
| 401 | Authorization failed | |
| 405 | Access denied |
CreateOrder Request
| Property | Type |
|---|---|
| request |
CreateOrderResponse
| Property | Description |
|---|---|
| CreateOrderResult | |
| OrderInfo | |
| ResultCode | Example: 1 |
| ResultMessage | |
| Errors |
Used in Classes
| Property | Value |
| OrderType | OwnerChange |
|---|---|
| request | DomainOrderRequest |
NodeJS example
var soap = require("soap");
var ownerChangeExample = function(callback) {
//KeyValue
keyValue = {};
keyValue.Key="Title";
keyValue.Value="Mr.";
//Extensions
ownerExtensions = [{
}]
//Registrant
owner = {};
owner.FirstName="John";
owner.LastName="Doe";
owner.OrgName="Ascio";
owner.Address1="Address1Test";
owner.Address2="Address2Test";
owner.City="CityTest";
owner.State="StateTest";
owner.PostalCode="888349";
owner.CountryCode="DK";
owner.Phone="+45.123456789";
owner.Fax="+45.987654321";
owner.Email="test@gmail.com";
owner.Type="owner";
owner.Details="DetailsTest";
owner.OrganisationNumber="OrganisationNumberTest";
owner.Extensions=ownerExtensions;
owner.VatNumber="VatNumberTest";
owner.NexusCategory="NexusCategoryTest";
//KeyValue
keyValue = {};
keyValue.Key="Title";
keyValue.Value="Mr.";
//Extensions
adminExtensions = [{
Key : "Title",
Value : "Mrs."
}]
//Contact
admin = {};
admin.FirstName="John";
admin.LastName="Doe";
admin.OrgName="Ascio";
admin.Address1="Address1Test";
admin.Address2="Address2Test";
admin.City="CityTest";
admin.State="StateTest";
admin.PostalCode="888349";
admin.CountryCode="DK";
admin.Phone="+45.123456789";
admin.Fax="+45.987654321";
admin.Email="test@gmail.com";
admin.Type="owner";
admin.Details="DetailsTest";
admin.OrganisationNumber="OrganisationNumberTest";
admin.Extensions=adminExtensions;
//Domain
domain = {};
domain.Name="ascio-is-great.com";
domain.Owner=owner;
domain.Admin=admin;
//DomainOrderRequest
request =
{
attributes: {
xsi_type: {
type: "http://www.ascio.com/2013/02",
xmlns: "DomainOrderRequest"
}
}
};
request.Type="OwnerChange";
request.TransactionComment="TransactionCommentTest";
request.Documentation="DocumentationTest";
request.Domain=domain;
soap.createClient("https://aws.demo.ascio.com/v3/aws.wsdl", function(err, client) {
if(err) {
callback(err);
}
else {
const ns="http://www.ascio.com/2013/02";
const securityHeader = {
SecurityHeaderDetails : {
Account: "ascio-account",
Password: "mypassword123"
}
};
client.addSoapHeader(securityHeader, ns, "q1");
const impersonationHeader = {
ImpersonationHeaderDetails : {
TransactionAccount: "sub-account"
}
}
client.addSoapHeader(impersonationHeader, ns, "q1");
client.CreateOrder({request: request}, function(err,result) {
if(err) {
callback({error: err , request : result.request.body});
} else {
if(result.CreateOrderResult.ResultCode < 400) {
callback(null,result);
} else {
callback({error: result.CreateOrderResult,request : request});
}
}
});
};
});
};
ownerChangeExample(function(err,result) {
if(err) {
console.log("\n\n Request \n\n",err.request, "\n\n Response \n\n" ,err.error,"\n");
}
else {
console.log(result);
}
});https://aws.demo.ascio.com/v3/aws.wsdl (OTE)
https://aws.ascio.com/v3/aws.wsdl (Live)
Please configure the IP-Whitelisting in the portal/demo-portal.