Zoho Inventory API - List All Item Groups returns invalid JSON
Hello,
I have been using Zoho Inventory API, I raised this problem to your team nearly a year ago and had to work around it, but it seems your system is still returning an invalid JSON response.
The details:
When using the Inventory API resource for Item Group "GET /itemgroups/" the response received is not in the format described by the API docs. The doc
here describes a JSON where the item groups are returned as a collection, as so:
- {
- "code": 0,
- "message": "success",
- "itemgroups": [
- {
- "group_id": 622547000000193091,
- "group_name": "Bags",
- "product_type": "goods",
- ........
- },
- {...},
- {...}
- ]
- }
Which would be fine, except instead of the documented format I receive a response with JSON in the following form:
- {
- "code": 0,
- "message": "success",
- "itemgroups": {
- "group_id": 622547000000193091,
- "group_name": "Bags",
- "product_type": "goods",
- ........
- },
- "itemgroups": {
- ......
- },
- "itemgroups": {
- ......
- },
- "itemgroups": [
- {
- "group_id": 622547000000193091,
- "group_name": "Bags",
- "product_type": "goods",
- ........
- },
- {...},
- {...}
- ]
- }
As you can see the response I receive has the 'item_groups' field repeated as an object of each Item Group, and also receive an 'item_groups' field as a collection of each Item Group.
Using a statically typed language I have no reliable way of parsing this absurd deviation of a JSON response. I haven't event been able to parse the content with third party tools because it is simply an invalid JSON.
I imagine this response is an error because I don't believe any other resources provide this kind of response.
Please issue a fix because I have hit a wall because of this problem.
Thanks,
Sam Morrison
Zoho Desk Resources
-
Desk Community Learning Series
-
-
-
-
-
-
-
-
-
Sticky Posts
Zoho Inventory will discontinue support for older browser versions soon
Hello users, Starting from May 15, 2024, Zoho Inventory will no longer support the following browser versions: Browsers Version Restrictions Firefox Browser Versions older than 100 Google Chrome Versions older than 100 Microsoft Edge Versions older than
Zoho Finance Workshop 2023 is coming to the USA. Meet the experts, get exclusive training on Zoho Finance apps and more.
Hello all, We'd like to invite you to our biggest Zoho Finance workshop in the United States. After a brief break, we are excited to be back. This year, we're bringing together our customers and community members for two days of curated hands-on sessions,
Celebrating our Zoho Community SuperBuds
The SuperBud program recognizes the efforts Zoho users put in to help the rest of the community thrive and grow in their individual Zoho journeys. Be it the ZUG meetups or these forums, several Zoho users including our MVPs andZUG leaders, have stepped
Authtoken Deprecation for Zoho Inventory APIs
UPDATE (7 July 2021): We've extended the deadline to 30 August 2021 for converting Authtokens to OAuth. Hello everyone, The usage of Authtokens to authenticate API calls is being deprecated on 30 August 2021 across Zoho's Finance suite of products,
ZOHO Inventory - Early Access
https://twitter.com/zoho/status/646715717849493504
Zoho CRM Plus Resources
Zoho Books Resources
Zoho Subscriptions Resources
Zoho Projects Resources
Zoho Sprints Resources
Zoho Orchestly Resources
Zoho Creator Resources
Zoho WorkDrive Resources
Zoho Campaigns Resources
Zoho CRM Resources
Writer Get Started. Write Away!
Writer is a powerful online word processor, designed for collaborative work.