Zoho Rest API requires data specified in front of query parameters

Zoho Rest API requires data specified between path and first query parm. How do I get this to happen? My codeless code:


The resulting code is incorrect. The Invoice-Number in this example ends up as a query parm rather than being inserted prior to the question mark.

Hi @Richard_Munger

In your screenshot



it’s clear that this request is calling the ZohoAccounting API service, the getInvoices method, which takes the parameters organization_id and invoice_number.
This is not a request to the Zoho REST API.

The screenshot of your Codeless logic with the request to Zoho looks correct. You could try adding a Print block for the path and check what exact path is being generated. Possibly the trailing slash in the path is unnecessary.

Regards,
Viktor

Victor,
The screenshot of the Backendless code is from the logic portion of the API on Backendless. The curl snippet is the result. The Zoho API expects the request to be in a specific format that has the request-type and request-data placed at the end of the URL and prior to the query parms.
Format:
curl --request GET
–url ‘http s://www.zohoapis.com/books/v3/request-type/request-data?organization_id=xxxxxxxx’
–header ‘Authorization: Zoho-oauthtoken token-value’

@Richard_Munger

Format:
curl --request GET
–url ‘http s://www.zohoapis.com/books/v3/request-type/request-data?organization_id=xxxxxxxx’
–header ‘Authorization: Zoho-oauthtoken token-value’

Based on your logic, the corresponding parts of the URL map to the following variables:

  • https://www.zohoapis.com/books/v3api-root
  • /request-type/api-type
  • request-dataMethod Argument "invoice_number"

Please try removing this slash and saving the logic.

After that, call the method by passing invoice_number and organization_id and see what response you get.

Regards,
Viktor

Hello Viktor,
I tried the suggested modification, but the resulting cURL is still not what is expected by Zoho. Zoho expects the data requested (invoice number in this case) to be specified immediately following the path and prior to the query parameters.

Hi Richard,

Do you have a working version of a curl request you could share? Having that would help modeling the same request in codeless.

Regards,
Mark

Hello Mark,

Regarding this topic/issue. It has been discovered that Zoho has a technical issue with their APIs that needs to be addressed. I reported the problems to Zoho and they have been slow to respond and address the reported problems. I will keep you apprised of the Zoho resolution as I get more information.

Rick

Richard G. Munger

Eiger Creative – An IT Solutions Provider

Director

ph: 860-584-2284 x101

cell: 860-276-2390

fax: 860-584-9922

email: rmunger@EigerCreative.com

Book a Meeting Here

1 Like