NAV Navbar
php shell python java go

Introduction

Welcome to the OMNILANCE API! We have implemented our API with REST. Our API supports HTTP verbs, API-keys are passed into the Rest API via the X-OMNI-APIKEY header.

RESTful interface

The base endpoint is: https://api.omnilance.com/v3/

All connections to api.omnilance.com must be issued over HTTPS.

All endpoints return either a JSON object or array.

Any endpoint can return an error.

OMNILANCE API does not maintain sessions. In other words, a request does not depend on previous requests, only its arguments. It only provides object descriptions.

Authentication

The query string request authentication method doesn't require any special HTTP headers. Instead, the required authentication elements are specified as query string parameters:

Creating a signature

Calls to the API are authenticated with secret API Key and merchant API ID, which you can find in your account settings in tab API KEY.

Query string Example value Description
X-OMNI-APIKEY 52893482385823482835872349 Your access key ID. Specifies the secret access key used to sign the request and, indirectly, the identity of the developer making the request.
X-OMNI-SIGNATURE 5acbd60f94a6ff58f0903cc5e
5a2612d8d2f2e7b48848accbdbc8fd66ceb038c
The HMAC SHA256 signature.

Calculation of the Authorization header

X-OMNI-SIGNATURE = hmac-sha256(API-KEY + ENDPOINT + PAYLOAD, SECRET-KEY)

echo -n "API-KEY+ENDPOINT+PAYLOAD" | openssl dgst -sha256 -hmac "SECRET_KEY"        

The HMAC SHA256 signature is a keyed HMAC SHA256 operation. Use your SecretKey as the key and "API-KEY + ENDPOINT + PAYLOAD" as the value for the HMAC operation.

Balance info

/v3/balance

Use this code:

<?php

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.omnilance.com/v3/balance",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => array(
    "X-OMNI-APIKEY: 52893482385823482835872349",
    "X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c",
    "content-type: application/json"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}

curl -X GET \
 https://api.omnilance.com/v3/balance \
 -H 'X-OMNI-APIKEY: 52893482385823482835872349' \
 -H 'X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c' 

import requests

url = "https://api.omnilance.com/v3/balance"

headers = {
        'Content-Type': 'application/json',
        'X-OMNI-APIKEY': '52893482385823482835872349',
        'X-OMNI-SIGNATURE': '5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c'
}

response = requests.request("GET", url, headers=headers)

print(response.text)
HttpResponse<String> response = Unirest.get("https://api.omnilance.com/v3/balance")
  .header("X-OMNI-APIKEY", "52893482385823482835872349")
  .header("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")
  .asString();
package main

import (
  "fmt"
  "net/http"
  "io/ioutil"
)

func main() {

  url := "https://api.omnilance.com/v3/balance"

  req, _ := http.NewRequest("GET", url, nil)

  req.Header.Add("X-OMNI-APIKEY", "52893482385823482835872349")
  req.Header.Add("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")

  res, _ := http.DefaultClient.Do(req)

  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))

}

balance is used to request information about financial state of personal account.

HTTP Request

Endpoint: GET https://api.omnilance.com/v3/balance

Response Parameters

Parameter Default Description
client-id string ID Client
serverTime string API Server Time
balance string Customer balance.
currency string Transaction currency. All responses will be displayed in this currency.

The above command returns JSON structured like this:

[
{
    "client-id": "3150",
    "serverTime": "2020-05-13 12:41:32",
    "balance": "87298.18",
    "currency": "UAH"
}
]

Domains

Check Availability

/v3/domains/checkAvailability

Use this code:

<?php

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.omnilance.com/v3/domains/checkAvailability",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => "{\"domainNames\":[\"so.xyz\"]}",
  CURLOPT_HTTPHEADER => array(
    "X-OMNI-APIKEY: 52893482385823482835872349",
    "X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c",
    "content-type: application/json"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}

curl -X POST \
 https://api.omnilance.com/v3/domains/checkAvailability \
 -H 'X-OMNI-APIKEY: 52893482385823482835872349' \
 -H 'X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c' \
 -H 'content-type: application/json' \
 -d '{"domainNames":["so.xyz"]}'

import requests

url = "https://api.omnilance.com/v3/domains/checkAvailability"

payload = "{\"domainNames\":[\"so.xyz\"]}"

headers = {
        'Content-Type': 'application/json',
        'X-OMNI-APIKEY': '52893482385823482835872349',
        'X-OMNI-SIGNATURE': '5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c'
}

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)
HttpResponse<String> response = Unirest.post("https://api.omnilance.com/v3/domains/checkAvailability")
  .header("X-OMNI-APIKEY", "52893482385823482835872349")
  .header("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")
  .header("content-type", "application/json")
  .body("{\"domainNames\":[\"so.xyz\"]}")
  .asString();
package main

import (
  "fmt"
  "strings"
  "net/http"
  "io/ioutil"
)

func main() {

  url := "https://api.omnilance.com/v3/domains/checkAvailability"

  payload := strings.NewReader("{\"domainNames\":[\"so.xyz\"]}")

  req, _ := http.NewRequest("POST", url, payload)

  req.Header.Add("X-OMNI-APIKEY", "52893482385823482835872349")
  req.Header.Add("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")
  req.Header.Add("content-type", "application/json")

  res, _ := http.DefaultClient.Do(req)

  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))

}

The above command returns JSON structured like this:

{
    "results": [
        {
            "domainName": "so.xyz",
            "sdn": "so",
            "tld": "xyz",
            "status": "available",
            "purchaseCost": "111014.400000",
            "renewalCost": "111014.400000",
            "premium": true,
            "periodMin": "1",
            "periodMax": "10"
        }
    ]
}

CheckAvailability is used for check domain existing in registry or to check possibility of new domain registration.
You can specify a maximum of 50 domains.

HTTP Method

POST

HTTP Request

Endpoint: https://api.omnilance.com/v3/domains/checkAvailability

Query Parameters

Parameter Default Description
domainNames []string domainNames is the list of domains to check if they are available.

Response Parameters

Parameter Default Description
results [] Results of the search are returned here.
error string Return an error code.
message string Return detailed information.

[]Results Parameter:

Register Domain

СreateDomain - registers a domain name. For premium domains, you must specify the purchase price field.

/v3/domains/createDomain

Use this code:

<?php

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.omnilance.com/v3/domains/createDomain",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => "{\"domain\":{\"domainName\":\"so.xyz\",\"nameservers\":[\"ns1.rx-name.net\",\"ns2.rx-name.net\",\"ns3.rx-name.net\"],\"contacts\":{\"reg-contact\":{\"name\":\"Jone Omni\",\"company-name\":\"OMNILANCE LTD\",\"address1\":\"77 North Star street\",\"city\":\"North\",\"state\":\"North Pole\",\"country\":\"UA\",\"phone\":\"380.931700001\",\"email\":\"alex@so.xyz\",\"zipcode\":10000},\"admin-contact\":{\"name\":\"Jone Omni\",\"company-name\":\"OMNILANCE LTD\",\"address1\":\"77 North Star street\",\"city\":\"North\",\"state\":\"North Pole\",\"country\":\"UA\",\"phone\":\"380.931700001\",\"email\":\"alex@so.xyz\",\"zipcode\":10000},\"tech-contact\":{\"name\":\"Jone Omni\",\"company-name\":\"OMNILANCE LTD\",\"address1\":\"77 North Star street\",\"city\":\"North\",\"state\":\"North Pole\",\"country\":\"UA\",\"phone\":\"380.931700001\",\"email\":\"alex@so.xyz\",\"zipcode\":10000},\"billing-contact\":{\"name\":\"Jone Omni\",\"company-name\":\"OMNILANCE LTD\",\"address1\":\"77 North Star street\",\"city\":\"North\",\"state\":\"North Pole\",\"country\":\"UA\",\"phone\":\"380.931700001\",\"email\":\"alex@so.xyz\",\"zipcode\":10000}},\"privacyEnabled\":false,\"lockedEnabled\":false,\"autorenewEnabled\":false},\"purchaseCost\":\"111014.400000\",\"years\":1}",
  CURLOPT_HTTPHEADER => array(
    "X-OMNI-APIKEY: 52893482385823482835872349",
    "X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c",
    "content-type: application/json"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}

curl -X POST \
 https://api.omnilance.com/v3/domains/createDomain \
 -H 'X-OMNI-APIKEY: 52893482385823482835872349' \
 -H 'X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c ' \
 -H 'content-type: application/json' \
 -d '{"domain":{"domainName":"so.xyz","nameservers":["ns1.rx-name.net","ns2.rx-name.net","ns3.rx-name.net"],"contacts":{"reg-contact":{"name":"Jone Omni","company-name":"OMNILANCE LTD","address1":"77 North Star street","city":"North","state":"North Pole","country":"UA","phone":"380.931700001","email":"alex@so.xyz","zipcode":10000},"admin-contact":{"name":"Jone Omni","company-name":"OMNILANCE LTD","address1":"77 North Star street","city":"North","state":"North Pole","country":"UA","phone":"380.931700001","email":"alex@so.xyz","zipcode":10000},"tech-contact":{"name":"Jone Omni","company-name":"OMNILANCE LTD","address1":"77 North Star street","city":"North","state":"North Pole","country":"UA","phone":"380.931700001","email":"alex@so.xyz","zipcode":10000},"billing-contact":{"name":"Jone Omni","company-name":"OMNILANCE LTD","address1":"77 North Star street","city":"North","state":"North Pole","country":"UA","phone":"380.931700001","email":"alex@so.xyz","zipcode":10000}},"privacyEnabled":false,"lockedEnabled":false,"autorenewEnabled":false},"years":1}'

import requests

url = "https://api.omnilance.com/v3/domains/createDomain"

payload = "{\"domain\":{\"domainName\":\"so.xyz\",\"nameservers\":[\"ns1.rx-name.net\",\"ns2.rx-name.net\",\"ns3.rx-name.net\"],\"contacts\":{\"reg-contact\":{\"name\":\"Jone Omni\",\"company-name\":\"OMNILANCE LTD\",\"address1\":\"77 North Star street\",\"city\":\"North\",\"state\":\"North Pole\",\"country\":\"UA\",\"phone\":\"380.931700001\",\"email\":\"alex@so.xyz\",\"zipcode\":10000},\"admin-contact\":{\"name\":\"Jone Omni\",\"company-name\":\"OMNILANCE LTD\",\"address1\":\"77 North Star street\",\"city\":\"North\",\"state\":\"North Pole\",\"country\":\"UA\",\"phone\":\"380.931700001\",\"email\":\"alex@so.xyz\",\"zipcode\":10000},\"tech-contact\":{\"name\":\"Jone Omni\",\"company-name\":\"OMNILANCE LTD\",\"address1\":\"77 North Star street\",\"city\":\"North\",\"state\":\"North Pole\",\"country\":\"UA\",\"phone\":\"380.931700001\",\"email\":\"alex@so.xyz\",\"zipcode\":10000},\"billing-contact\":{\"name\":\"Jone Omni\",\"company-name\":\"OMNILANCE LTD\",\"address1\":\"77 North Star street\",\"city\":\"North\",\"state\":\"North Pole\",\"country\":\"UA\",\"phone\":\"380.931700001\",\"email\":\"alex@so.xyz\",\"zipcode\":10000}},\"privacyEnabled\":false,\"lockedEnabled\":false,\"autorenewEnabled\":false},\"purchaseCost\":\"111014.400000\",\"years\":1}"

headers = {
        'Content-Type': 'application/json',
        'X-OMNI-APIKEY': '52893482385823482835872349',
        'X-OMNI-SIGNATURE': '5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c'
}

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)
HttpResponse<String> response = Unirest.post("https://api.omnilance.com/v3/domains/createDomain")
  .header("X-OMNI-APIKEY", "52893482385823482835872349")
  .header("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")
  .header("content-type", "application/json")
  .body("{\"domain\":{\"domainName\":\"so.xyz\",\"nameservers\":[\"ns1.rx-name.net\",\"ns2.rx-name.net\",\"ns3.rx-name.net\"],\"contacts\":{\"reg-contact\":{\"name\":\"Jone Omni\",\"company-name\":\"OMNILANCE LTD\",\"address1\":\"77 North Star street\",\"city\":\"North\",\"state\":\"North Pole\",\"country\":\"UA\",\"phone\":\"380.931700001\",\"email\":\"alex@so.xyz\",\"zipcode\":10000},\"admin-contact\":{\"name\":\"Jone Omni\",\"company-name\":\"OMNILANCE LTD\",\"address1\":\"77 North Star street\",\"city\":\"North\",\"state\":\"North Pole\",\"country\":\"UA\",\"phone\":\"380.931700001\",\"email\":\"alex@so.xyz\",\"zipcode\":10000},\"tech-contact\":{\"name\":\"Jone Omni\",\"company-name\":\"OMNILANCE LTD\",\"address1\":\"77 North Star street\",\"city\":\"North\",\"state\":\"North Pole\",\"country\":\"UA\",\"phone\":\"380.931700001\",\"email\":\"alex@so.xyz\",\"zipcode\":10000},\"billing-contact\":{\"name\":\"Jone Omni\",\"company-name\":\"OMNILANCE LTD\",\"address1\":\"77 North Star street\",\"city\":\"North\",\"state\":\"North Pole\",\"country\":\"UA\",\"phone\":\"380.931700001\",\"email\":\"alex@so.xyz\",\"zipcode\":10000}},\"privacyEnabled\":false,\"lockedEnabled\":false,\"autorenewEnabled\":false},\"purchaseCost\":\"111014.400000\",\"years\":1}")
  .asString();
package main

import (
  "fmt"
  "strings"
  "net/http"
  "io/ioutil"
)

func main() {

  url := "https://api.omnilance.com/v3/domains/createDomain"

  payload := strings.NewReader("{\"domain\":{\"domainName\":\"so.xyz\",\"nameservers\":[\"ns1.rx-name.net\",\"ns2.rx-name.net\",\"ns3.rx-name.net\"],\"contacts\":{\"reg-contact\":{\"name\":\"Jone Omni\",\"company-name\":\"OMNILANCE LTD\",\"address1\":\"77 North Star street\",\"city\":\"North\",\"state\":\"North Pole\",\"country\":\"UA\",\"phone\":\"380.931700001\",\"email\":\"alex@so.xyz\",\"zipcode\":10000},\"admin-contact\":{\"name\":\"Jone Omni\",\"company-name\":\"OMNILANCE LTD\",\"address1\":\"77 North Star street\",\"city\":\"North\",\"state\":\"North Pole\",\"country\":\"UA\",\"phone\":\"380.931700001\",\"email\":\"alex@so.xyz\",\"zipcode\":10000},\"tech-contact\":{\"name\":\"Jone Omni\",\"company-name\":\"OMNILANCE LTD\",\"address1\":\"77 North Star street\",\"city\":\"North\",\"state\":\"North Pole\",\"country\":\"UA\",\"phone\":\"380.931700001\",\"email\":\"alex@so.xyz\",\"zipcode\":10000},\"billing-contact\":{\"name\":\"Jone Omni\",\"company-name\":\"OMNILANCE LTD\",\"address1\":\"77 North Star street\",\"city\":\"North\",\"state\":\"North Pole\",\"country\":\"UA\",\"phone\":\"380.931700001\",\"email\":\"alex@so.xyz\",\"zipcode\":10000}},\"privacyEnabled\":false,\"lockedEnabled\":false,\"autorenewEnabled\":false},\"purchaseCost\":\"111014.400000\",\"years\":1}")

  req, _ := http.NewRequest("POST", url, payload)

  req.Header.Add("X-OMNI-APIKEY", "52893482385823482835872349")
  req.Header.Add("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")
  req.Header.Add("content-type", "application/json")

  res, _ := http.DefaultClient.Do(req)

  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))

}

The above command returns JSON structured like this:

{
    "domain": {
        "domainName": "so.xyz",
        "nameservers": [
            "ns1.rx-name.net",
            "ns2.rx-name.net",
            "ns3.rx-name.net"
        ],
        "contacts": {
            "reg-contact": {
                "name": "Jone Omni",
                "company-name": "OMNILANCE LTD",
                "address1": "77 North Star street",
                "city": "North",
                "state": "North Pole",
                "country": "UA",
                "phone": "380.931700001",
                "email": "alex@so.xyz",
                "zipcode": "10000"
            },
            "admin-contact": {
                "name": "Jone Omni",
                "company-name": "OMNILANCE LTD",
                "address1": "77 North Star street",
                "city": "North",
                "state": "North Pole",
                "country": "UA",
                "phone": "380.931700001",
                "email": "alex@so.xyz",
                "zipcode": "10000"
            },
            "tech-contact": {
                "name": "Jone Omni",
                "company-name": "OMNILANCE LTD",
                "address1": "77 North Star street",
                "city": "North",
                "state": "North Pole",
                "country": "UA",
                "phone": "380.931700001",
                "email": "alex@so.xyz",
                "zipcode": "10000"
            },
            "billing-contact": {
                "name": "Jone Omni",
                "company-name": "OMNILANCE LTD",
                "address1": "77 North Star street",
                "city": "North",
                "state": "North Pole",
                "country": "UA",
                "phone": "380.931700001",
                "email": "alex@so.xyz",
                "zipcode": "10000"
            }
        },
        "privacyEnabled": false,
        "lockedEnabled": false,
        "autorenewEnabled": false,
        "expireDate": "2001-05-14T02:59:59Z",
        "createDate": "2002-05-13T13:46:50Z",
        "renewalCost": "111014.400000"
    },
    "order-id": "100001",
    "client-id": "100001",
    "totalPaid": "111014.400000",
    "status": "active"
}

