我正在尝试三个 Zoho Invoice API,但它们不工作。
发票 API 是:
- 列出联系人(获取方法)
- 列出客户付款(获取方法)
创建客户付款(过帐方法)
列出联系人(获取方法)
对于列表联系人,我使用的网址为 https://invoice.zoho.com/api/contacts/?authtoken= &scope=invoiceapi
但我的回应是
<Response status="0">
<Code>5</Code>
<Message>
<![CDATA[ Invalid URL Passed ]]>
</Message>
</Response>
- 列出客户付款(获取方法)
对于列出客户付款,我使用 URL 作为
https://invoice.zoho.com/api/customerpayments?authtoken= &scope=invoiceapi
我的回应是
<Response status="0">
<Code>5</Code>
<Message>
<![CDATA[ Invalid URL Passed ]]>
</Message>
</Response>
- 创建客户付款(过帐方法)
要创建客户付款,我正在使用创建地图字段和发布 URL 方法,如下所示
<%{
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%>
<%}%>
但我的回应是
500 服务器遇到了一个意外的情况,导致它无法完成请求
谁能帮我解决这个问题