• GoDaddy Community
  • VPS & Dedicated Servers
  • VPS & Dedicated Servers

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 
    New

    Purchase Api Error

    I am making a domain purchased.
    But I am getting an error.
    Can you help me with this?
    Thanks.

    $.ajax
    ({	
    	type	: "POST",
    	url	:'https://api.ote-godaddy.com/v1/domains/available?domain=test13456.com&checkType=FAST&forTransfer=true',
    	headers	:{
    			  "Accept": "application/json",
    			  "Authorization": "sso-key VVQX3nBC_FAtUWuTrVnYM4tpEJiPR2L:UoUmM9iLo7xqUa73yU7AfE"
    			},
    	success	:function(data)
    	{
    		alert(console.log(data));
    	},
    	error:function(hata)
    	{
    		alert(console.log(hata));
    	},
    });

     

    2 REPLIES 2
    Helper II

    Re: Purchase Api Error

    First step.

     

    Login your account + generate a new API Key.

     

    If you post your real API Key, anyone reading your message can copy it + start making purchases.

     

    Or they can use other API calls to make account/domain changes.

     

    This could be costly for you.

    New

    Re: Purchase Api Error

    Is there a problem writing the above code?
    I get an error with Test-key.