Python CreateOrder - Register_Domain

Registers a domain. Please look at the TLD-Kit for special rules.

Response CreateOrder(string sessionId,Order order)

Response codes

ResultCodeMessageValue
200Order validated
200Order received
400Order not validatedMessages
401Authorization failed
405Access denied

CreateOrder request

PropertyDescription
sessionIdExample: o58t9fjgw9bjarp6q7byv13e
order

CreateOrderResponse

Property
CreateOrderResult
order

Python example

import zeep
import base64

wsdl = "https://aws.demo.ascio.com/2012/01/01/AscioService.wsdl"
client = zeep.Client(wsdl=wsdl,strict=False])


#Registrant
registrant =  {
	"Name" : "John Doe",
	"Address1" : "Address1Test",
	"City" : "CityTest",
	"PostalCode" : "888349",
	"CountryCode" : "DK",
	"Email" : "test@gmail.com",
	"Phone" : "+45.123456789"
}

#Contact
adminContact =  {
	"FirstName" : "John",
	"LastName" : "Doe",
	"Address1" : "Address1Test",
	"PostalCode" : "888349",
	"City" : "CityTest",
	"CountryCode" : "DK",
	"Email" : "test@gmail.com",
	"Phone" : "+45.123456789"
}

#Contact
techContact =  {
	"FirstName" : "John",
	"LastName" : "Doe",
	"Address1" : "Address1Test",
	"PostalCode" : "888349",
	"City" : "CityTest",
	"CountryCode" : "DK",
	"Email" : "test@gmail.com",
	"Phone" : "+45.123456789"
}

#Contact
billingContact =  {
	"FirstName" : "John",
	"LastName" : "Doe",
	"Address1" : "Address1Test",
	"PostalCode" : "888349",
	"City" : "CityTest",
	"CountryCode" : "DK",
	"Email" : "test@gmail.com",
	"Phone" : "+45.123456789"
}

#NameServer
nameServer1 =  {
	"HostName" : "ns1.ascio.com"
}

#NameServer
nameServer2 =  {
	"HostName" : "ns2.ascio.com"
}

#NameServers
nameServers =  {
	"NameServer1" : nameServer1,
	"NameServer2" : nameServer2
}

#Domain
domain =  {
	"DomainName" : "test-domain.com",
	"Registrant" : registrant,
	"AdminContact" : adminContact,
	"TechContact" : techContact,
	"BillingContact" : billingContact,
	"NameServers" : nameServers
}

#Order
order =  {
	"Type" : "Register_Domain",
	"Domain" : domain
}
result = client.service.CreateOrder(sessionId = "sessionId", order = order)
print(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)