HTTP Method

POST

HTTP Request

Endpoint: https://api.omnilance.com/v3/domains/createDomain

Query Parameters

Parameter Default Required Description
domain []Domain Model Required Domain is the domain object to create.
years int32 Optional Years - for how many years domain could be registered. Year by default is 1 if not passed and cannot be more than 10. When checking purchase Cost, make sure to adjust it accordingly.
purchaseCost float64 Optional PurchaseCost is the amount to pay for the domain. If privacyEnabled is set true, the regular price for whois protection will be added automatically. PurchaseCost is required if it is a premium domain.
tldRequirements map[string]string Optional Is a way to pass additional data that is required by some registries.

Response Parameters

Parameter Default Description
domain []Domain Model is the newly order created domain name.
order-id int32 Is an identifier for this purchase.
client-id int32 Is an identifier Client.
totalPaid float64 Is the total amount paid, including premium and whois protection.
status string is the status order domain name.
error string Return an error code.
message string Return detailed information.

Getting Details Domain

Gets details of the Domain Registration Order associated with Domain Name or with the specified Order Id.

/v3/domains/getDomain

Use this code:

<?php

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.omnilance.com/v3/domains/getDomain/so.xyz",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => array(
    "X-OMNI-APIKEY: 52893482385823482835872349",
    "X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c",
    "content-type: application/json"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}

curl -X GET \
 https://api.omnilance.com/v3/domains/getDomain/so.xyz \
 -H 'X-OMNI-APIKEY: 52893482385823482835872349' \
 -H 'X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c' 

import requests

url = "https://api.omnilance.com/v3/domains/getDomain/so.xyz"

headers = {
        'Content-Type': 'application/json',
        'X-OMNI-APIKEY': '52893482385823482835872349',
        'X-OMNI-SIGNATURE': '5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c'
}

response = requests.request("GET", url, headers=headers)

print(response.text)
HttpResponse<String> response = Unirest.get("https://api.omnilance.com/v3/domains/getDomain/so.xyz")
  .header("X-OMNI-APIKEY", "52893482385823482835872349")
  .header("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")
  .asString();
package main

import (
  "fmt"
  "net/http"
  "io/ioutil"
)

func main() {

  url := "https://api.omnilance.com/v3/domains/getDomain/so.xyz"

  req, _ := http.NewRequest("GET", url, nil)

  req.Header.Add("X-OMNI-APIKEY", "52893482385823482835872349")
  req.Header.Add("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")

  res, _ := http.DefaultClient.Do(req)

  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))

}

The above command returns JSON structured like this:

{
    "domain": {
        "domainName": "so.xyz",
        "nameservers": [
            "ns1.rx-name.net",
            "ns2.rx-name.net",
            "ns3.rx-name.net"
        ],
        "contacts": {
            "reg-contact": {
                "name": "Jone Omni",
                "company-name": "OMNILANCE LTD",
                "address1": "77 North Star street",
                "city": "North",
                "state": "North Pole",
                "zipcode": "10000",
                "country": "UA",
                "phone": "+380.931700001",
                "fax": "",
                "email": "alex@so.xyz"
            },
            "admin-contact": {
                "name": "Jone Omni",
                "company-name": "OMNILANCE LTD",
                "address1": "77 North Star street",
                "city": "North",
                "state": "North Pole",
                "zipcode": "10000",
                "country": "UA",
                "phone": "+380.931700001",
                "fax": "",
                "email": "alex@so.xyz"
            },
            "tech-contact": {
                "name": "Jone Omni",
                "company-name": "OMNILANCE LTD",
                "address1": "77 North Star street",
                "city": "North",
                "state": "North Pole",
                "zipcode": "10000",
                "country": "UA",
                "phone": "+380.931700001",
                "fax": "",
                "email": "alex@so.xyz"
            },
            "billing-contact": {
                "name": "Jone Omni",
                "company-name": "OMNILANCE LTD",
                "address1": "77 North Star street",
                "city": "North",
                "state": "North Pole",
                "zipcode": "10000",
                "country": "UA",
                "phone": "+380.931700001",
                "fax": "",
                "email": "alex@so.xyz"
            }
        },
        "privacyEnabled": false,
        "lockedEnabled": false,
        "autorenewEnabled": false,
        "createDate": "2001-05-14 09:57:37",
        "expireDate": "2002-05-15 02:59:59",
        "renewalCost": "111014.400000",
        "premium": true
    },
    "order-id": "2965",
    "status": "active"
}

HTTP Method

GET

HTTP Request

Endpoint: https://api.omnilance.com/v3/domains/getDomain/{domainName}

Query Parameters

Parameter Default Required Description
domainName
(path parameters)
string Required Domain is the domain object whose details need to be fetched.

Response Parameters

Parameter Default Description
domain []Domain Model Returns a hash map containing details of the Domain Order.
order-id string Order ID (order-id)
error string Return an error code.
message string Return detailed information.

Renew Domain

Renews the specified Domain Registration Order for specified number of years.

/v3/domains/renewDomain

Use this code:

<?php

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.omnilance.com/v3/domains/renewDomain",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => "{\"domain\":{\"domainName\":\"so.xyz\"},\"purchaseCost\":111014.400000}",
  CURLOPT_HTTPHEADER => array(
    "X-OMNI-APIKEY: 52893482385823482835872349",
    "X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c",
    "content-type: application/json"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}

curl -X POST \
 https://api.omnilance.com/v3/domains/renewDomain \
 -H 'X-OMNI-APIKEY: 52893482385823482835872349' \
 -H 'X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c ' \
 -H 'content-type: application/json' \
 -d '{"domain":{"domainName":"so.xyz"},"purchaseCost":111014.400000}'

import requests

url = "https://api.omnilance.com/v3/domains/renewDomain"

payload = "{\"domain\":{\"domainName\":\"so.xyz\"},\"purchaseCost\":111014.400000}"

headers = {
        'Content-Type': 'application/json',
        'X-OMNI-APIKEY': '52893482385823482835872349',
        'X-OMNI-SIGNATURE': '5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c'
}

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)
HttpResponse<String> response = Unirest.post("https://api.omnilance.com/v3/domains/renewDomain")
  .header("X-OMNI-APIKEY", "52893482385823482835872349")
  .header("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")
  .header("content-type", "application/json")
  .body("{\"domain\":{\"domainName\":\"so.xyz\"},\"purchaseCost\":111014.400000}")
  .asString();
package main

import (
  "fmt"
  "strings"
  "net/http"
  "io/ioutil"
)

func main() {

  url := "https://api.omnilance.com/v3/domains/renewDomain"

  payload := strings.NewReader("{\"domain\":{\"domainName\":\"so.xyz\"},\"purchaseCost\":111014.400000}")

  req, _ := http.NewRequest("POST", url, payload)

  req.Header.Add("X-OMNI-APIKEY", "52893482385823482835872349")
  req.Header.Add("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")
  req.Header.Add("content-type", "application/json")

  res, _ := http.DefaultClient.Do(req)

  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))

}

The above command returns JSON structured like this:

{
    "domain": {
        "domainName": "so.xyz",
        "nameservers": [
            "ns1.rx-name.net",
            "ns2.rx-name.net",
            "ns3.rx-name.net"
        ],
        "contacts": {
            "reg-contact": {
                "name": "Jone Omni",
                "company-name": "OMNILANCE LTD",
                "address1": "77 North Star street",
                "city": "North",
                "state": "North Pole",
                "zipcode": "10000",
                "country": "UA",
                "phone": "+380.931700001",
                "fax": "",
                "email": "alex@so.xyz"
            },
            "admin-contact": {
                "name": "Jone Omni",
                "company-name": "OMNILANCE LTD",
                "address1": "77 North Star street",
                "city": "North",
                "state": "North Pole",
                "zipcode": "10000",
                "country": "UA",
                "phone": "+380.931700001",
                "fax": "",
                "email": "alex@so.xyz"
            },
            "tech-contact": {
                "name": "Jone Omni",
                "company-name": "OMNILANCE LTD",
                "address1": "77 North Star street",
                "city": "North",
                "state": "North Pole",
                "zipcode": "10000",
                "country": "UA",
                "phone": "+380.931700001",
                "fax": "",
                "email": "alex@so.xyz"
            },
            "billing-contact": {
                "name": "Jone Omni",
                "company-name": "OMNILANCE LTD",
                "address1": "77 North Star street",
                "city": "North",
                "state": "North Pole",
                "zipcode": "10000",
                "country": "UA",
                "phone": "+380.931700001",
                "fax": "",
                "email": "alex@so.xyz"
            }
        },
        "privacyEnabled": false,
        "lockedEnabled": false,
        "autorenewEnabled": false,
        "createDate": "2001-05-14T09:57:37Z",
        "expireDate": "2003-05-15T02:59:59Z",
        "renewalCost": "111014.400000",
        "premium": true
    },
    "order-id": "2965",
    "status": "active"
}

HTTP Method

POST

HTTP Request

Endpoint: https://api.omnilance.com/v3/domains/renewDomain/{domainName}

Query Parameters

Parameter Default Required Description
domainName
(path parameters)
string Required Domain is the domain object whose renew need.
purchaseCost float64 Optional Is the amount to pay for the domain renewal.
years int32 Optional Is for how many years to renew the domain for.

Response Parameters

Parameter Default Description
domain []Domain Model Returns a hash map containing details of the Domain Order.
order-id string Order ID (order-id)
totalPaid string totalPaid is the total amount paid.
error string Return an error code.
message string Return detailed information.

Modify Name Servers

Modifies the Name Servers of the specified Domain Registration Order.

/v3/domains/setNameservers

Use this code:

<?php

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.omnilance.com/v3/domains/setNameservers/so.xyz",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => "{\"nameservers\":[\"ns1.rx-name.net\",\"ns2.rx-name.net\"]}",
  CURLOPT_HTTPHEADER => array(
    "X-OMNI-APIKEY: 52893482385823482835872349",
    "X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c",
    "content-type: application/json"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}

curl -X POST \
 https://api.omnilance.com/v3/domains/setNameservers/so.xyz \
 -H 'X-OMNI-APIKEY: 52893482385823482835872349' \
 -H 'X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c' \
 -H 'content-type: application/json' \
 -d '{"nameservers":["ns1.rx-name.net","ns2.rx-name.net"]}'

import requests

url = "https://api.omnilance.com/v3/domains/setNameservers/so.xyz"

payload = "{\"nameservers\":[\"ns1.rx-name.net\",\"ns2.rx-name.net\"]}"

headers = {
        'Content-Type': 'application/json',
        'X-OMNI-APIKEY': '52893482385823482835872349',
        'X-OMNI-SIGNATURE': '5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c'
}

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)
HttpResponse<String> response = Unirest.post("https://api.omnilance.com/v3/domains/setNameservers/so.xyz")
  .header("X-OMNI-APIKEY", "52893482385823482835872349")
  .header("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")
  .header("content-type", "application/json")
  .body("{\"nameservers\":[\"ns1.rx-name.net\",\"ns2.rx-name.net\"]}")
  .asString();
package main

import (
  "fmt"
  "strings"
  "net/http"
  "io/ioutil"
)

func main() {

  url := "https://api.omnilance.com/v3/domains/setNameservers/so.xyz"

  payload := strings.NewReader("{\"nameservers\":[\"ns1.rx-name.net\",\"ns2.rx-name.net\"]}")

  req, _ := http.NewRequest("POST", url, payload)

  req.Header.Add("X-OMNI-APIKEY", "52893482385823482835872349")
  req.Header.Add("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")
  req.Header.Add("content-type", "application/json")

  res, _ := http.DefaultClient.Do(req)

  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))

}

The above command returns JSON structured like this:

{
    "domain": {
        "domainName": "so.xyz",
        "nameservers": [
            "ns1.omnilance.com",
            "ns2.omnilance.com",
            "ns3.omnilance.com"
        ],
        "contacts": {
            "reg-contact": {
                "name": "Jone Omni",
                "company-name": "OMNILANCE LTD",
                "address1": "77 North Star street",
                "city": "North",
                "state": "North Pole",
                "zipcode": "10000",
                "country": "UA",
                "phone": "+380.931700001",
                "fax": "",
                "email": "alex@so.xyz"
            },
            "admin-contact": {
                "name": "Jone Omni",
                "company-name": "OMNILANCE LTD",
                "address1": "77 North Star street",
                "city": "North",
                "state": "North Pole",
                "zipcode": "10000",
                "country": "UA",
                "phone": "+380.931700001",
                "fax": "",
                "email": "alex@so.xyz"
            },
            "tech-contact": {
                "name": "Jone Omni",
                "company-name": "OMNILANCE LTD",
                "address1": "77 North Star street",
                "city": "North",
                "state": "North Pole",
                "zipcode": "10000",
                "country": "UA",
                "phone": "+380.931700001",
                "fax": "",
                "email": "alex@so.xyz"
            },
            "billing-contact": {
                "name": "Jone Omni",
                "company-name": "OMNILANCE LTD",
                "address1": "77 North Star street",
                "city": "North",
                "state": "North Pole",
                "zipcode": "10000",
                "country": "UA",
                "phone": "+380.931700001",
                "fax": "",
                "email": "alex@so.xyz"
            }
        },
        "privacyEnabled": false,
        "lockedEnabled": false,
        "autorenewEnabled": false,
        "createDate": "2001-05-14T09:57:37Z",
        "expireDate": "2003-05-15T02:59:59Z",
        "renewalCost": "111014.400000",
        "premium": true
    },
    "order-id": "2965",
    "status": "active"
}

HTTP Method

POST

HTTP Request

Endpoint: https://api.omnilance.com/v3/domains/setNameservers/{domainName}

Query Parameters

Parameter Default Required Description
domainName
(path parameters)
string Required Domain Name whose Name Servers you want to modify.
nameservers []string Required New Name Servers.

Response Parameters

Parameter Default Description
domain []Domain Model Returns a hash map containing details of the Domain Order.
order-id string Order ID (order-id)
error string Return an error code.
message string Return detailed information.

Enable Transfer Prohibited

LockTransfer - will lock a domain so that it cannot be transfered to another registrar.

/v3/domains/lockTransfer

Use this code:

<?php

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.omnilance.com/v3/domains/lockTransfer/so.xyz",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => "",
  CURLOPT_HTTPHEADER => array(
    "X-OMNI-APIKEY: 52893482385823482835872349",
    "X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c",
    "content-type: application/json"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}

curl -X POST \
 https://api.omnilance.com/v3/domains/lockTransfer/so.xyz \
 -H 'X-OMNI-APIKEY: 52893482385823482835872349' \
 -H 'X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c' \
 -H 'content-type: application/json' 

import requests

url = "https://api.omnilance.com/v3/domains/lockTransfer/so.xyz"

payload = ""

headers = {
        'Content-Type': 'application/json',
        'X-OMNI-APIKEY': '52893482385823482835872349',
        'X-OMNI-SIGNATURE': '5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c'
}

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)
HttpResponse<String> response = Unirest.post("https://api.omnilance.com/v3/domains/lockTransfer/so.xyz")
  .header("X-OMNI-APIKEY", "52893482385823482835872349")
  .header("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")
  .header("content-type", "application/json")
  .body("")
  .asString();
package main

import (
  "fmt"
  "strings"
  "net/http"
  "io/ioutil"
)

func main() {

  url := "https://api.omnilance.com/v3/domains/lockTransfer/so.xyz"

  payload := strings.NewReader("")

  req, _ := http.NewRequest("POST", url, payload)

  req.Header.Add("X-OMNI-APIKEY", "52893482385823482835872349")
  req.Header.Add("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")
  req.Header.Add("content-type", "application/json")

  res, _ := http.DefaultClient.Do(req)

  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))

}

The above command returns JSON structured like this:

