1

我正在尝试三个 Zoho Invoice API,但它们不工作。

发票 API 是:

  1. 列出联系人(获取方法)
  2. 列出客户付款(获取方法)
  3. 创建客户付款(过帐方法)

  4. 列出联系人(获取方法)

对于列表联系人,我使用的网址为 https://invoice.zoho.com/api/contacts/?authtoken= &scope=invoiceapi

但我的回应是

<Response status="0">
<Code>5</Code>
<Message>
<![CDATA[ Invalid URL Passed ]]>
</Message>
</Response>
  1. 列出客户付款(获取方法)

对于列出客户付款,我使用 URL 作为

https://invoice.zoho.com/api/customerpayments?authtoken= &scope=invoiceapi

我的回应是

<Response status="0">
<Code>5</Code>
<Message>
<![CDATA[ Invalid URL Passed ]]>
</Message>
</Response>
  1. 创建客户付款(过帐方法)

要创建客户付款,我正在使用创建地图字段和发布 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 服务器遇到了一个意外的情况,导致它无法完成请求

谁能帮我解决这个问题

4

1 回答 1

3

这是来自 Zoho Invoice Team 的 Reshma。我们最近为 Zoho Invoice 和 Zoho Books 推出了 REST API。我建议您做的是,在您的 URL 中包含标签 V3,以便 api 调用如下所示:

https://invoice.zoho.com/api/v3/entity_name?authtoken=*************&organization_id=******

您可以在此处的 API 文档中找到大多数问题的答案。您也可以随时联系我们support@zohoinvoice.com

让我知道这是否适合您。

问候, 瑞诗玛

于 2014-03-25T05:15:59.000 回答