Skip to main content

Domain Registar

Domain Registration

Endpoint: /api/reseller/domain/register

Method: POST

Request Parameters

Parameters


Type

Description

username

string


api_key

string


domain

string


years

integer


registrationDate

date


expiryDate

date


nameservers

array


addon

array


contacts.registrant

array


testmode

string (on, off)



Response Parameters

Parameters

Type

Description

success

boolean (true, false)


message

string


errors

array

It will only be returned if success is false

data

array

It will only be returned when success is true

Example Request

{
  "username" : "test@navicosoft.com",
  "api_key" : "^H^HHGTG******)((",
  "years" :1,
  "testmode":"on",
  "registrationDate":"2024-12-31",
  "expiryDate":"2024-12-31",
  "nameservers" : {
  	"ns1" : "ns1.navicosoft.com",
    "ns2" : "ns2.navicosoft.com",
    "ns3" : "",
    "ns4" : ""
  },
  "addon":{
    "privacy_protection" : {
      "addon_id": 56,
      "quantity": 1,
      "price": 10
    }
  },
  "contacts" : {
    "registrant" : {
      "firstname": "Navicosoft",
      "lastname" : "Customer",
      "fullname" : "Navicosoft Customer",
      "companyname" : "Navicosoft",
      "email" : "customer@navicosoft.com",
      "address1" : "lahore",
      "address2" : "",
      "city" : "lahore",
      "state" : "punjab",
      "zipcode" : "64200",
      "country" : "Pakistan",
      "phonenumber" : "+9230000000000"
    }
  }
}

Example Response

Success

If is true then the domain information is available and if it is false then it is domain information not found

{
  "success": true,
  "message": "Domain Registered Successfully",
  "data": {
    "id": 1,
    "client_id": 1,
    "type": "register",
    "registration_date": "2024-12-31",
    "expiry_date": "2025-12-31",
    "domain": "domain.com",
    "roid": "***********",
    "sld": null,
    "tld": null,
    "domain_id": 1,
    "registrar": "Navicosoft",
    "period": 1,
    "status": "Active",
    "auto_renew": 1,
    "next_due_date": "2025-12-31",
    "additional_notes": null,
    "domain_password": null,
    "first_amount": "20.00",
    "recurring_amount": "20.00",
    "nameservers": ['ns1.navicosoft.com','ns2.navicosoft.com'],
    "domain_statuses": ["clientTransferProhibited"],
    "created_at": "2024-12-31T09:50:16.000000Z",
    "updated_at": "2024-12-31T10:07:20.000000Z",
    "deletion_date": "2026-20-10",
    "deleted_at": null,
    "id_protection": "0",
    "epp_status": "test",
    "theft_protection": "0",
    "encrypted_id": null,
    "data": {
      "mailsend": [
        {
          "date": "2024-12-31"
        }
      ],
      "notes": "First note\\r\\nsecond comment\\r\\nthird comment",
      "verified": {
        "date": "2025-10-01",
        "verified_by": "Domain contact verified by customer@navicosoft.com"
      }
    },
    "raw_mail": "1",
    "suspended_by": null,
    "client": {
      "id": 1,
      "reseller_id": 3,
      "customer_id": "34",
      "first_name": "Navicosoft",
      "last_name": "Customer",
      "company_name": "Navicosoft",
      "email": "customer@navicosoft.com",
      "address_1": "Lahore",
      "address_2": "",
      "city": "85655",
      "state": "Punjab",
      "zip_code": "64200",
      "country_code": "Pakistan",
      "phone_number": "+923000000000",
      "selling_currency": null,
      "meta_data": null,
      "status": "active",
      "created_at": "2024-12-31T09:49:22.000000Z",
      "updated_at": "2024-12-31T09:49:22.000000Z",
      "user_id": 34,
      "data": null,
      "deleted_at": null,
      "subscribe": "0"
    },
    "domain_contacts": [
      {
        "id": 1,
        "domain_id": 1,
        "contact_id": "NAV*******",
        "first_name": "Navicosoft",
        "last_name": "Customer",
        "company_name": "Navicosoft",
        "email": "customer@navicosoft.com",
        "address_1": "Lahore",
        "address_2": "",
        "city": "Lahore",
        "state": "Punjab",
        "zip_code": "64200",
        "country_code": "Pakistan",
        "phone_number": "+923000000000",
        "type": "tech",
        "created_at": "2024-12-31T09:50:16.000000Z",
        "updated_at": "2024-12-31T09:50:27.000000Z",
        "deleted_at": null,
        "editRequest": "0",
        "encrypted_domain_id": null
      },
      {
        "id": 2,
        "domain_id": 1,
        "contact_id": "NAV********",
        "first_name": "Navicosoft",
        "last_name": "Customer",
        "company_name": "Navicosoft",
        "email": "customer@navicosoft.com",
        "address_1": "Lahore",
        "address_2": "",
        "city": "Lahore",
        "state": "Punjab",
        "zip_code": "64200",
        "country_code": "Pakistan",
        "phone_number": "+923000000000",
        "type": "billing",
        "created_at": "2024-12-31T09:50:16.000000Z",
        "updated_at": "2024-12-31T09:50:16.000000Z",
        "deleted_at": null,
        "editRequest": "0",
        "encrypted_domain_id": null
      },
      {
        "id": 3,
        "domain_id": 1,
        "contact_id": "NAV********",
        "first_name": "Navicosoft",
        "last_name": "Customer",
        "company_name": "Navicosoft",
        "email": "customer@navicosoft.com",
        "address_1": "Lahore",
        "address_2": "",
        "city": "Lahore",
        "state": "Punjab",
        "zip_code": "64200",
        "country_code": "Pakistan",
        "phone_number": "+92300000000",
        "type": "admin",
        "created_at": "2024-12-31T09:50:16.000000Z",
        "updated_at": "2024-12-31T09:50:16.000000Z",
        "deleted_at": null,
        "editRequest": "0",
        "encrypted_domain_id": null
      },
      {
        "id": 4,
        "domain_id": 1,
        "contact_id": "NAV********",
        "first_name": "Navicosoft",
        "last_name": "Customer",
        "company_name": "Navicosoft",
        "email": "customernavicosoft.com",
        "address_1": "Lahore",
        "address_2": "",
        "city": "Lahore",
        "state": "Punjab",
        "zip_code": "64200",
        "country_code": "Pakistan",
        "phone_number": "+923000000000",
        "type": "registrant",
        "created_at": "2024-12-31T09:50:16.000000Z",
        "updated_at": "2024-12-31T09:50:16.000000Z",
        "deleted_at": null,
        "editRequest": "0",
        "encrypted_domain_id": null
      }
    ]
  }
}

Response code 200

Errors

{
  "success": false,
  "message": "The given data is invalid.",
  "errors": [
    "Domain Name is required"
  ]
}

Response code 422