{
    "domain": {
        "domainName": "so.xyz",
        "nameservers": [
            "ns1.omnilance.com",
            "ns2.omnilance.com",
            "ns3.omnilance.com"
        ],
        "contacts": {
            "reg-contact": {
                "name": "Jone Omni",
                "company-name": "OMNILANCE LTD",
                "address1": "77 North Star street",
                "city": "North",
                "state": "North Pole",
                "zipcode": "10000",
                "country": "UA",
                "phone": "+380.931700001",
                "fax": "",
                "email": "alex@so.xyz"
            },
            "admin-contact": {
                "name": "Jone Omni",
                "company-name": "OMNILANCE LTD",
                "address1": "77 North Star street",
                "city": "North",
                "state": "North Pole",
                "zipcode": "10000",
                "country": "UA",
                "phone": "+380.931700001",
                "fax": "",
                "email": "alex@so.xyz"
            },
            "tech-contact": {
                "name": "Jone Omni",
                "company-name": "OMNILANCE LTD",
                "address1": "77 North Star street",
                "city": "North",
                "state": "North Pole",
                "zipcode": "10000",
                "country": "UA",
                "phone": "+380.931700001",
                "fax": "",
                "email": "alex@so.xyz"
            },
            "billing-contact": {
                "name": "Jone Omni",
                "company-name": "OMNILANCE LTD",
                "address1": "77 North Star street",
                "city": "North",
                "state": "North Pole",
                "zipcode": "10000",
                "country": "UA",
                "phone": "+380.931700001",
                "fax": "",
                "email": "alex@so.xyz"
            }
        },
        "privacyEnabled": false,
        "lockedEnabled": true,
        "autorenewEnabled": false,
        "createDate": "2001-05-14T09:57:37Z",
        "expireDate": "2003-05-15T02:59:59Z",
        "renewalCost": "111014.400000",
        "premium": true
    },
    "order-id": "2965",
    "status": "active"
}

HTTP Method

POST

HTTP Request

Endpoint: https://api.omnilance.com/v3/domains/lockTransfer/{domainName}

Query Parameters

Parameter Default Required Description
domainName
(path parameters)
string Required Domain Name to which you want to set Transfer Prohibited.

Response Parameters

Parameter Default Description
domain []Domain Model Returns a hash map containing details of the Domain Order.
order-id string Order ID (order-id)
error string Return an error code.
message string Return detailed information.

Disable Transfer Prohibited

UnLockTransfer - will unlock a domain so that it can be transfered to another registrar.

/v3/domains/unlockTransfer

Use this code:

<?php

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.omnilance.com/v3/domains/unlockTransfer/so.xyz",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => "",
  CURLOPT_HTTPHEADER => array(
    "X-OMNI-APIKEY: 52893482385823482835872349",
    "X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c",
    "content-type: application/json"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}

curl -X POST \
 https://api.omnilance.com/v3/domains/unlockTransfer/so.xyz \
 -H 'X-OMNI-APIKEY: 52893482385823482835872349' \
 -H 'X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c' \
 -H 'content-type: application/json' 

import requests

url = "https://api.omnilance.com/v3/domains/unlockTransfer/so.xyz"

payload = ""

headers = {
        'Content-Type': 'application/json',
        'X-OMNI-APIKEY': '52893482385823482835872349',
        'X-OMNI-SIGNATURE': '5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c'
}

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)
HttpResponse<String> response = Unirest.post("https://api.omnilance.com/v3/domains/unlockTransfer/so.xyz")
  .header("X-OMNI-APIKEY", "52893482385823482835872349")
  .header("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")
  .header("content-type", "application/json")
  .body("")
  .asString();
package main

import (
  "fmt"
  "strings"
  "net/http"
  "io/ioutil"
)

func main() {

  url := "https://api.omnilance.com/v3/domains/unlockTransfer/so.xyz"

  payload := strings.NewReader("")

  req, _ := http.NewRequest("POST", url, payload)

  req.Header.Add("X-OMNI-APIKEY", "52893482385823482835872349")
  req.Header.Add("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")
  req.Header.Add("content-type", "application/json")

  res, _ := http.DefaultClient.Do(req)

  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))

}

The above command returns JSON structured like this:

{
    "domain": {
        "domainName": "so.xyz",
        "nameservers": [
            "ns1.omnilance.com",
            "ns2.omnilance.com",
            "ns3.omnilance.com"
        ],
        "contacts": {
            "reg-contact": {
                "name": "Jone Omni",
                "company-name": "OMNILANCE LTD",
                "address1": "77 North Star street",
                "city": "North",
                "state": "North Pole",
                "zipcode": "10000",
                "country": "UA",
                "phone": "+380.931700001",
                "fax": "",
                "email": "alex@so.xyz"
            },
            "admin-contact": {
                "name": "Jone Omni",
                "company-name": "OMNILANCE LTD",
                "address1": "77 North Star street",
                "city": "North",
                "state": "North Pole",
                "zipcode": "10000",
                "country": "UA",
                "phone": "+380.931700001",
                "fax": "",
                "email": "alex@so.xyz"
            },
            "tech-contact": {
                "name": "Jone Omni",
                "company-name": "OMNILANCE LTD",
                "address1": "77 North Star street",
                "city": "North",
                "state": "North Pole",
                "zipcode": "10000",
                "country": "UA",
                "phone": "+380.931700001",
                "fax": "",
                "email": "alex@so.xyz"
            },
            "billing-contact": {
                "name": "Jone Omni",
                "company-name": "OMNILANCE LTD",
                "address1": "77 North Star street",
                "city": "North",
                "state": "North Pole",
                "zipcode": "10000",
                "country": "UA",
                "phone": "+380.931700001",
                "fax": "",
                "email": "alex@so.xyz"
            }
        },
        "privacyEnabled": false,
        "lockedEnabled": true,
        "autorenewEnabled": false,
        "createDate": "2001-05-14T09:57:37Z",
        "expireDate": "2003-05-15T02:59:59Z",
        "renewalCost": "111014.400000",
        "premium": true
    },
    "order-id": "2965",
    "status": "active"
}

HTTP Method

POST

HTTP Request

Endpoint: https://api.omnilance.com/v3/domains/unlockTransfer/{domainName}

Query Parameters

Parameter Default Required Description
domainName
(path parameters)
string Required Domain Name to which you want to unset Transfer Prohibited.

Response Parameters

Parameter Default Description
domain []Domain Model Returns a hash map containing details of the Domain Order.
order-id string Order ID (order-id)
error string Return an error code.
message string Return detailed information.

Suspend Domain

LockDomain - suspend the domain will remove it from the delegation of DNS.

/v3/domains/lock

Use this code:

<?php

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.omnilance.com/v3/domains/lock/so.xyz",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => "",
  CURLOPT_HTTPHEADER => array(
    "X-OMNI-APIKEY: 52893482385823482835872349",
    "X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c",
    "content-type: application/json"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}

curl -X POST \
 https://api.omnilance.com/v3/domains/lock/so.xyz \
 -H 'X-OMNI-APIKEY: 52893482385823482835872349' \
 -H 'X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c' \
 -H 'content-type: application/json' 

import requests

url = "https://api.omnilance.com/v3/domains/lock/so.xyz"

payload = ""

headers = {
        'Content-Type': 'application/json',
        'X-OMNI-APIKEY': '52893482385823482835872349',
        'X-OMNI-SIGNATURE': '5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c'
}

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)
HttpResponse<String> response = Unirest.post("https://api.omnilance.com/v3/domains/lock/so.xyz")
  .header("X-OMNI-APIKEY", "52893482385823482835872349")
  .header("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")
  .header("content-type", "application/json")
  .body("")
  .asString();
package main

import (
  "fmt"
  "strings"
  "net/http"
  "io/ioutil"
)

func main() {

  url := "https://api.omnilance.com/v3/domains/lock/so.xyz"

  payload := strings.NewReader("")

  req, _ := http.NewRequest("POST", url, payload)

  req.Header.Add("X-OMNI-APIKEY", "52893482385823482835872349")
  req.Header.Add("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")
  req.Header.Add("content-type", "application/json")

  res, _ := http.DefaultClient.Do(req)

  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))

}

The above command returns JSON structured like this:

{
    "domain": {
        "domainName": "so.xyz",
        "nameservers": [
            "ns1.omnilance.com",
            "ns2.omnilance.com",
            "ns3.omnilance.com"
        ],
        "contacts": {
            "reg-contact": {
                "name": "Jone Omni",
                "company-name": "OMNILANCE LTD",
                "address1": "77 North Star street",
                "city": "North",
                "state": "North Pole",
                "zipcode": "10000",
                "country": "UA",
                "phone": "+380.931700001",
                "fax": "",
                "email": "alex@so.xyz"
            },
            "admin-contact": {
                "name": "Jone Omni",
                "company-name": "OMNILANCE LTD",
                "address1": "77 North Star street",
                "city": "North",
                "state": "North Pole",
                "zipcode": "10000",
                "country": "UA",
                "phone": "+380.931700001",
                "fax": "",
                "email": "alex@so.xyz"
            },
            "tech-contact": {
                "name": "Jone Omni",
                "company-name": "OMNILANCE LTD",
                "address1": "77 North Star street",
                "city": "North",
                "state": "North Pole",
                "zipcode": "10000",
                "country": "UA",
                "phone": "+380.931700001",
                "fax": "",
                "email": "alex@so.xyz"
            },
            "billing-contact": {
                "name": "Jone Omni",
                "company-name": "OMNILANCE LTD",
                "address1": "77 North Star street",
                "city": "North",
                "state": "North Pole",
                "zipcode": "10000",
                "country": "UA",
                "phone": "+380.931700001",
                "fax": "",
                "email": "alex@so.xyz"
            }
        },
        "privacyEnabled": false,
        "lockedEnabled": true,
        "autorenewEnabled": false,
        "createDate": "2001-05-14T09:57:37Z",
        "expireDate": "2003-05-15T02:59:59Z",
        "renewalCost": "111014.400000",
        "premium": true
    },
    "order-id": "2965",
    "status": "suspended"
}

HTTP Method

POST

HTTP Request

Endpoint: https://api.omnilance.com/v3/domains/lock/{domainName}

Query Parameters

Parameter Default Required Description
domainName
(path parameters)
string Required Domain Name to which you want to set suspend domain.

Response Parameters

Parameter Default Description
domain []Domain Model Returns a hash map containing details of the Domain Order.
order-id string Order ID (order-id)
error string Return an error code.
message string Return detailed information.

Unsuspend Domain

UnLock - unsuspend the domain will remove it from the delegation of DNS.

/v3/domains/unlock

Use this code:

<?php

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.omnilance.com/v3/domains/unlock/so.xyz",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => "",
  CURLOPT_HTTPHEADER => array(
    "X-OMNI-APIKEY: 52893482385823482835872349",
    "X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c",
    "content-type: application/json"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}

curl -X POST \
 https://api.omnilance.com/v3/domains/unlock/so.xyz \
 -H 'X-OMNI-APIKEY: 52893482385823482835872349' \
 -H 'X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c' \
 -H 'content-type: application/json' 

import requests

url = "https://api.omnilance.com/v3/domains/unlock/so.xyz"

payload = ""

headers = {
        'Content-Type': 'application/json',
        'X-OMNI-APIKEY': '52893482385823482835872349',
        'X-OMNI-SIGNATURE': '5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c'
}

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)
HttpResponse<String> response = Unirest.post("https://api.omnilance.com/v3/domains/unlock/so.xyz")
  .header("X-OMNI-APIKEY", "52893482385823482835872349")
  .header("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")
  .header("content-type", "application/json")
  .body("")
  .asString();
package main

import (
  "fmt"
  "strings"
  "net/http"
  "io/ioutil"
)

func main() {

  url := "https://api.omnilance.com/v3/domains/unlock/so.xyz"

  payload := strings.NewReader("")

  req, _ := http.NewRequest("POST", url, payload)

  req.Header.Add("X-OMNI-APIKEY", "52893482385823482835872349")
  req.Header.Add("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")
  req.Header.Add("content-type", "application/json")

  res, _ := http.DefaultClient.Do(req)

  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))

}

The above command returns JSON structured like this:

{
    "domain": {
        "domainName": "so.xyz",
        "nameservers": [
            "ns1.omnilance.com",
            "ns2.omnilance.com",
            "ns3.omnilance.com"
        ],
        "contacts": {
            "reg-contact": {
                "name": "Jone Omni",
                "company-name": "OMNILANCE LTD",
                "address1": "77 North Star street",
                "city": "North",
                "state": "North Pole",
                "zipcode": "10000",
                "country": "UA",
                "phone": "+380.931700001",
                "fax": "",
                "email": "alex@so.xyz"
            },
            "admin-contact": {
                "name": "Jone Omni",
                "company-name": "OMNILANCE LTD",
                "address1": "77 North Star street",
                "city": "North",
                "state": "North Pole",
                "zipcode": "10000",
                "country": "UA",
                "phone": "+380.931700001",
                "fax": "",
                "email": "alex@so.xyz"
            },
            "tech-contact": {
                "name": "Jone Omni",
                "company-name": "OMNILANCE LTD",
                "address1": "77 North Star street",
                "city": "North",
                "state": "North Pole",
                "zipcode": "10000",
                "country": "UA",
                "phone": "+380.931700001",
                "fax": "",
                "email": "alex@so.xyz"
            },
            "billing-contact": {
                "name": "Jone Omni",
                "company-name": "OMNILANCE LTD",
                "address1": "77 North Star street",
                "city": "North",
                "state": "North Pole",
                "zipcode": "10000",
                "country": "UA",
                "phone": "+380.931700001",
                "fax": "",
                "email": "alex@so.xyz"
            }
        },
        "privacyEnabled": false,
        "lockedEnabled": true,
        "autorenewEnabled": false,
        "createDate": "2001-05-14T09:57:37Z",
        "expireDate": "2003-05-15T02:59:59Z",
        "renewalCost": "111014.400000",
        "premium": true
    },
    "order-id": "2965",
    "status": "active"
}

HTTP Method

POST

HTTP Request

Endpoint: https://api.omnilance.com/v3/domains/unlock/{domainName}

Query Parameters

Parameter Default Required Description
domainName
(path parameters)
string Required Domain Name to which you want to set unsuspend domain.

Response Parameters

Parameter Default Description
domain []Domain Model Returns a hash map containing details of the Domain Order.
order-id string Order ID (order-id)
error string Return an error code.
message string Return detailed information.

Enable lockUpdate

LockUpdate - prohibits domain update, also prohibits updating and changing registrant contacts.

/v3/domains/lockUpdate

Use this code:

<?php

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.omnilance.com/v3/domains/lockUpdate/so.xyz",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => "",
  CURLOPT_HTTPHEADER => array(
    "X-OMNI-APIKEY: 52893482385823482835872349",
    "X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c",
    "content-type: application/json"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}

curl -X POST \
 https://api.omnilance.com/v3/domains/lockUpdate/so.xyz \
 -H 'X-OMNI-APIKEY: 52893482385823482835872349' \
 -H 'X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c' \
 -H 'content-type: application/json' 

import requests

url = "https://api.omnilance.com/v3/domains/lockUpdate/so.xyz"

payload = ""

headers = {
        'Content-Type': 'application/json',
        'X-OMNI-APIKEY': '52893482385823482835872349',
        'X-OMNI-SIGNATURE': '5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c'
}

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)
HttpResponse<String> response = Unirest.post("https://api.omnilance.com/v3/domains/lockUpdate/so.xyz")
  .header("X-OMNI-APIKEY", "52893482385823482835872349")
  .header("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")
  .header("content-type", "application/json")
  .body("")
  .asString();
package main

import (
  "fmt"
  "strings"
  "net/http"
  "io/ioutil"
)

func main() {

  url := "https://api.omnilance.com/v3/domains/lockUpdate/so.xyz"

  payload := strings.NewReader("")

  req, _ := http.NewRequest("POST", url, payload)

  req.Header.Add("X-OMNI-APIKEY", "52893482385823482835872349")
  req.Header.Add("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")
  req.Header.Add("content-type", "application/json")

  res, _ := http.DefaultClient.Do(req)

  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))

}

The above command returns JSON structured like this:

