I am trying to develop client application for GoDaddy based on their API that they provided at https://developer.godaddy.com . I have a problem with the domain availability checking API which i'm checking with Postman app of Google chrome.
API Url: https://api.ote-godaddy.com/v1/domains/available
I have passed the following headers for the POST method:
'Accept' => "application/json", 'Authorization' => "sso-key $myKey:$mySecret"
The post data value is on "raw" format which is like - {"domain": ["omni7555.com"]}
I have searched alot for the issue on stackoverflow and find out a similar issue which is mentioned here: Godaddy api authorization error
But it does not work for me. I have also check the raw data value as ["omni7555.com"] which is also not worked well.
The API returns the following error -
{
"errors": [
{
"message": "Invalid character(s) error",
"path": "body.domains[0]",
"domain": "[object Object]",
"code": "INVALID_CHARACTERS",
"status": 422
}
],
"domains": []
}
Can anyone help me to fix the issue.