Ascio Web Service v2

NodeJS SearchOrder

Search for an order on existing order objects.

Response SearchOrder(string sessionId,SearchOrderRequest orderRequest)

Response codes

ResultCodeMessageValue
200OK
401Authorization failed
405Access denied

SearchOrder Request

PropertyDescription
sessionIdExample: o58t9fjgw9bjarp6q7byv13e
orderRequest

SearchOrderResponse

PropertyDescription
SearchOrderResult
totalOrdersExample: 1
orders

NodeJS example

var soap = require("soap");

var searchOrderExample = function(callback) {

	//PagingInfo
	pageInfo =  {};
	pageInfo.PageIndex=1;
	pageInfo.PageSize=1;

	//SearchOrderRequest
	orderRequest =  {};
	orderRequest.OrderTypes=[
		{"q3:OrderType", "NotSet"}, 
		{"q3:OrderType", "Contact_Update"}, 
		{"q3:OrderType", "Change_Locks"}, 
		{"q3:OrderType", "Delete_Domain"}, 
		{"q3:OrderType", "Registrant_Details_Update"}, 
		{"q3:OrderType", "Expire_Domain"}, 
		{"q3:OrderType", "Nameserver_Update"}, 
		{"q3:OrderType", "Owner_Change"}, 
		{"q3:OrderType", "Queue_Domain"}, 
		{"q3:OrderType", "Register_Domain"}, 
		{"q3:OrderType", "Renew_Domain"}, 
		{"q3:OrderType", "Restore_Domain"}, 
		{"q3:OrderType", "Transfer_Domain"}, 
		{"q3:OrderType", "Unexpire_Domain"}, 
		{"q3:OrderType", "Transfer_Away"}, 
		{"q3:OrderType", "Autorenew_Domain"}, 
		{"q3:OrderType", "Autodelete_Domain"}, 
		{"q3:OrderType", "Defensive_Registration"}, 
		{"q3:OrderType", "Name_Watch"}, 
		{"q3:OrderType", "Domain_Details_Update"}, 
		{"q3:OrderType", "Import_Domain"}, 
		{"q3:OrderType", "Partner_Change"}, 
		{"q3:OrderType", "Support"}, 
		{"q3:OrderType", "DeQueue"}, 
		{"q3:OrderType", "Update_AuthInfo"}];
	orderRequest.OrderStatusTypes=[
		{"q3:OrderStatusType", "NotSet"}, 
		{"q3:OrderStatusType", "Received"}, 
		{"q3:OrderStatusType", "Validated"}, 
		{"q3:OrderStatusType", "Invalid"}, 
		{"q3:OrderStatusType", "Pending"}, 
		{"q3:OrderStatusType", "Processing"}, 
		{"q3:OrderStatusType", "Pending_Documentation"}, 
		{"q3:OrderStatusType", "Pending_End_User_Action"}, 
		{"q3:OrderStatusType", "Documentation_Received"}, 
		{"q3:OrderStatusType", "Documentation_Approved"}, 
		{"q3:OrderStatusType", "Documentation_Not_Approved"}, 
		{"q3:OrderStatusType", "Pending_NIC_Processing"}, 
		{"q3:OrderStatusType", "Pending_NIC_Document_Approval"}, 
		{"q3:OrderStatusType", "Pending_Post_Processing"}, 
		{"q3:OrderStatusType", "Pending_Internal_Processing"}, 
		{"q3:OrderStatusType", "Completed"}, 
		{"q3:OrderStatusType", "Failed"}, 
		{"q3:OrderStatusType", "Authentication_Failed"}];
	orderRequest.FromDate="2024-11-21T11:54:38.884+01:00";
	orderRequest.ToDate="2024-11-21T11:54:38.884+01:00";
	orderRequest.DomainName="testdomain.com";
	orderRequest.TransactionComment="TransactionCommentTest";
	orderRequest.Comments="RegistrarTag";
	orderRequest.IncludeDomainDetails=true;
	orderRequest.PageInfo=pageInfo;
	orderRequest.OrderSort="CreDateAsc";	
	soap.createClient("../AscioServiceTest.wsdl", function(err, client) {
		if(err) {
			callback(err);
		} 
		else {
			client.SearchOrder({sessionId: "sessionId", orderRequest: orderRequest}, function(err,result) {
				if(err) {
					callback({error: err, request : result.request.body});
				} else {
					if(result.SearchOrderResult.ResultCode < 400) {
						callback(null,result);	
					} else {
						callback({error: result.SearchOrderResult,request : request});
					}
				}
			});
		};
	});
};
searchOrderExample(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);
	}
});
WSDL for AWS v2
https://aws.demo.ascio.com/2012/01/01/AscioService.wsdl (OTE)
https://aws.ascio.com/2012/01/01/AscioService.wsdl (Live)
Please configure the IP-Whitelisting in the portal/demo-portal.