{
    "domain": {
        "domainName": "so.xyz",
        "nameservers": [
            "ns1.omnilance.com",
            "ns2.omnilance.com",
            "ns3.omnilance.com"
        ],
        "contacts": {
            "reg-contact": {
                "name": "Jone Omni",
                "company-name": "OMNILANCE LTD",
                "address1": "77 North Star street",
                "city": "North",
                "state": "North Pole",
                "zipcode": "10000",
                "country": "UA",
                "phone": "+380.931700001",
                "fax": "",
                "email": "alex@so.xyz"
            },
            "admin-contact": {
                "name": "Jone Omni",
                "company-name": "OMNILANCE LTD",
                "address1": "77 North Star street",
                "city": "North",
                "state": "North Pole",
                "zipcode": "10000",
                "country": "UA",
                "phone": "+380.931700001",
                "fax": "",
                "email": "alex@so.xyz"
            },
            "tech-contact": {
                "name": "Jone Omni",
                "company-name": "OMNILANCE LTD",
                "address1": "77 North Star street",
                "city": "North",
                "state": "North Pole",
                "zipcode": "10000",
                "country": "UA",
                "phone": "+380.931700001",
                "fax": "",
                "email": "alex@so.xyz"
            },
            "billing-contact": {
                "name": "Jone Omni",
                "company-name": "OMNILANCE LTD",
                "address1": "77 North Star street",
                "city": "North",
                "state": "North Pole",
                "zipcode": "10000",
                "country": "UA",
                "phone": "+380.931700001",
                "fax": "",
                "email": "alex@so.xyz"
            }
        },
        "privacyEnabled": false,
        "lockedEnabled": true,
        "autorenewEnabled": false,
        "updateProhibited": true,
        "createDate": "2001-05-14T09:57:37Z",
        "expireDate": "2003-05-15T02:59:59Z",
        "renewalCost": "111014.400000",
        "premium": true
    },
    "order-id": "2965",
    "status": "active"
}

HTTP Method

POST

HTTP Request

Endpoint: https://api.omnilance.com/v3/domains/lockUpdate/{domainName}

Query Parameters

Parameter Default Required Description
domainName
(path parameters)
string Required Domain Name to which you want to set unsuspend domain.

Response Parameters

Parameter Default Description
domain []Domain Model Returns a hash map containing details of the Domain Order.
order-id string Order ID (order-id)
error string Return an error code.
message string Return detailed information.

Disable lockUpdate

UnLockUpdate - removes domain update prohibition, also removes prohibition of updating and changing registrant contacts

/v3/domains/unlockUpdate

Use this code:

<?php

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.omnilance.com/v3/domains/unlockUpdate/so.xyz",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => "",
  CURLOPT_HTTPHEADER => array(
    "X-OMNI-APIKEY: 52893482385823482835872349",
    "X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c",
    "content-type: application/json"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}

curl -X POST \
 https://api.omnilance.com/v3/domains/unlockUpdate/so.xyz \
 -H 'X-OMNI-APIKEY: 52893482385823482835872349' \
 -H 'X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c' \
 -H 'content-type: application/json' 

import requests

url = "https://api.omnilance.com/v3/domains/unlockUpdate/so.xyz"

payload = ""

headers = {
        'Content-Type': 'application/json',
        'X-OMNI-APIKEY': '52893482385823482835872349',
        'X-OMNI-SIGNATURE': '5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c'
}

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)
HttpResponse<String> response = Unirest.post("https://api.omnilance.com/v3/domains/unlockUpdate/so.xyz")
  .header("X-OMNI-APIKEY", "52893482385823482835872349")
  .header("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")
  .header("content-type", "application/json")
  .body("")
  .asString();
package main

import (
  "fmt"
  "strings"
  "net/http"
  "io/ioutil"
)

func main() {

  url := "https://api.omnilance.com/v3/domains/unlockUpdate/so.xyz"

  payload := strings.NewReader("")

  req, _ := http.NewRequest("POST", url, payload)

  req.Header.Add("X-OMNI-APIKEY", "52893482385823482835872349")
  req.Header.Add("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")
  req.Header.Add("content-type", "application/json")

  res, _ := http.DefaultClient.Do(req)

  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))

}

The above command returns JSON structured like this:

{
    "domain": {
        "domainName": "so.xyz",
        "nameservers": [
            "ns1.omnilance.com",
            "ns2.omnilance.com",
            "ns3.omnilance.com"
        ],
        "contacts": {
            "reg-contact": {
                "name": "Jone Omni",
                "company-name": "OMNILANCE LTD",
                "address1": "77 North Star street",
                "city": "North",
                "state": "North Pole",
                "zipcode": "10000",
                "country": "UA",
                "phone": "+380.931700001",
                "fax": "",
                "email": "alex@so.xyz"
            },
            "admin-contact": {
                "name": "Jone Omni",
                "company-name": "OMNILANCE LTD",
                "address1": "77 North Star street",
                "city": "North",
                "state": "North Pole",
                "zipcode": "10000",
                "country": "UA",
                "phone": "+380.931700001",
                "fax": "",
                "email": "alex@so.xyz"
            },
            "tech-contact": {
                "name": "Jone Omni",
                "company-name": "OMNILANCE LTD",
                "address1": "77 North Star street",
                "city": "North",
                "state": "North Pole",
                "zipcode": "10000",
                "country": "UA",
                "phone": "+380.931700001",
                "fax": "",
                "email": "alex@so.xyz"
            },
            "billing-contact": {
                "name": "Jone Omni",
                "company-name": "OMNILANCE LTD",
                "address1": "77 North Star street",
                "city": "North",
                "state": "North Pole",
                "zipcode": "10000",
                "country": "UA",
                "phone": "+380.931700001",
                "fax": "",
                "email": "alex@so.xyz"
            }
        },
        "privacyEnabled": false,
        "lockedEnabled": false,
        "autorenewEnabled": false,
        "updateProhibited": false,
        "createDate": "2001-05-14T09:57:37Z",
        "expireDate": "2003-05-15T02:59:59Z",
        "renewalCost": "111014.400000",
        "premium": true
    },
    "order-id": "2965",
    "status": "active"
}

HTTP Method

POST

HTTP Request

Endpoint: https://api.omnilance.com/v3/domains/unlockUpdate/{domainName}

Query Parameters

Parameter Default Required Description
domainName
(path parameters)
string Required Domain Name to which you want to set unsuspend domain.

Response Parameters

Parameter Default Description
domain []Domain Model Returns a hash map containing details of the Domain Order.
order-id string Order ID (order-id)
error string Return an error code.
message string Return detailed information.

Enable AutoRenew

EnableAutorenew - enables the domain name to be automatically renewed when it gets close to expiring.

/v3/domains/enableAutorenew

Use this code:

<?php

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.omnilance.com/v3/domains/enableAutorenew/so.xyz",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => "",
  CURLOPT_HTTPHEADER => array(
    "X-OMNI-APIKEY: 52893482385823482835872349",
    "X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c",
    "content-type: application/json"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}

curl -X POST \
 https://api.omnilance.com/v3/domains/enableAutorenew/so.xyz \
 -H 'X-OMNI-APIKEY: 52893482385823482835872349' \
 -H 'X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c' \
 -H 'content-type: application/json' 

import requests

url = "https://api.omnilance.com/v3/domains/enableAutorenew/so.xyz"

payload = ""

headers = {
        'Content-Type': 'application/json',
        'X-OMNI-APIKEY': '52893482385823482835872349',
        'X-OMNI-SIGNATURE': '5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c'
}

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)
HttpResponse<String> response = Unirest.post("https://api.omnilance.com/v3/domains/enableAutorenew/so.xyz")
  .header("X-OMNI-APIKEY", "52893482385823482835872349")
  .header("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")
  .header("content-type", "application/json")
  .body("")
  .asString();
package main

import (
  "fmt"
  "strings"
  "net/http"
  "io/ioutil"
)

func main() {

  url := "https://api.omnilance.com/v3/domains/enableAutorenew/so.xyz"

  payload := strings.NewReader("")

  req, _ := http.NewRequest("POST", url, payload)

  req.Header.Add("X-OMNI-APIKEY", "52893482385823482835872349")
  req.Header.Add("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")
  req.Header.Add("content-type", "application/json")

  res, _ := http.DefaultClient.Do(req)

  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))

}

The above command returns JSON structured like this:

{
    "domain": {
        "domainName": "so.xyz",
        "nameservers": [
            "ns1.omnilance.com",
            "ns2.omnilance.com",
            "ns3.omnilance.com"
        ],
        "contacts": {
            "reg-contact": {
                "name": "Jone Omni",
                "company-name": "OMNILANCE LTD",
                "address1": "77 North Star street",
                "city": "North",
                "state": "North Pole",
                "zipcode": "10000",
                "country": "UA",
                "phone": "+380.931700001",
                "fax": "",
                "email": "alex@so.xyz"
            },
            "admin-contact": {
                "name": "Jone Omni",
                "company-name": "OMNILANCE LTD",
                "address1": "77 North Star street",
                "city": "North",
                "state": "North Pole",
                "zipcode": "10000",
                "country": "UA",
                "phone": "+380.931700001",
                "fax": "",
                "email": "alex@so.xyz"
            },
            "tech-contact": {
                "name": "Jone Omni",
                "company-name": "OMNILANCE LTD",
                "address1": "77 North Star street",
                "city": "North",
                "state": "North Pole",
                "zipcode": "10000",
                "country": "UA",
                "phone": "+380.931700001",
                "fax": "",
                "email": "alex@so.xyz"
            },
            "billing-contact": {
                "name": "Jone Omni",
                "company-name": "OMNILANCE LTD",
                "address1": "77 North Star street",
                "city": "North",
                "state": "North Pole",
                "zipcode": "10000",
                "country": "UA",
                "phone": "+380.931700001",
                "fax": "",
                "email": "alex@so.xyz"
            }
        },
        "privacyEnabled": false,
        "lockedEnabled": false,
        "autorenewEnabled": true,
        "createDate": "2001-05-14T09:57:37Z",
        "expireDate": "2003-05-15T02:59:59Z",
        "renewalCost": "111014.400000",
        "premium": true
    },
    "order-id": "2965",
    "status": "active"
}

HTTP Method

POST

HTTP Request

Endpoint: https://api.omnilance.com/v3/domains/enableAutorenew/{domainName}

Query Parameters

Parameter Default Required Description
domainName
(path parameters)
string Required Domain Name to which you want to set unsuspend domain.

Response Parameters

Parameter Default Description
domain []Domain Model Returns a hash map containing details of the Domain Order.
order-id string Order ID (order-id)
error string Return an error code.
message string Return detailed information.

Disable AutoRenew

DisableAutorenew - disables automatic renewals, thus requiring the domain name to be renewed manually.

/v3/domains/disableAutorenew

Use this code:

<?php

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.omnilance.com/v3/domains/disableAutorenew/so.xyz",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => "",
  CURLOPT_HTTPHEADER => array(
    "X-OMNI-APIKEY: 52893482385823482835872349",
    "X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c",
    "content-type: application/json"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}

curl -X POST \
 https://api.omnilance.com/v3/domains/disableAutorenew/so.xyz \
 -H 'X-OMNI-APIKEY: 52893482385823482835872349' \
 -H 'X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c' \
 -H 'content-type: application/json' 

import requests

url = "ttps://api.omnilance.com/v3/domains/disableAutorenew/so.xyz"

payload = ""

headers = {
        'Content-Type': 'application/json',
        'X-OMNI-APIKEY': '52893482385823482835872349',
        'X-OMNI-SIGNATURE': '5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c'
}

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)
HttpResponse<String> response = Unirest.post("https://api.omnilance.com/v3/domains/disableAutorenew/so.xyz")
  .header("X-OMNI-APIKEY", "52893482385823482835872349")
  .header("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")
  .header("content-type", "application/json")
  .body("")
  .asString();
package main

import (
  "fmt"
  "strings"
  "net/http"
  "io/ioutil"
)

func main() {

  url := "https://api.omnilance.com/v3/domains/disableAutorenew/so.xyz"

  payload := strings.NewReader("")

  req, _ := http.NewRequest("POST", url, payload)

  req.Header.Add("X-OMNI-APIKEY", "52893482385823482835872349")
  req.Header.Add("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")
  req.Header.Add("content-type", "application/json")

  res, _ := http.DefaultClient.Do(req)

  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))

}

The above command returns JSON structured like this:

{
    "domain": {
        "domainName": "so.xyz",
        "nameservers": [
            "ns1.omnilance.com",
            "ns2.omnilance.com",
            "ns3.omnilance.com"
        ],
        "contacts": {
            "reg-contact": {
                "name": "Jone Omni",
                "company-name": "OMNILANCE LTD",
                "address1": "77 North Star street",
                "city": "North",
                "state": "North Pole",
                "zipcode": "10000",
                "country": "UA",
                "phone": "+380.931700001",
                "fax": "",
                "email": "alex@so.xyz"
            },
            "admin-contact": {
                "name": "Jone Omni",
                "company-name": "OMNILANCE LTD",
                "address1": "77 North Star street",
                "city": "North",
                "state": "North Pole",
                "zipcode": "10000",
                "country": "UA",
                "phone": "+380.931700001",
                "fax": "",
                "email": "alex@so.xyz"
            },
            "tech-contact": {
                "name": "Jone Omni",
                "company-name": "OMNILANCE LTD",
                "address1": "77 North Star street",
                "city": "North",
                "state": "North Pole",
                "zipcode": "10000",
                "country": "UA",
                "phone": "+380.931700001",
                "fax": "",
                "email": "alex@so.xyz"
            },
            "billing-contact": {
                "name": "Jone Omni",
                "company-name": "OMNILANCE LTD",
                "address1": "77 North Star street",
                "city": "North",
                "state": "North Pole",
                "zipcode": "10000",
                "country": "UA",
                "phone": "+380.931700001",
                "fax": "",
                "email": "alex@so.xyz"
            }
        },
        "privacyEnabled": false,
        "lockedEnabled": false,
        "autorenewEnabled": false,
        "createDate": "2001-05-14T09:57:37Z",
        "expireDate": "2003-05-15T02:59:59Z",
        "renewalCost": "111014.400000",
        "premium": true
    },
    "order-id": "2965",
    "status": "active"
}

HTTP Method

POST

HTTP Request

Endpoint: https://api.omnilance.com/v3/domains/disableAutorenew/{domainName}

Query Parameters

Parameter Default Required Description
domainName
(path parameters)
string Required Domain Name to which you want to set unsuspend domain.

Response Parameters

Parameter Default Description
domain []Domain Model Returns a hash map containing details of the Domain Order.
order-id string Order ID (order-id).
error string Return an error code.
message string Return detailed information.

Adding GlueRecords

GlueRecords - adds Name Servers for the specified Domain Name in the registry..

/v3/domains/glueRecords/so.xyz

Use this code:

<?php

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.omnilance.com/v3/domains/glueRecords/so.xyz",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => "{\"hostname\":\"ns1\",\"ips\":[\"195.189.226.1\"]}",
  CURLOPT_HTTPHEADER => array(
    "X-OMNI-APIKEY: 52893482385823482835872349",
    "X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c",
    "content-type: application/json"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}

curl -X POST \
 https://api.omnilance.com/v3/domains/glueRecords/so.xyz \
 -H 'X-OMNI-APIKEY: 52893482385823482835872349' \
 -H 'X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c' \
 -H 'content-type: application/json' \
 -d '{"hostname":"ns1","ips":["195.189.226.1"]}'

import requests

url = "https://api.omnilance.com/v3/domains/glueRecords/so.xyz"

payload = "{\"hostname\":\"ns1\",\"ips\":[\"195.189.226.1\"]}"

headers = {
        'Content-Type': 'application/json',
        'X-OMNI-APIKEY': '52893482385823482835872349',
        'X-OMNI-SIGNATURE': '5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c'
}

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)
HttpResponse<String> response = Unirest.post("https://api.omnilance.com/v3/domains/glueRecords/so.xyz")
  .header("X-OMNI-APIKEY", "52893482385823482835872349")
  .header("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")
  .header("content-type", "application/json")
  .body("{\"hostname\":\"ns1\",\"ips\":[\"195.189.226.1\"]}")
  .asString();
package main

import (
  "fmt"
  "strings"
  "net/http"
  "io/ioutil"
)

func main() {

  url := "https://api.omnilance.com/v3/domains/glueRecords/so.xyz"

  payload := strings.NewReader("{\"hostname\":\"ns1\",\"ips\":[\"195.189.226.1\"]}")

  req, _ := http.NewRequest("POST", url, payload)

  req.Header.Add("X-OMNI-APIKEY", "52893482385823482835872349")
  req.Header.Add("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")
  req.Header.Add("content-type", "application/json")

  res, _ := http.DefaultClient.Do(req)

  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))

}

The above command returns JSON structured like this:

{
    "domainName": "so.xyz",
    "hostname": "ns1.so.xyz",
    "ips": [
        "195.189.226.1"
    ]
}

HTTP Method

POST

HTTP Request

Endpoint: https://api.omnilance.com/v3/domains/glueRecords/{domainName}

Query Parameters

Parameter Default Required Description
domainName
(path parameters)
string Required DomainName is the domain the child nameserver is a subdomain.
hostname string Required Child Name Servers name that you want to add.
ip []string Required IP addresses that you want to associate with the Child Name Servers.

