Update Domain Contact
Get Domain Information
Endpoint: /api/reseller/domain/update-domain-contact
Method: POST
Request Parameters
Parameters | Type | Description |
---|---|---|
username | string | |
api_key | string | |
domain_contact_id | integer | |
first_name | string | |
last_name | string | |
companyname | string | |
string | ||
address1 | string | |
address2 | string | |
city | string | |
state | string | |
country | string | |
zipcode | string | |
phone | numeric | phone no with country code |
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******)((",
"domain_contact_id" :1,
"first_name": "Navicosoft",
"last_name" : "Customer",
"fullname" : "Navicosoft Customer",
"companyname" : "Navicosoft",
"email" : "navicosoft@customer.com",
"address1" : "lahore",
"address2" : "",
"city" : "lahore",
"state" : "punjab",
"zipcode" : "64200",
"country" : "Pakistan",
"phone" : "+92300000000"
}
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 contact updated",
"data": {
"id": 1,
"domain_id": 1,
"contact_id": "NAV66fe68d88c439",
"first_name": "Navicosoft",
"last_name": "Customer",
"company_name": "Navicosoft",
"email": "navicosoft@customer.com",
"address_1": "lahore",
"address_2": null,
"city": "lahore",
"state": "punjab",
"zip_code": "64200",
"country_code": "Pakistan",
"phone_number": "+92300000000",
"type": "tech",
"created_at": "2024-10-03T09:50:16.000000Z",
"updated_at": "2024-12-30T09:10:17.000000Z",
"deleted_at": null,
"editRequest": "0",
"encrypted_domain_id": "eyJpdiI6IjE0ODZpcmNwYXpXZnUyTk"
}
}
Response code 200
Errors
{
"success": false,
"message": "The given data is invalid.",
"errors": [
"Contact Id is required"
]
}
Response code 422