-
Notifications
You must be signed in to change notification settings - Fork 121
Open
Description
Hi all!
-> https://github.com/WHMCS/developer-docs/blob/master/api-reference/domaingetwhoisinfo.md
wrong Response Parameters
- current ---> Parameter: Tech, Type: array, Description: The registrant contact details
- patched --> Parameter: Technical, Type: array, Description: The technical contact details
missing Response Parameters
- Parameter: message, Type: String, Description: the error message in case result is error (relates to Error Responses)
- Parameter: Billing, Type: array, Description: The billing contact details
Also: Response Parameters that are optionally returned, should be marked as such, otherwise it is leaving questions e.g.: Is Registrant always returned? Are Billing, Technical & Admin are optional?
Example Response JSON
current:
{
"result": "success",
"Registrant": "{\"First_Name\":\"Test\",\"Last_Name\":\"Client\",\"Organisation_Name\":null,\"Job_Title\":null,\"Email\":\"test@testemail.com\",\"Address_1\":\"123 Test Street\",\"Address_2\":\"\",\"City\":\"Test\",\"State\":\"Test\",\"Postcode\":\"TE5 5ST\",\"Country\":GB,\"Phone\":\"+44.1234567890\"}"
}to patch:
- Organisation_Name ---> Company_Name
- Address_1 ---> Address
In addition, it would be great having the above escaped contact data fields documented in a table-way as well for better readability.
Thanks!
Metadata
Metadata
Assignees
Labels
No labels