Response Parameters

Parameter Default Description
domainName string DomainName is the domain the nameserver is a subdomain.
hostname string Hostname is the hostname of the nameserver.
ips []string IPs is a list of IP addresses that are used for glue records for this nameserver.
error string Return an error code.
message string Return detailed information.

Modify GlueRecords

ModifyGlueRecords - Update Name Servers for the specified Domain Name in the registry.

/v3/domains/glueRecords/so.xyz/ns1

Use this code:

<?php

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.omnilance.com/v3/domains/glueRecords/so.xyz/ns1",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => "{\"ips\":[\"195.189.226.7\"]}",
  CURLOPT_HTTPHEADER => array(
    "X-OMNI-APIKEY: 52893482385823482835872349",
    "X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c",
    "content-type: application/json"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}

curl -X PUT \
 https://api.omnilance.com/v3/domains/glueRecords/so.xyz/ns1 \
 -H 'X-OMNI-APIKEY: 52893482385823482835872349' \
 -H 'X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c' \
 -H 'content-type: application/json' \
 -d '{"ips":["195.189.226.7"]}'

import requests

url = "https://api.omnilance.com/v3/domains/glueRecords/so.xyz/ns1"

payload = "{\"ips\":[\"195.189.226.7\"]}"

headers = {
        'Content-Type': 'application/json',
        'X-OMNI-APIKEY': '52893482385823482835872349',
        'X-OMNI-SIGNATURE': '5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c'
}

response = requests.request("PUT", url, data=payload, headers=headers)

print(response.text)
HttpResponse<String> response = Unirest.put("https://api.omnilance.com/v3/domains/glueRecords/so.xyz/ns1")
  .header("X-OMNI-APIKEY", "52893482385823482835872349")
  .header("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")
  .header("content-type", "application/json")
  .body("{\"ips\":[\"195.189.226.7\"]}")
  .asString();
package main

import (
  "fmt"
  "strings"
  "net/http"
  "io/ioutil"
)

func main() {

  url := "https://api.omnilance.com/v3/domains/glueRecords/so.xyz/ns1"

  payload := strings.NewReader("{\"ips\":[\"195.189.226.7\"]}")

  req, _ := http.NewRequest("PUT", url, payload)

  req.Header.Add("X-OMNI-APIKEY", "52893482385823482835872349")
  req.Header.Add("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")
  req.Header.Add("content-type", "application/json")

  res, _ := http.DefaultClient.Do(req)

  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))

}

The above command returns JSON structured like this:

{
    "domainName": "so.xyz",
    "hostname": "ns1.so.xyz",
    "ips": [
        "195.189.226.7"
    ]
}

HTTP Method

PUT

HTTP Request

Endpoint: https://api.omnilance.com/v3/domains/glueRecords/{domainName}/{hostname}

Query Parameters

Parameter Default Required Description
domainName
(path parameters)
string Required DomainName is the domain the child nameserver is a subdomain of.
hostname
(path parameters)
string Required Child Name Servers name that you want to update.
ip []string Required IP addresses that you want to associate with the Child Name Servers.

Response Parameters

Parameter Default Description
domainName string DomainName is the domain the nameserver is a subdomain.
hostname string Hostname is the hostname of the nameserver.
ips []string IPs is a list of IP addresses that are used for glue records for this nameserver.
error string Return an error code.
message string Return detailed information.

Delete GlueRecords

DeleteGlueRecords - Deleted Name Servers for the specified Domain Name in the registry.

/v3/domains/glueRecords/so.xyz/ns1

Use this code:

<?php

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.omnilance.com/v3/domains/glueRecords/so.xyz/ns1",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
  CURLOPT_POSTFIELDS => "",
  CURLOPT_HTTPHEADER => array(
    "X-OMNI-APIKEY: 52893482385823482835872349",
    "X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c",
    "content-type: application/json"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}

curl -X DELETE \
 https://api.omnilance.com/v3/domains/glueRecords/so.xyz/ns1 \
 -H 'X-OMNI-APIKEY: 52893482385823482835872349' \
 -H 'X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c' \
 -H 'content-type: application/json'

import requests

url = "https://api.omnilance.com/v3/domains/glueRecords/so.xyz/ns1"

headers = {
        'Content-Type': 'application/json',
        'X-OMNI-APIKEY': '52893482385823482835872349',
        'X-OMNI-SIGNATURE': '5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c'
}

response = requests.request("DELETE", url, headers=headers)

print(response.text)
HttpResponse<String> response = Unirest.delete("https://api.omnilance.com/v3/domains/glueRecords/so.xyz/ns1")
  .header("X-OMNI-APIKEY", "52893482385823482835872349")
  .header("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")
  .header("content-type", "application/json")
  .body("")
  .asString();
package main

import (
  "fmt"
  "net/http"
  "io/ioutil"
)

func main() {

  url := "https://api.omnilance.com/v3/domains/glueRecords/so.xyz/ns1"

  req, _ := http.NewRequest("DELETE", url, nil)

  req.Header.Add("X-OMNI-APIKEY", "52893482385823482835872349")
  req.Header.Add("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")

  res, _ := http.DefaultClient.Do(req)

  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))

}

The above command returns JSON structured like this:

{
    "domainName": "so.xyz",
    "hostname": "ns1.so.xyz"
}

HTTP Method

DELETE

HTTP Request

Endpoint: https://api.omnilance.com/v3/domains/glueRecords/{domainName}/{hostname}

Query Parameters

Parameter Default Required Description
domainName
(path parameters)
string Required DomainName is the domain the child nameserver is a subdomain of.
hostname
(path parameters)
string Required Child Name Servers name that you want to delete.

Response Parameters

Parameter Default Description
domainName string DomainName is the domain the nameserver is a subdomain.
hostname string Hostname is the hostname of the nameserver.
error string Return an error code.
message string Return detailed information.

List GlueRecords

ListGlueRecords - lists all nameservers registered with the registry. It skip the IP addresses from the response. Those can be found from calling Get GlueRecords.

/v3/domains/glueRecords/so.xyz

Use this code:

<?php

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.omnilance.com/v3/domains/glueRecords/so.xyz",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => array(
    "X-OMNI-APIKEY: 52893482385823482835872349",
    "X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c",
    "content-type: application/json"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}

curl -X GET \
 https://api.omnilance.com/v3/domains/glueRecords/so.xyz \
 -H 'X-OMNI-APIKEY: 52893482385823482835872349' \
 -H 'X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c' 

import requests

url = "https://api.omnilance.com/v3/domains/glueRecords/so.xyz"

headers = {
        'Content-Type': 'application/json',
        'X-OMNI-APIKEY': '52893482385823482835872349',
        'X-OMNI-SIGNATURE': '5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c'
}

response = requests.request("GET", url, headers=headers)

print(response.text)
HttpResponse<String> response = Unirest.get("https://api.omnilance.com/v3/domains/glueRecords/so.xyz")
  .header("X-OMNI-APIKEY", "52893482385823482835872349")
  .header("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")
  .asString();
package main

import (
  "fmt"
  "net/http"
  "io/ioutil"
)

func main() {

  url := "https://api.omnilance.com/v3/domains/glueRecords/so.xyz"

  req, _ := http.NewRequest("GET", url, nil)

  req.Header.Add("X-OMNI-APIKEY", "52893482385823482835872349")
  req.Header.Add("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")

  res, _ := http.DefaultClient.Do(req)

  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))

}

The above command returns JSON structured like this:

{
    "glueRecords": [
        {
            "domainName": "so.xyz",
            "hostname": "ns1.so.xyz"
        },
        {
            "domainName": "so.xyz",
            "hostname": "ns2.so.xyz"
        },
        {
            "domainName": "so.xyz",
            "hostname": "ns3.so.xyz"
        },
        {
            "domainName": "so.xyz",
            "hostname": "ns4.so.xyz"
        }
    ]
}

HTTP Method

GET

HTTP Request

Endpoint: https://api.omnilance.com/v3/domains/glueRecords/{domainName}

Query Parameters

Parameter Default Required Description
domainName
(path parameters)
string Required DomainName is the domain the child nameserver is a subdomain of.

Response Parameters

Parameter Default Description
domainName string DomainName is the domain the nameserver is a subdomain.
hostname string Hostname is the hostname of the nameserver.
error string Return an error code.
message string Return detailed information.

Get GlueRecords

GetGlueRecords - Get Name Servers for the specified Domain Name in the registry.

/v3/domains/glueRecords/so.xyz/ns1

Use this code:

<?php

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.omnilance.com/v3/domains/glueRecords/so.xyz/ns1",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => array(
    "X-OMNI-APIKEY: 52893482385823482835872349",
    "X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c",
    "content-type: application/json"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}

curl -X GET \
 https://api.omnilance.com/v3/domains/glueRecords/so.xyz/ns1 \
 -H 'X-OMNI-APIKEY: 52893482385823482835872349' \
 -H 'X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c' 

import requests

url = "https://api.omnilance.com/v3/domains/glueRecords/so.xyz/ns1"

headers = {
        'Content-Type': 'application/json',
        'X-OMNI-APIKEY': '52893482385823482835872349',
        'X-OMNI-SIGNATURE': '5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c'
}

response = requests.request("GET", url, headers=headers)

print(response.text)
HttpResponse<String> response = Unirest.get("https://api.omnilance.com/v3/domains/glueRecords/so.xyz/ns1")
  .header("X-OMNI-APIKEY", "52893482385823482835872349")
  .header("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")
  .asString();
package main

import (
  "fmt"
  "net/http"
  "io/ioutil"
)

func main() {

  url := "https://api.omnilance.com/v3/domains/glueRecords/so.xyz/ns1"

  req, _ := http.NewRequest("GET", url, nil)

  req.Header.Add("X-OMNI-APIKEY", "52893482385823482835872349")
  req.Header.Add("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")

  res, _ := http.DefaultClient.Do(req)

  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))

}

The above command returns JSON structured like this:

{
    "domainName": "so.xyz",
    "hostname": "ns1.so.xyz",
    "ips": [
        "195.189.226.7"
    ]
}

HTTP Method

GET

HTTP Request

Endpoint: https://api.omnilance.com/v3/domains/glueRecords/{domainName}/{hostname}

Query Parameters

Parameter Default Required Description
domainName
(path parameters)
string Required DomainName is the domain the child nameserver is a subdomain of.
hostname
(path parameters)
string Required Child Name Servers name that you want to update.

Response Parameters

Parameter Default Description
domainName string DomainName is the domain the nameserver is a subdomain.
hostname string Hostname is the hostname of the nameserver.
ips []string IPs is a list of IP addresses that are used for glue records for this nameserver.
error string Return an error code.
message string Return detailed information.

Request Domain Transfer

RequestTransfers - purchases a new domain name transfer request.

/v3/domains/requestTransfer

Use this code:

<?php

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.omnilance.com/v3/domains/requestTransfer",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => "{\"domain\":{\"domainName\":\"so.xyz\",\"nameservers\":[\"ns1.rx-name.net\",\"ns2.rx-name.net\",\"ns3.rx-name.net\"],\"contacts\":{\"reg-contact\":{\"name\":\"Jone Omni\",\"company-name\":\"OMNILANCE LTD\",\"address1\":\"77 North Star street\",\"city\":\"North\",\"state\":\"North Pole\",\"country\":\"UA\",\"phone\":\"380.931700001\",\"email\":\"alex@so.xyz\",\"zipcode\":\"10000\"},\"admin-contact\":{\"name\":\"Jone Omni\",\"company-name\":\"OMNILANCE LTD\",\"address1\":\"77 North Star street\",\"city\":\"North\",\"state\":\"North Pole\",\"country\":\"UA\",\"phone\":\"380.931700001\",\"email\":\"alex@so.xyz\",\"zipcode\":\"10000\"},\"tech-contact\":{\"name\":\"Jone Omni\",\"company-name\":\"OMNILANCE LTD\",\"address1\":\"77 North Star street\",\"city\":\"North\",\"state\":\"North Pole\",\"country\":\"UA\",\"phone\":\"380.931700001\",\"email\":\"alex@so.xyz\",\"zipcode\":\"10000\"},\"billing-contact\":{\"name\":\"Jone Omni\",\"company-name\":\"OMNILANCE LTD\",\"address1\":\"77 North Star street\",\"city\":\"North\",\"state\":\"North Pole\",\"country\":\"UA\",\"phone\":\"380.931700001\",\"email\":\"alex@so.xyz\",\"zipcode\":\"10000\"}},\"privacyEnabled\":false,\"lockedEnabled\":false,\"autorenewEnabled\":false},\"authCode\":\"VfG0e7gGs3de67591\",\"years\":1}",
  CURLOPT_HTTPHEADER => array(
    "X-OMNI-APIKEY: 52893482385823482835872349",
    "X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c",
    "content-type: application/json"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}

curl -X POST \
 https://api.omnilance.com/v3/domains/requestTransfer \
 -H 'X-OMNI-APIKEY: 52893482385823482835872349' \
 -H 'X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c' \
 -H 'content-type: application/json' \
 -d '{"domain":{"domainName":"so.xyz","nameservers":["ns1.rx-name.net","ns2.rx-name.net","ns3.rx-name.net"],"contacts":{"reg-contact":{"name":"Jone Omni","company-name":"OMNILANCE LTD","address1":"77 North Star street","city":"North","state":"North Pole","country":"UA","phone":"380.931700001","email":"alex@so.xyz","zipcode":"10000"},"admin-contact":{"name":"Jone Omni","company-name":"OMNILANCE LTD","address1":"77 North Star street","city":"North","state":"North Pole","country":"UA","phone":"380.931700001","email":"alex@so.xyz","zipcode":"10000"},"tech-contact":{"name":"Jone Omni","company-name":"OMNILANCE LTD","address1":"77 North Star street","city":"North","state":"North Pole","country":"UA","phone":"380.931700001","email":"alex@so.xyz","zipcode":"10000"},"billing-contact":{"name":"Jone Omni","company-name":"OMNILANCE LTD","address1":"77 North Star street","city":"North","state":"North Pole","country":"UA","phone":"380.931700001","email":"alex@so.xyz","zipcode":"10000"}},"privacyEnabled":false,"lockedEnabled":false,"autorenewEnabled":false},"authCode":"VfG0e7gGs3de67591","years":1}'
HttpResponse<String> response = Unirest.post("https://api.omnilance.com/v3/domains/requestTransfer")
  .header("X-OMNI-APIKEY", "52893482385823482835872349")
  .header("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")
  .header("content-type", "application/json")
  .body("{\"domain\":{\"domainName\":\"so.xyz\",\"nameservers\":[\"ns1.rx-name.net\",\"ns2.rx-name.net\",\"ns3.rx-name.net\"],\"contacts\":{\"reg-contact\":{\"name\":\"Jone Omni\",\"company-name\":\"OMNILANCE LTD\",\"address1\":\"77 North Star street\",\"city\":\"North\",\"state\":\"North Pole\",\"country\":\"UA\",\"phone\":\"380.931700001\",\"email\":\"alex@so.xyz\",\"zipcode\":\"10000\"},\"admin-contact\":{\"name\":\"Jone Omni\",\"company-name\":\"OMNILANCE LTD\",\"address1\":\"77 North Star street\",\"city\":\"North\",\"state\":\"North Pole\",\"country\":\"UA\",\"phone\":\"380.931700001\",\"email\":\"alex@so.xyz\",\"zipcode\":\"10000\"},\"tech-contact\":{\"name\":\"Jone Omni\",\"company-name\":\"OMNILANCE LTD\",\"address1\":\"77 North Star street\",\"city\":\"North\",\"state\":\"North Pole\",\"country\":\"UA\",\"phone\":\"380.931700001\",\"email\":\"alex@so.xyz\",\"zipcode\":\"10000\"},\"billing-contact\":{\"name\":\"Jone Omni\",\"company-name\":\"OMNILANCE LTD\",\"address1\":\"77 North Star street\",\"city\":\"North\",\"state\":\"North Pole\",\"country\":\"UA\",\"phone\":\"380.931700001\",\"email\":\"alex@so.xyz\",\"zipcode\":\"10000\"}},\"privacyEnabled\":false,\"lockedEnabled\":false,\"autorenewEnabled\":false},\"authCode\":\"VfG0e7gGs3de67591\",\"years\":1}")
  .asString();
package main

import (
  "fmt"
  "strings"
  "net/http"
  "io/ioutil"
)

func main() {

  url := "https://api.omnilance.com/v3/domains/requestTransfer"

  payload := strings.NewReader("{\"domain\":{\"domainName\":\"so.xyz\",\"nameservers\":[\"ns1.rx-name.net\",\"ns2.rx-name.net\",\"ns3.rx-name.net\"],\"contacts\":{\"reg-contact\":{\"name\":\"Jone Omni\",\"company-name\":\"OMNILANCE LTD\",\"address1\":\"77 North Star street\",\"city\":\"North\",\"state\":\"North Pole\",\"country\":\"UA\",\"phone\":\"380.931700001\",\"email\":\"alex@so.xyz\",\"zipcode\":\"10000\"},\"admin-contact\":{\"name\":\"Jone Omni\",\"company-name\":\"OMNILANCE LTD\",\"address1\":\"77 North Star street\",\"city\":\"North\",\"state\":\"North Pole\",\"country\":\"UA\",\"phone\":\"380.931700001\",\"email\":\"alex@so.xyz\",\"zipcode\":\"10000\"},\"tech-contact\":{\"name\":\"Jone Omni\",\"company-name\":\"OMNILANCE LTD\",\"address1\":\"77 North Star street\",\"city\":\"North\",\"state\":\"North Pole\",\"country\":\"UA\",\"phone\":\"380.931700001\",\"email\":\"alex@so.xyz\",\"zipcode\":\"10000\"},\"billing-contact\":{\"name\":\"Jone Omni\",\"company-name\":\"OMNILANCE LTD\",\"address1\":\"77 North Star street\",\"city\":\"North\",\"state\":\"North Pole\",\"country\":\"UA\",\"phone\":\"380.931700001\",\"email\":\"alex@so.xyz\",\"zipcode\":\"10000\"}},\"privacyEnabled\":false,\"lockedEnabled\":false,\"autorenewEnabled\":false},\"authCode\":\"VfG0e7gGs3de67591\",\"years\":1}")

  req, _ := http.NewRequest("POST", url, payload)

  req.Header.Add("X-OMNI-APIKEY", "52893482385823482835872349")
  req.Header.Add("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")
  req.Header.Add("content-type", "application/json")

  res, _ := http.DefaultClient.Do(req)

  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))

}

