Search the Community
Showing results for tags 'curl'.
-
I setup API with un: 123 key: ec844ceefaff1d1f2d230ed1ce5b2631 It doesn't seem to be working: [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
-
The API document provides this example for adding invoices, how do I add clients via curl / API? curl https://yourdomain.com/installpath/api/invoices/add.json -u username:key -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' -d 'vars[lines][0][description]=Line item #1' -d 'vars[lines][0][amount]=5.99' -d 'vars[lines][1][description]=Line item #2' -d 'vars[lines][1][amount]=3.75' -d 'vars[lines][1][qty]=2' -d 'vars[delivery][0]=email'