Jump to content
  • 0

The authorization details given appear to be invalid


katycomputer

Question

I setup API with un: 123 key: ec844ceefaff1d1f2d230ed1ce5b2631
image.thumb.png.134317aa53b1ef66059b34e9d46a4eb8.png

It doesn't seem to be working:
image.thumb.png.a5f5bb1723d6b367923975cdc3d036b1.png
[root@cp ~]# curl -k https://katy.com/billing/api/invoices/add.json -u 123:ec844ceefaff1d1f2d230ed1ce5b2631 -d 'vars[client_id]=1' -d 'vars[date_billed]=2013-11-20T16:43:00-07:00' -d 'vars[date_due]=2013-11-20T16:43:00-07:00' -d 'vars[currency]=USD'[B
{"message":"The authorization details given appear to be invalid.","errors":{"user":{"valid":"The API user or key appears to be invalid."}},"response":null}[root@cp ~]#

Where did I go wrong?

After posting this note I delete API user 123

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

  • 0

If you're sure the API user and key are correct, it may be that your web server is run in CGI and certain variables for HTTP authentication are not available, like PHP_AUTH_USER/PHP_AUTH_PW, HTTP_AUTHORIZATION, or REDIRECT_HTTP_AUTHORIZATION. In that case you will likely need to update your .htaccess file to include a rewrite rule to set HTTP_AUTHORIZATION. Take a look at this post for an example.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...