The above command returns JSON structured like this:

{
    "domainName": "so.xyz",
    "order-id": "3002",
    "totalPaid": "88.500000",
    "status": "pending"
}

HTTP Method

POST

HTTP Request

Endpoint: https://api.omnilance.com/v3/domains/requestTransfer

Query Parameters

Parameter Default Required Description
domain []Domain Model Required Domain is the domain object to create transfer.
purchaseCost float64 Optional
authCode float64 Required

Response Parameters

Parameter Default Description
domain []Domain Model Returns a hash map containing details of the Domain Order.
order-id string Order ID (order-id)
error string Return an error code.
message string Return detailed information.

Reject Domain Transfer

RejectTransfer - Reject request from another registrar for Domain Name.

/v3/domains/rejectTransfer

Use this code:

<?php

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.omnilance.com/v3/domains/rejectTransfer/so.xyz",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => "",
  CURLOPT_HTTPHEADER => array(
    "X-OMNI-APIKEY: 52893482385823482835872349",
    "X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c",
    "content-type: application/json"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}

curl -X POST \
 https://api.omnilance.com/v3/domains/rejectTransfer/so.xyz \
 -H 'X-OMNI-APIKEY: 52893482385823482835872349' \
 -H 'X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c' \
 -H 'content-type: application/json'

import requests

url = "https://api.omnilance.com/v3/domains/rejectTransfer/so.xyz"

payload = ""

headers = {
        'Content-Type': 'application/json',
        'X-OMNI-APIKEY': '52893482385823482835872349',
        'X-OMNI-SIGNATURE': '5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c'
}

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)
HttpResponse<String> response = Unirest.post("https://api.omnilance.com/v3/domains/rejectTransfer/so.xyz")
  .header("X-OMNI-APIKEY", "52893482385823482835872349")
  .header("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")
  .header("content-type", "application/json")
  .body("")
  .asString();
package main

import (
  "fmt"
  "strings"
  "net/http"
  "io/ioutil"
)

func main() {

  url := "https://api.omnilance.com/v3/domains/rejectTransfer/so.xyz"

  payload := strings.NewReader("")

  req, _ := http.NewRequest("POST", url, payload)

  req.Header.Add("X-OMNI-APIKEY", "52893482385823482835872349")
  req.Header.Add("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")
  req.Header.Add("content-type", "application/json")

  res, _ := http.DefaultClient.Do(req)

  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))

}

The above command returns JSON structured like this:

{
   "domainName": "so.xyz",
   "message": "Transfer Rejected completed successfully"
}

HTTP Method

POST

HTTP Request

Endpoint: https://api.omnilance.com/v3/domains/rejectTransfer/{domainName}

Query Parameters

Parameter Default Required Description
domainName
(path parameters)
string Required DomainName is the domain name to request.

Response Parameters

Parameter Default Description
domainName string DomainName is the domain name.
status string
error string Return an error code.
message string Return detailed information.

Cancel Domain Transfer

CancelTransfer - cancel the domain name transfer request submitted by you.

/v3/domains/cancelTransfer

Use this code:

<?php

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.omnilance.com/v3/domains/cancelTransfer/so.xyz",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => "",
  CURLOPT_HTTPHEADER => array(
    "X-OMNI-APIKEY: 52893482385823482835872349",
    "X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c",
    "content-type: application/json"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}

curl -X POST \
 https://api.omnilance.com/v3/domains/cancelTransfer/so.xyz \
 -H 'X-OMNI-APIKEY: 52893482385823482835872349' \
 -H 'X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c' \
 -H 'content-type: application/json'

import requests

url = "https://api.omnilance.com/v3/domains/cancelTransfer/so.xyz"

payload = ""

headers = {
        'Content-Type': 'application/json',
        'X-OMNI-APIKEY': '52893482385823482835872349',
        'X-OMNI-SIGNATURE': '5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c'
}

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)
HttpResponse<String> response = Unirest.post("https://api.omnilance.com/v3/domains/cancelTransfer/so.xyz")
  .header("X-OMNI-APIKEY", "52893482385823482835872349")
  .header("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")
  .header("content-type", "application/json")
  .body("")
  .asString();
package main

import (
  "fmt"
  "strings"
  "net/http"
  "io/ioutil"
)

func main() {

  url := "https://api.omnilance.com/v3/domains/cancelTransfer/so.xyz"

  payload := strings.NewReader("")

  req, _ := http.NewRequest("POST", url, payload)

  req.Header.Add("X-OMNI-APIKEY", "52893482385823482835872349")
  req.Header.Add("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")
  req.Header.Add("content-type", "application/json")

  res, _ := http.DefaultClient.Do(req)

  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))

}

The above command returns JSON structured like this:

{
  "domainName": "so.xyz",
  "message": "Transfer cancel completed successfully"
}

HTTP Method

POST

HTTP Request

Endpoint: https://api.omnilance.com/v3/domains/cancelTransfer/{domainName}

Query Parameters

Parameter Default Required Description
domainName
(path parameters)
string Required DomainName is the domain name to request.

Response Parameters

Parameter Default Description
domainName string DomainName is the domain name.
status string
error string Return an error code.
message string Return detailed information.

Approve Domain Transfer

ApproveTransfer -

/v3/domains/approveTransfer

Use this code:

<?php

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.omnilance.com/v3/domains/approveTransfer/so.xyz",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => "",
  CURLOPT_HTTPHEADER => array(
    "X-OMNI-APIKEY: 52893482385823482835872349",
    "X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c",
    "content-type: application/json"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}

curl -X POST \
 https://api.omnilance.com/v3/domains/approveTransfer/so.xyz \
 -H 'X-OMNI-APIKEY: 52893482385823482835872349' \
 -H 'X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c' \
 -H 'content-type: application/json'

import requests

url = "https://api.omnilance.com/v3/domains/approveTransfer/so.xyz"

payload = ""

headers = {
        'Content-Type': 'application/json',
        'X-OMNI-APIKEY': '52893482385823482835872349',
        'X-OMNI-SIGNATURE': '5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c'
}

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)
HttpResponse<String> response = Unirest.post("https://api.omnilance.com/v3/domains/approveTransfer/so.xyz")
  .header("X-OMNI-APIKEY", "52893482385823482835872349")
  .header("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")
  .header("content-type", "application/json")
  .body("")
  .asString();
package main

import (
  "fmt"
  "strings"
  "net/http"
  "io/ioutil"
)

func main() {

  url := "https://api.omnilance.com/v3/domains/approveTransfer/so.xyz"

  payload := strings.NewReader("")

  req, _ := http.NewRequest("POST", url, payload)

  req.Header.Add("X-OMNI-APIKEY", "52893482385823482835872349")
  req.Header.Add("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")
  req.Header.Add("content-type", "application/json")

  res, _ := http.DefaultClient.Do(req)

  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))

}

The above command returns JSON structured like this:

{
  "domainName": "so.xyz",
  "message": "Transfer approve completed successfully"
}

HTTP Method

POST

HTTP Request

Endpoint: https://api.omnilance.com/v3/domains/approveTransfer/{domainName}

Query Parameters

Parameter Default Required Description
domainName
(path parameters)
string Required DomainName is the domain name to request.

Response Parameters

Parameter Default Description
domainName string DomainName is the domain name.
status string
error string Return an error code.
message string Return detailed information.

Modify AuthCode

setAuthcode - Modify the Transfer Authorization Code for the Domain Name.

/v3/domains/setAuthcode

Use this code:

<?php

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.omnilance.com/v3/domains/setAuthcode/so.xyz",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => "{\"authcode\":\"9ccnwvyopgic}sfwjgunsokqjxrvcAstnTncpzxyg#bmdwr7\"}",
  CURLOPT_HTTPHEADER => array(
    "X-OMNI-APIKEY: 52893482385823482835872349",
    "X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c",
    "content-type: application/json"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
curl -X POST \
 https://api.omnilance.com/v3/domains/setAuthcode/so.xyz \
 -H 'X-OMNI-APIKEY: 52893482385823482835872349' \
 -H 'X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c' \
 -H 'content-type: application/json' \
 -d '{"authcode":"9ccnwvyopgic}sfwjgunsokqjxrvcAstnTncpzxyg#bmdwr7"}'

import requests

url = "https://api.omnilance.com/v3/domains/setAuthcode/so.xyz"

payload = "{\"authcode\":\"9ccnwvyopgic}sfwjgunsokqjxrvcAstnTncpzxyg#bmdwr7\"}"

headers = {
        'Content-Type': 'application/json',
        'X-OMNI-APIKEY': '52893482385823482835872349',
        'X-OMNI-SIGNATURE': '5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c'
}

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)
HttpResponse<String> response = Unirest.post("https://api.omnilance.com/v3/domains/setAuthcode/so.xyz")
  .header("X-OMNI-APIKEY", "52893482385823482835872349")
  .header("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")
  .header("content-type", "application/json")
  .body("{\"authcode\":\"9ccnwvyopgic}sfwjgunsokqjxrvcAstnTncpzxyg#bmdwr7\"}")
  .asString();
package main

import (
  "fmt"
  "strings"
  "net/http"
  "io/ioutil"
)

func main() {

  url := "https://api.omnilance.com/v3/domains/setAuthcode/so.xyz"

  payload := strings.NewReader("{\"authcode\":\"9ccnwvyopgic}sfwjgunsokqjxrvcAstnTncpzxyg#bmdwr7\"}")

  req, _ := http.NewRequest("POST", url, payload)

  req.Header.Add("X-OMNI-APIKEY", "52893482385823482835872349")
  req.Header.Add("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")
  req.Header.Add("content-type", "application/json")

  res, _ := http.DefaultClient.Do(req)

  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))

}

The above command returns JSON structured like this:

{
    "domainName": "so.xyz",
    "authCode": "9ccnwvyopgic}sfwjgunsokqjxrvcAstnTncpzxyg#bmdwr7"
}

HTTP Method

POST

HTTP Request

Endpoint: https://api.omnilance.com/v3/domains/setAuthcode/{domainName}

Query Parameters

Parameter Default Required Description
domainName
(path parameters)
string Required DomainName is the domain name to set authCode.
authCode string Required New authorization code.

Response Parameters

Parameter Default Description
domainName string Returns a Domain Name.
authCode string Order ID (order-id)
error string Return an error code.
message string Return detailed information.

Get AuthCode

getAuthcode - returns the Transfer Authorization Code for the Domain Name.

/v3/domains/getAuthcode

Use this code:

<?php

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.omnilance.com/v3/domains/getAuthcode/so.xyz",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => array(
    "X-OMNI-APIKEY: 52893482385823482835872349",
    "X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c",
    "content-type: application/json"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
curl -X GET \
 https://api.omnilance.com/v3/domains/getAuthcode/so.xyz \
 -H 'X-OMNI-APIKEY: 52893482385823482835872349' \
 -H 'X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c' 

import requests

url = "https://api.omnilance.com/v3/domains/getAuthcode/so.xyz"

headers = {
        'Content-Type': 'application/json',
        'X-OMNI-APIKEY': '52893482385823482835872349',
        'X-OMNI-SIGNATURE': '5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c'
}

response = requests.request("GET", url, headers=headers)

print(response.text)
HttpResponse<String> response = Unirest.get("https://api.omnilance.com/v3/domains/getAuthcode/so.xyz")
  .header("X-OMNI-APIKEY", "52893482385823482835872349")
  .header("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")
  .asString();
package main

import (
  "fmt"
  "net/http"
  "io/ioutil"
)

func main() {

  url := "https://api.omnilance.com/v3/domains/getAuthcode/so.xyz"

  req, _ := http.NewRequest("GET", url, nil)

  req.Header.Add("X-OMNI-APIKEY", "52893482385823482835872349")
  req.Header.Add("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")

  res, _ := http.DefaultClient.Do(req)

  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))

}

The above command returns JSON structured like this:

{
    "domainName": "so.xyz",
    "authCode": "D949Dj#*vnjS&4hDBG#F973nB7BA(5DH"
}

HTTP Method

GET

HTTP Request

Endpoint: https://api.omnilance.com/v3/domains/getAuthcode/{domainName}

Query Parameters

Parameter Default Required Description
domainName
(path parameters)
string Required DomainName is the domain name to get authCode.

Response Parameters

Parameter Default Description
domainName string Returns a Domain Name.
authCode string Order ID (order-id)
error string Return an error code.
message string Return detailed information.

Modifying Contacts

setContacts - will set the contacts for the Domain Name.

/v3/domains/setContacts/so.xyz

Use this code:

