Zoho Invoice API not working -
i trying 3 zoho invoice api's not working.
the invoice api's are:
- list contacts(get method)
- list customer payments(get method)
create customer payment(post method)
list contacts(get method)
for list contacts have used url https://invoice.zoho.com/api/contacts/?authtoken=&scope=invoiceapi
but response is
<response status="0"> <code>5</code> <message> <![cdata[ invalid url passed ]]> </message> </response>
- list customer payments(get method)
for list customer payments have used url as
https://invoice.zoho.com/api/customerpayments?authtoken=&scope=invoiceapi
my response is
<response status="0"> <code>5</code> <message> <![cdata[ invalid url passed ]]> </message> </response>
- create customer payment(post method)
to create customer payment using create map fields , post url method below
<%{ map1 = map(); map1.put("date", "2014-3-24"); map1.put("amount", "10100"); map1.put("customer_id", "<my custome id>"); map1.put("invoice_id", "<my invoice id>"); map1.put("authtoken", "<my authtoken>"); map1.put("scope", "invoiceapi"); post = posturl("https://invoice.zoho.com/api/customerpayments", map1,false); postresponsecode=post.get("responsecode"); postresponsetext=post.get("responsetext");%> <%=postresponsecode%><br/> <%=postresponsetext%> <%}%>
but response is
500 server encountered unexpected condition prevented fulfilling request
can please me this
this reshma zoho invoice team. launched our rest api zoho invoice , zoho books. suggest , include tag v3 in url api call looks 1 shown below:
https://invoice.zoho.com/api/v3/entity_name?authtoken=*************&organization_id=******
you'll find answers of questions on our api documentation here . can reach out @ support@zohoinvoice.com
let me know if worked out you.
regards, reshma
Comments
Post a Comment