<?php

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.omnilance.com/v3/setContacts/so.xyz",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => "{\"contacts\":{\"reg-contact\":{\"name\":\"Jone Lance\",\"company-name\":\"OMNILANCE LTD\",\"address1\":\"77 North Star street\",\"city\":\"North\",\"state\":\"North Pole\",\"zipcode\":\"10000\",\"country\":\"UA\",\"phone\":\"+380.931700001\",\"fax\":\"\",\"email\":\"alex-lance@so.xyz\"},\"admin-contact\":{\"name\":\"Jone Lance\",\"company-name\":\"OMNILANCE LTD\",\"address1\":\"77 North Star street\",\"city\":\"North\",\"state\":\"North Pole\",\"zipcode\":\"10000\",\"country\":\"UA\",\"phone\":\"+380.931700001\",\"fax\":\"\",\"email\":\"alex@so.xyz\"},\"tech-contact\":{\"name\":\"Jone Lance\",\"company-name\":\"OMNILANCE LTD\",\"address1\":\"77 North Star street\",\"city\":\"North\",\"state\":\"North Pole\",\"zipcode\":\"10000\",\"country\":\"UA\",\"phone\":\"+380.931700001\",\"fax\":\"\",\"email\":\"alex@so.xyz\"},\"billing-contact\":{\"name\":\"Jone Lance\",\"company-name\":\"OMNILANCE LTD\",\"address1\":\"77 North Star street\",\"city\":\"North\",\"state\":\"North Pole\",\"zipcode\":\"10000\",\"country\":\"UA\",\"phone\":\"+380.931700001\",\"fax\":\"\",\"email\":\"alex-lance@so.xyz\"}}}",
  CURLOPT_HTTPHEADER => array(
    "X-OMNI-APIKEY: 52893482385823482835872349",
    "X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c",
    "content-type: application/json"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}

?>
curl -X POST \
 https://api.omnilance.com/v3/domains/setContacts/so.xyz \
 -H 'X-OMNI-APIKEY: 52893482385823482835872349' \
 -H 'X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c' \
 -H 'content-type: application/json' \
 -d '{"contacts":{"reg-contact":{"name":"Jone Lance","company-name":"OMNILANCE LTD","address1":"77 North Star street","city":"North","state":"North Pole","zipcode":"10000","country":"UA","phone":"+380.931700001","fax":"","email":"alex-lance@so.xyz"},"admin-contact":{"name":"Jone Lance","company-name":"OMNILANCE LTD","address1":"77 North Star street","city":"North","state":"North Pole","zipcode":"10000","country":"UA","phone":"+380.931700001","fax":"","email":"alex@so.xyz"},"tech-contact":{"name":"Jone Lance","company-name":"OMNILANCE LTD","address1":"77 North Star street","city":"North","state":"North Pole","zipcode":"10000","country":"UA","phone":"+380.931700001","fax":"","email":"alex@so.xyz"},"billing-contact":{"name":"Jone Lance","company-name":"OMNILANCE LTD","address1":"77 North Star street","city":"North","state":"North Pole","zipcode":"10000","country":"UA","phone":"+380.931700001","fax":"","email":"alex-lance@so.xyz"}}}'

import requests

url = "https://api.omnilance.com/v3/domains/setContacts/so.xyz"

payload = "{\"contacts\":{\"reg-contact\":{\"name\":\"Jone Lance\",\"company-name\":\"OMNILANCE LTD\",\"address1\":\"77 North Star street\",\"city\":\"North\",\"state\":\"North Pole\",\"zipcode\":\"10000\",\"country\":\"UA\",\"phone\":\"+380.931700001\",\"fax\":\"\",\"email\":\"alex-lance@so.xyz\"},\"admin-contact\":{\"name\":\"Jone Lance\",\"company-name\":\"OMNILANCE LTD\",\"address1\":\"77 North Star street\",\"city\":\"North\",\"state\":\"North Pole\",\"zipcode\":\"10000\",\"country\":\"UA\",\"phone\":\"+380.931700001\",\"fax\":\"\",\"email\":\"alex@so.xyz\"},\"tech-contact\":{\"name\":\"Jone Lance\",\"company-name\":\"OMNILANCE LTD\",\"address1\":\"77 North Star street\",\"city\":\"North\",\"state\":\"North Pole\",\"zipcode\":\"10000\",\"country\":\"UA\",\"phone\":\"+380.931700001\",\"fax\":\"\",\"email\":\"alex@so.xyz\"},\"billing-contact\":{\"name\":\"Jone Lance\",\"company-name\":\"OMNILANCE LTD\",\"address1\":\"77 North Star street\",\"city\":\"North\",\"state\":\"North Pole\",\"zipcode\":\"10000\",\"country\":\"UA\",\"phone\":\"+380.931700001\",\"fax\":\"\",\"email\":\"alex-lance@so.xyz\"}}}"

headers = {
        'Content-Type': 'application/json',
        'X-OMNI-APIKEY': '52893482385823482835872349',
        'X-OMNI-SIGNATURE': '5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c'
}

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)
HttpResponse<String> response = Unirest.post("https://api.omnilance.com/v3/domains/setContacts/so.xyz")
  .header("X-OMNI-APIKEY", "52893482385823482835872349")
  .header("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")
  .header("content-type", "application/json")
  .body("{\"contacts\":{\"reg-contact\":{\"name\":\"Jone Lance\",\"company-name\":\"OMNILANCE LTD\",\"address1\":\"77 North Star street\",\"city\":\"North\",\"state\":\"North Pole\",\"zipcode\":\"10000\",\"country\":\"UA\",\"phone\":\"+380.931700001\",\"fax\":\"\",\"email\":\"alex-lance@so.xyz\"},\"admin-contact\":{\"name\":\"Jone Lance\",\"company-name\":\"OMNILANCE LTD\",\"address1\":\"77 North Star street\",\"city\":\"North\",\"state\":\"North Pole\",\"zipcode\":\"10000\",\"country\":\"UA\",\"phone\":\"+380.931700001\",\"fax\":\"\",\"email\":\"alex@so.xyz\"},\"tech-contact\":{\"name\":\"Jone Lance\",\"company-name\":\"OMNILANCE LTD\",\"address1\":\"77 North Star street\",\"city\":\"North\",\"state\":\"North Pole\",\"zipcode\":\"10000\",\"country\":\"UA\",\"phone\":\"+380.931700001\",\"fax\":\"\",\"email\":\"alex@so.xyz\"},\"billing-contact\":{\"name\":\"Jone Lance\",\"company-name\":\"OMNILANCE LTD\",\"address1\":\"77 North Star street\",\"city\":\"North\",\"state\":\"North Pole\",\"zipcode\":\"10000\",\"country\":\"UA\",\"phone\":\"+380.931700001\",\"fax\":\"\",\"email\":\"alex-lance@so.xyz\"}}}")
  .asString();
package main

import (
  "fmt"
  "strings"
  "net/http"
  "io/ioutil"
)

func main() {

  url := "https://api.omnilance.com/v3/domains/setContacts/so.xyz"

  payload := strings.NewReader("{\"contacts\":{\"reg-contact\":{\"name\":\"Jone Lance\",\"company-name\":\"OMNILANCE LTD\",\"address1\":\"77 North Star street\",\"city\":\"North\",\"state\":\"North Pole\",\"zipcode\":\"10000\",\"country\":\"UA\",\"phone\":\"+380.931700001\",\"fax\":\"\",\"email\":\"alex-lance@so.xyz\"},\"admin-contact\":{\"name\":\"Jone Lance\",\"company-name\":\"OMNILANCE LTD\",\"address1\":\"77 North Star street\",\"city\":\"North\",\"state\":\"North Pole\",\"zipcode\":\"10000\",\"country\":\"UA\",\"phone\":\"+380.931700001\",\"fax\":\"\",\"email\":\"alex@so.xyz\"},\"tech-contact\":{\"name\":\"Jone Lance\",\"company-name\":\"OMNILANCE LTD\",\"address1\":\"77 North Star street\",\"city\":\"North\",\"state\":\"North Pole\",\"zipcode\":\"10000\",\"country\":\"UA\",\"phone\":\"+380.931700001\",\"fax\":\"\",\"email\":\"alex@so.xyz\"},\"billing-contact\":{\"name\":\"Jone Lance\",\"company-name\":\"OMNILANCE LTD\",\"address1\":\"77 North Star street\",\"city\":\"North\",\"state\":\"North Pole\",\"zipcode\":\"10000\",\"country\":\"UA\",\"phone\":\"+380.931700001\",\"fax\":\"\",\"email\":\"alex-lance@so.xyz\"}}}")

  req, _ := http.NewRequest("POST", url, payload)

  req.Header.Add("X-OMNI-APIKEY", "52893482385823482835872349")
  req.Header.Add("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")
  req.Header.Add("content-type", "application/json")

  res, _ := http.DefaultClient.Do(req)

  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))

}

The above command returns JSON structured like this:

{
    "domain": {
        "domainName": "so.xyz",
        "nameservers": [
            "ns1.omnilance.com",
            "ns2.omnilance.com",
            "ns3.omnilance.com"
        ],
        "contacts": {
            "reg-contact": {
                "name": "Jone Omni",
                "company-name": "OMNILANCE LTD",
                "address1": "77 North Star street",
                "city": "North",
                "state": "North Pole",
                "zipcode": "10000",
                "country": "UA",
                "phone": "+380.931700001",
                "fax": "",
                "email": "alex@so.xyz"
            },
            "admin-contact": {
                "name": "Jone Omni",
                "company-name": "OMNILANCE LTD",
                "address1": "77 North Star street",
                "city": "North",
                "state": "North Pole",
                "zipcode": "10000",
                "country": "UA",
                "phone": "+380.931700001",
                "fax": "",
                "email": "alex@so.xyz"
            },
            "tech-contact": {
                "name": "Jone Omni",
                "company-name": "OMNILANCE LTD",
                "address1": "77 North Star street",
                "city": "North",
                "state": "North Pole",
                "zipcode": "10000",
                "country": "UA",
                "phone": "+380.931700001",
                "fax": "",
                "email": "alex@so.xyz"
            },
            "billing-contact": {
                "name": "Jone Omni",
                "company-name": "OMNILANCE LTD",
                "address1": "77 North Star street",
                "city": "North",
                "state": "North Pole",
                "zipcode": "10000",
                "country": "UA",
                "phone": "+380.931700001",
                "fax": "",
                "email": "alex@so.xyz"
            }
        },
        "privacyEnabled": false,
        "lockedEnabled": false,
        "autorenewEnabled": true,
        "createDate": "2001-05-14T09:57:37Z",
        "expireDate": "2003-05-15T02:59:59Z",
        "renewalCost": "111014.400000",
        "premium": true
    },
    "order-id": "2965",
    "status": "active"
}

HTTP Method

POST

HTTP Request

Endpoint: https://api.omnilance.com/v3/domains/setContacts/{domainName}

Query Parameters

Parameter Default Required Description
domainName
(path parameters)
string Required DomainName is the domain name to set the contacts for.
contacts []Contacts Model Required Contacts is the list of contacts to change.

Response Parameters

Parameter Default Description
domain []Domain Model Returns a hash map containing details of the Domain Order.
order-id string Order ID (order-id)
error string Return an error code.
message string Return detailed information.

Domain Model

In the Domain Model lists all the data for the request.

Query Parameters

Parameter Default Required Description
domainName string Required Is the punycode encoded value of the domain name.
nameservers []string Required The Name Servers of the domain name.
contacts Contacts Model Optional Contacts for the domain.
privacyEnabled bool Optional Reflects if Whois Privacy is enabled for this domain.
lockedEnabled bool Optional Indicates that the domain cannot be transfered to another registrar.
autorenewEnabled bool Optional Indicates if the domain will attempt to renew automatically before expiration.
updateProhibited
(read only)
bool Optional Indicates that the domain cannot be modified.
createDate
(read only)
string Optional Is the date the domain was created at the registry.
expireDate
(read only)
string Optional Is the date the domain will expire.
renewalCost
(read only)
float64 Optional Is the price to renew the domain. It may be required for the Premium Domain.
premium
(read only)
bool Optional Reflects of premium domain

Extended Attributes

tldRequirements

.UA Domains

Parameter Possible Values Required Description
X-UA-TM-NUMBER yes Trademark number required for the registration of a 2nd level .UA domain.

You also have to provide a trademark certificate issued according to Madrid System for the International Registration of Marks acting in Ukraine (abbreviation "UA" must be in the field 831 DESIGNATIONS). The Certificate of Ukraine for the trademark or service mark issued by the central executive authority dealing with issues of legal protection of intellectual property.

.NU Domains

Parameter Possible Values Required Description
X-NL-LEGALFORM PERSOON, ANDERS yes This parameter states the legal form of the organization/company or natural person.

Contacts Model

Contacts stores contact information for domain-related roles.

Query Parameters

Parameter Default Required Description
reg-contact *Contact Required The Registrant Contact of the domain name.
admin-contact *Contact Required The Administrative Contact of the domain name.
tech-contact *Contact Required The Technical Contact of the domain name.
billing-contact *Contact Required The Billing Contact of the domain name.

Contact Model

Contact contains all the contact data.

Query Parameters

Parameter Default Required Description
name string Required
company-name []string Required
address1 string Required
city string Required
state string Required
zipcode string Required
country string Required
phone string Required
fax string Required
email string Required
ContactRequirements map[string]string Optional

DNS Zone

Add DNS Zone

CreateZoneRecord this will creates a new domain to the DNS database and create a new records.

/v3/domains/createZoneRecord/so.xyz

Use this code:

<?php

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.omnilance.com/v3/domains/createZoneRecord/so.xyz",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => "{"type":"A","name":"www","ttl":86400,"priority":"","value":["194.54.80.32","194.54.80.33","194.54.80.34"]}",
  CURLOPT_HTTPHEADER => array(
    "X-OMNI-APIKEY: 52893482385823482835872349",
    "X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c",
    "content-type: application/json"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}

curl -X POST \
 https://api.omnilance.com/v3/domains/checkAvailability \
 -H 'X-OMNI-APIKEY: 52893482385823482835872349' \
 -H 'X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c' \
 -H 'content-type: application/json' \
 -d '{"type":"A","name":"www","ttl":86400,"priority":"","value":["194.54.80.32","194.54.80.33","194.54.80.34"]}'

import requests

url = "https://api.omnilance.com/v3/domains/createZoneRecord"

payload = "{"type":"A","name":"www","ttl":86400,"priority":"","value":["194.54.80.32","194.54.80.33","194.54.80.34"]}"

headers = {
        'Content-Type': 'application/json',
        'X-OMNI-APIKEY': '52893482385823482835872349',
        'X-OMNI-SIGNATURE': '5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c'
}

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)
HttpResponse<String> response = Unirest.post("https://api.omnilance.com/v3/domains/checkAvailability")
  .header("X-OMNI-APIKEY", "52893482385823482835872349")
  .header("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")
  .header("content-type", "application/json")
  .body("{"type":"A","name":"www","ttl":86400,"priority":"","value":["194.54.80.32","194.54.80.33","194.54.80.34"]}")
  .asString();
package main

import (
  "fmt"
  "strings"
  "net/http"
  "io/ioutil"
)

func main() {

  url := "https://api.omnilance.com/v3/domains/checkAvailability"

  payload := strings.NewReader("{"type":"A","name":"www","ttl":86400,"priority":"","value":["194.54.80.32","194.54.80.33","194.54.80.34"]}")

  req, _ := http.NewRequest("POST", url, payload)

  req.Header.Add("X-OMNI-APIKEY", "52893482385823482835872349")
  req.Header.Add("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")
  req.Header.Add("content-type", "application/json")

  res, _ := http.DefaultClient.Do(req)

  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))

}

The above command returns JSON structured like this:

{
    "records": [
        {
            "domainName": "so.xyz",
            "type": "A",
            "name": "www",
            "ttl": 86400,
            "priority": 0,
            "value": "192.168.226.10"
        },
        {
            "domainName": "so.xyz",
            "type": "A",
            "name": "mail",
            "ttl": 86400,
            "priority": 0,
            "value": "192.168.226.10"
        },
        {
            "domainName": "so.xyz",
            "type": "MX",
            "name": "",
            "ttl": 86400,
            "priority": 10,
            "value": "mail.so.xyz."
        },
        {
            "domainName": "so.xyz",
            "type": "SOA",
            "name": "",
            "ttl": 86400,
            "priority": 0,
            "value": "ns1.rx-name.net. hostmaster.rx-name.ua. 2001060501 28800 7200 1209600 86400"
        },
        {
            "domainName": "so.xyz",
            "type": "NS",
            "name": "",
            "ttl": 86400,
            "priority": 0,
            "value": "ns1.rx-name.net."
        },
        {
            "domainName": "so.xyz",
            "type": "NS",
            "name": "",
            "ttl": 86400,
            "priority": 0,
            "value": "ns2.rx-name.net."
        },
        {
            "domainName": "so.xyz",
            "type": "NS",
            "name": "",
            "ttl": 86400,
            "priority": 0,
            "value": "ns3.rx-name.net."
        },
        {
            "domainName": "so.xyz",
            "type": "A",
            "name": "",
            "ttl": 86400,
            "priority": 0,
            "value": "192.168.226.10"
        }
    ],
    "message": "Domain zone so.xyz was created successfully."
}

HTTP Method

POST

HTTP Request

Endpoint: https://api.omnilance.com/v3/domains/createZoneRecord/{domainName}

Query Parameters

Parameter Default Required Description
domainName
(path parameters)
string Required DomainName is the zone that the record belongs to.
name string Optional The record name, without the domain. The domain will be automatically appended. Use an empty string to create a record for the apex.
type string Optional Type is one of the following: A, AAAA, CAA, CNAME, LOC, MX, NS, PTR, SPF, SRV, TXT
value []string Optional A list of values for this record
ttl integer Optional The time in seconds that DNS resolvers should cache this record. Default: 10800 / Minimum: 300 / Maximum: 2592000
priority integer Optional Priority of the zone (Default: 10 for MX and SRV types)

Response Parameters

Parameter Default Description
records []Record Model Results of the search are returned here.
error string Return an error code.
message string Return detailed information.

Delete DNS Zone

DeleteZoneRecord - delete a zone.

/v3/domains/deleteZoneRecord/so.xyz

Use this code:

<?php

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.omnilance.com/v3/domains/deleteZoneRecord/so.xyz",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
  CURLOPT_POSTFIELDS => "",
  CURLOPT_HTTPHEADER => array(
    "X-OMNI-APIKEY: 52893482385823482835872349",
    "X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c",
    "content-type: application/json"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}

curl -X DELETE \
 https://api.omnilance.com/v3/domains/deleteZoneRecord/so.xyz \
 -H 'X-OMNI-APIKEY: 52893482385823482835872349' \
 -H 'X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c' \
 -H 'content-type: application/json'

import requests

url = "https://api.omnilance.com/v3/domains/deleteZoneRecord/so.xyz"

headers = {
        'Content-Type': 'application/json',
        'X-OMNI-APIKEY': '52893482385823482835872349',
        'X-OMNI-SIGNATURE': '5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c'
}

response = requests.request("DELETE", url, headers=headers)

print(response.text)
HttpResponse<String> response = Unirest.delete("https://api.omnilance.com/v3/domains/deleteZoneRecord/so.xyz")
  .header("X-OMNI-APIKEY", "52893482385823482835872349")
  .header("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")
  .header("content-type", "application/json")
  .body("")
  .asString();
package main

import (
  "fmt"
  "net/http"
  "io/ioutil"
)

func main() {

  url := "https://api.omnilance.com/v3/domains/deleteZoneRecord/so.xyz"

  req, _ := http.NewRequest("DELETE", url, nil)

  req.Header.Add("X-OMNI-APIKEY", "52893482385823482835872349")
  req.Header.Add("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")

  res, _ := http.DefaultClient.Do(req)

  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))

}

The above command returns JSON structured like this:

{
    "domainName": "so.xyz",
    "message": "Domain zone so.xyz was deleted successfully."
}

HTTP Method

DELETE

HTTP Request

Endpoint: https://api.omnilance.com/v3/domains/deleteZoneRecord/{domainName}

Query Parameters

Parameter Default Required Description
domainName
(path parameters)
string Required

Response Parameters

Parameter Default Description
domainName string
error string Return an error code.
message string Return detailed information.

Get DNS Details

GetZoneRecord view all of the current DNS records associated with the domain name.

/v3/domains/getZoneRecord/so.xyz

Use this code:

<?php

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.omnilance.com/v3/domains/getZoneRecord/so.xyz",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => array(
    "X-OMNI-APIKEY: 52893482385823482835872349",
    "X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c",
    "content-type: application/json"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}

curl -X GET \
 https://api.omnilance.com/v3/domains/getZoneRecord/so.xyz \
 -H 'X-OMNI-APIKEY: 52893482385823482835872349' \
 -H 'X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c' 

import requests

url = "https://api.omnilance.com/v3/domains/getZoneRecord/so.xyz"

headers = {
        'Content-Type': 'application/json',
        'X-OMNI-APIKEY': '52893482385823482835872349',
        'X-OMNI-SIGNATURE': '5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c'
}

response = requests.request("GET", url, headers=headers)

print(response.text)
HttpResponse<String> response = Unirest.get("https://api.omnilance.com/v3/domains/getZoneRecord/so.xyz")
  .header("X-OMNI-APIKEY", "52893482385823482835872349")
  .header("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")
  .asString();
package main

import (
  "fmt"
  "net/http"
  "io/ioutil"
)

func main() {

  url := "https://api.omnilance.com/v3/domains/getZoneRecord/so.xyz"

  req, _ := http.NewRequest("GET", url, nil)

  req.Header.Add("X-OMNI-APIKEY", "52893482385823482835872349")
  req.Header.Add("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")

  res, _ := http.DefaultClient.Do(req)

  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))

}

The above command returns JSON structured like this:

{
    "records": [
        {
            "domainName": "so.xyz",
            "name": "www",
            "type": "A",
            "value": "195.0.0.1",
            "ttl": 300
        },
        {
            "domainName": "so.xyz",
            "name": "mail",
            "type": "A",
            "value": "195.0.0.2",
            "ttl": 300
        }
    ]
}

HTTP Method

GET

HTTP Request

Endpoint: https://api.omnilance.com/v3/domains/getZoneRecord/{domainName}

Query Parameters

Parameter Default Required Description
domainName
(path parameters)
string Required

Response Parameters

Parameter Default Description
records []Record Model Results of the search are returned here.
error string Return an error code.
message string Return detailed information.

Add DNS Record

CreateDnsRecord - adds a new DNS resource record to the selected domain.

/v3/domains/CreateDnsRecord/so.xyz

Use this code:

<?php

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.omnilance.com/v3/domains/createDnsRecord/so.xyz",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => "{"type":"A","name":"panel","ttl":86400,"priority":"","value":["194.54.80.32"]}",
  CURLOPT_HTTPHEADER => array(
    "X-OMNI-APIKEY: 52893482385823482835872349",
    "X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c",
    "content-type: application/json"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}

curl -X POST \
 https://api.omnilance.com/v3/domains/createDnsRecord/so.xyz \
 -H 'X-OMNI-APIKEY: 52893482385823482835872349' \
 -H 'X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c' \
 -H 'content-type: application/json' \
 -d '{"type":"A","name":"panel","ttl":86400,"priority":"","value":["194.54.80.32"]}'

import requests

url = "https://api.omnilance.com/v3/domains/createDnsRecord/so.xyz"

payload = "{"type":"A","name":"panel","ttl":86400,"priority":"","value":["194.54.80.32"]}"

headers = {
        'Content-Type': 'application/json',
        'X-OMNI-APIKEY': '52893482385823482835872349',
        'X-OMNI-SIGNATURE': '5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c'
}

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)
HttpResponse<String> response = Unirest.post("https://api.omnilance.com/v3/domains/createDnsRecord/so.xyz")
  .header("X-OMNI-APIKEY", "52893482385823482835872349")
  .header("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")
  .header("content-type", "application/json")
  .body("{"type":"A","name":"panel","ttl":86400,"priority":"","value":["194.54.80.32"]}")
  .asString();
package main

import (
  "fmt"
  "strings"
  "net/http"
  "io/ioutil"
)

func main() {

  url := "https://api.omnilance.com/v3/domains/createDnsRecord/so.xyz"

  payload := strings.NewReader("{"type":"A","name":"panel","ttl":86400,"priority":"","value":["194.54.80.32"]}")

  req, _ := http.NewRequest("POST", url, payload)

  req.Header.Add("X-OMNI-APIKEY", "52893482385823482835872349")
  req.Header.Add("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")
  req.Header.Add("content-type", "application/json")

  res, _ := http.DefaultClient.Do(req)

  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))

}

The above command returns JSON structured like this:

{
    "record": {
        "type": "A",
        "name": "panel",
        "ttl": 86400,
        "priority": 0,
        "value": [
            "194.54.80.32"
        ]
    },
    "message": "The records was created successfully."
}

HTTP Method

POST

HTTP Request

Endpoint: https://api.omnilance.com/v3/domains/createDnsRecord/{domainName}

Query Parameters

Parameter Default Required Description
domainName
(path parameters)
string Required The domain being updated.
name string Required The record name, without the domain. The domain will be automatically appended (there is no need to include the ".DOMAIN NAME")
type string Required Type is one of the following: A, AAAA, CAA, CNAME, LOC, MX, NS, PTR, SPF, SRV, TXT
value []string Required A list of values for this record
ttl integer Required The time in seconds that DNS resolvers should cache this record. Default: 10800 / Minimum: 300 / Maximum: 2592000
priority integer Optional Priority of the zone (Default: 10 for MX and SRV types). Only used for MX or SRV.

Response Parameters

Parameter Default Description
records []Record Model Results of the search are returned here.
error string Return an error code.
message string Return detailed information.

Modify DNS Record

ModifyDnsRecord - replaces the record with the new record that is passed.

/v3/domains/modifyDnsRecord/so.xyz/www

Use this code:

<?php

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.omnilance.com/v3/domains/modifyDnsRecord/so.xyz/www",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => "{"type":"A","name":"panel","ttl":86400,"priority":"","value":["192.54.80.32"]}",
  CURLOPT_HTTPHEADER => array(
    "X-OMNI-APIKEY: 52893482385823482835872349",
    "X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c",
    "content-type: application/json"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}

curl -X PUT \
 https://api.omnilance.com/v3/domains/modifyDnsRecord/so.xyz/www \
 -H 'X-OMNI-APIKEY: 52893482385823482835872349' \
 -H 'X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c' \
 -H 'content-type: application/json' \
 -d '{"type":"A","name":"panel","ttl":86400,"priority":"","value":["192.54.80.32"]}'

import requests

url = "https://api.omnilance.com/v3/domains/modifyDnsRecord/so.xyz/www"

payload = "{"type":"A","name":"panel","ttl":86400,"priority":"","value":["192.54.80.32"]}"

headers = {
        'Content-Type': 'application/json',
        'X-OMNI-APIKEY': '52893482385823482835872349',
        'X-OMNI-SIGNATURE': '5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c'
}

response = requests.request("PUT", url, data=payload, headers=headers)

print(response.text)
HttpResponse<String> response = Unirest.put("https://api.omnilance.com/v3/domains/modifyDnsRecord/so.xyz/www")
  .header("X-OMNI-APIKEY", "52893482385823482835872349")
  .header("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")
  .header("content-type", "application/json")
  .body("{"type":"A","name":"panel","ttl":86400,"priority":"","value":["192.54.80.32"]}")
  .asString();
package main

import (
  "fmt"
  "strings"
  "net/http"
  "io/ioutil"
)

func main() {

  url := "https://api.omnilance.com/v3/domains/modifyDnsRecord/so.xyz/www"

  payload := strings.NewReader("{"type":"A","name":"panel","ttl":86400,"priority":"","value":["192.54.80.32"]}")

  req, _ := http.NewRequest("PUT", url, payload)

  req.Header.Add("X-OMNI-APIKEY", "52893482385823482835872349")
  req.Header.Add("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")
  req.Header.Add("content-type", "application/json")

  res, _ := http.DefaultClient.Do(req)

  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))

}

The above command returns JSON structured like this:

{
    "record": {
        "type": "A",
        "name": "panel",
        "ttl": 86400,
        "priority": 0,
        "value": [
            "192.54.80.32"
        ]
    }
}

HTTP Method

PUT

HTTP Request

Endpoint: https://api.omnilance.com/v3/domains/modifyDnsRecord/{domainName}/{name}

Query Parameters

Parameter Default Required Description
domainName
(path parameters)
string Required The domain being updated.
name
(path parameters)
string Required The record name, without the domain. The domain will be automatically appended (there is no need to include the ".DOMAIN NAME")
type string Required Type is one of the following: A, AAAA, CAA, CNAME, LOC, MX, NS, PTR, SPF, SRV, TXT
value []string Required A list of values for this record
ttl integer Required The time in seconds that DNS resolvers should cache this record. Default: 10800 / Minimum: 300 / Maximum: 2592000
priority integer Optional Priority of the zone (Default: 10 for MX and SRV types). Only used for MX or SRV.

Response Parameters

Parameter Default Description
records []Record Model Results of the search are returned here.
error string Return an error code.
message string Return detailed information.

Delete DNS Record

DeleteDnsRecord - deletes the selected a record from the zone.

/v3/domains/deleteDnsRecord/so.xyz/www

Use this code:

<?php

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.omnilance.com/v3/domains/deleteDnsRecord/so.xyz/www",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
  CURLOPT_POSTFIELDS => "",
  CURLOPT_HTTPHEADER => array(
    "X-OMNI-APIKEY: 52893482385823482835872349",
    "X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c",
    "content-type: application/json"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}

curl -X DELETE \
 https://api.omnilance.com/v3/domains/deleteDnsRecord/so.xyz/www \
 -H 'X-OMNI-APIKEY: 52893482385823482835872349' \
 -H 'X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c' \
 -H 'content-type: application/json'

import requests

url = "https://api.omnilance.com/v3/domains/deleteDnsRecord/so.xyz/www"

headers = {
        'Content-Type': 'application/json',
        'X-OMNI-APIKEY': '52893482385823482835872349',
        'X-OMNI-SIGNATURE': '5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c'
}

response = requests.request("DELETE", url, headers=headers)

print(response.text)
HttpResponse<String> response = Unirest.delete("https://api.omnilance.com/v3/domains/deleteDnsRecord/so.xyz/www")
  .header("X-OMNI-APIKEY", "52893482385823482835872349")
  .header("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")
  .header("content-type", "application/json")
  .body("")
  .asString();
package main

import (
  "fmt"
  "net/http"
  "io/ioutil"
)

func main() {

  url := "https://api.omnilance.com/v3/domains/deleteDnsRecord/so.xyz/www"

  req, _ := http.NewRequest("DELETE", url, nil)

  req.Header.Add("X-OMNI-APIKEY", "52893482385823482835872349")
  req.Header.Add("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")

  res, _ := http.DefaultClient.Do(req)

  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))

}

The above command returns JSON structured like this:

{
    "domainName": "so.xyz",
    "message": "Record www was deleted successfully"
}

HTTP Method

DELETE

HTTP Request

Endpoint: https://api.omnilance.com/v3/domains/deleteDnsRecord/{domainName}/{name}

Query Parameters

Parameter Default Required Description
domainName
(path parameters)
string Required -
name
(path parameters)
string Required -
type string Required Type is one of the following: A, AAAA, CAA, CNAME, LOC, MX, NS, PTR, SPF, SRV, TXT

Response Parameters

Parameter Default Description
domainName string
error string Return an error code.
message string Return detailed information.

Record Model

Query Parameters

Parameter Default Required Description
domainName string Required Is the zone that the record belongs to.
name string Required Is a hostname relative to the zone: for example, for a record for admin.example.com, domain would be example.com and host would be admin. An apex record would be specified an empty host "" or @. A SRV record would be specified by _service}._{protocal}.{host}: e.g. _sip._tcp.phone for _sip._tcp.phone.example.com.
type string Required Type is one of the following: A, AAAA, CAA, CNAME, LOC, MX, NS, PTR, SPF, SRV, TXT
value string Required For SRV records, value has the following format: "{weight} {port} {target}" e.g. "1 5061 sip.example.com".
ttl integer Required The time in seconds that DNS resolvers should cache this record. Default: 10800 / Minimum: 300 / Maximum: 2592000
priority integer Required Priority of the zone (Default: 10 for MX and SRV types). Only used for MX or SRV.

Tools

IDNConverter

idnConverter - helps the client convert the domain españa.com into the required format.

/v3/tool/idnConverter/españa.com

<?


curl -X GET \
 https://api.omnilance.com/v3/tool/idnConverter/españa.com \
 -H 'X-OMNI-APIKEY: 52893482385823482835872349' \
 -H 'X-OMNI-SIGNATURE: 5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c' 

import requests

url = "https://api.omnilance.com/v3/tool/idnConverter/españa.com"

headers = {
        'Content-Type': 'application/json',
        'X-OMNI-APIKEY': '52893482385823482835872349',
        'X-OMNI-SIGNATURE': '5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c'
}

response = requests.request("GET", url, headers=headers)

print(response.text)
HttpResponse<String> response = Unirest.get("https://api.omnilance.com/v3/tool/idnConverter/españa.com")
  .header("X-OMNI-APIKEY", "52893482385823482835872349")
  .header("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")
  .asString();
package main

import (
  "fmt"
  "net/http"
  "io/ioutil"
)

func main() {

  url := "https://api.omnilance.com/v3/tool/idnConverter/españa.com"

  req, _ := http.NewRequest("GET", url, nil)

  req.Header.Add("X-OMNI-APIKEY", "52893482385823482835872349")
  req.Header.Add("X-OMNI-SIGNATURE", "5acbd60f94a6ff58f0903cc5e5a2612d8d2f2e7b48848accbdbc8fd66ceb038c")

  res, _ := http.DefaultClient.Do(req)

  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))

}

The above command returns JSON structured like this:

{
    "query": "espa\u00f1a.com",
    "unicode": "espa\u00f1a.com",
    "punycode": "xn--espaa-rta.com"
}

HTTP Method

GET

HTTP Request

Endpoint: https://api.omnilance.com/v3/tool/idnConverter/españa.com

Query Parameters

Parameter Default Description
domainName string domainName to convert to Unicode or Punycode

Response Parameters

Parameter Default Description
query string espa\u00f1a.com , /* españa.com */
unicode string espa\u00f1a.com
punycode string xn--espaa-rta.com

Errors

The OMNILANCE API uses the following error codes:

HTTP Code Meaning
200 Command completed successfully
400 Bad Request -- Your request is invalid.
401 Unauthorized -- Your API key is wrong.
403 Forbidden -- The requested is hidden for administrators only.
404 Not Found -- The specified could not be found.
405 Method Not Allowed -- You tried to access a with an invalid method.
406 Not Acceptable -- You requested a format that isn't json.
410 Gone -- The krequested has been removed from our servers.
418 I'm a teapot.
429 Too Many Requests -- You're requesting too many! Slow down!
500 Internal Server Error -- We had a problem with our server. Try again later.
503 Service Unavailable -- We're temporarily offline for maintenance. Please try again later.
Error Code Description
NOT_FOUND Command not found
NOT_FOUND_AUTH Not found header X-OMNI-APIKEY or X-OMNI-SIGNATURE
INVALID_SIGNATURE Signature for this request is not valid
REJECTED_API_KEY Invalid API-key, IP, or permissions for action
IP_BLOCKED Requests from this (192.169.100.100) ip address are not allowed
READ_ONLY Read Only Mode Enabled. This command is not allowed