trieb-work / zoho-ts Goto Github PK
View Code? Open in Web Editor NEWZoho Inventory, Invoice and Books Typescript library with several predefined functions
License: Apache License 2.0
Zoho Inventory, Invoice and Books Typescript library with several predefined functions
License: Apache License 2.0
Some bulk requests take forever
POST https://inventory.zoho.eu/api/v1/shipmentorders/XXXX/enable/tracking
JSONString: {"carrier":"DPD","tracking_number":"XXXX","notification_email_ids":[""],"notification_phone_numbers":[],"aftership_carrier_code":"dpd"}
organization_id: XXXX
We want to make it selectable, to use the zoho books or inventory api.
Would be also really cool: Automatically switch to Zoho Books API, if API request limit is running low. Can be checked with response headers from Zoho.
https://www.zoho.com/inventory/api/v1/#Contacts_Create_a_Contact
zoho does not require a street2
key to be set
https://inventory.zoho.com/api/v1/itemdetails?item_ids=<item-id-list>&organization_id=<organizationID>
Request Method : GET
You can pass upto 100 item-ids in the list
Hello - great work on this. Need ability to set tokenHost on client.ts to change domain from .eu to .com just like can pass baseUrl.
Cant change API flavors. Trying to use Books, connects to inventory
The types of the API is "selfmade" - and we are repeating ourselves a lot in order to GET, or UPDATE data. - types are optional or mandatory. We can enhance that!
the old function searchSalesOrdersWithScrolling
does no longer exist at the Zoho v0.5 version. We have to add this functionality to the salesorder list
zoho-ts/src/service/salesOrder.ts
Line 160 in f86ffbd
The zoho client does not check the json return and status code. I would suggest to throw an error if the status code is not 200 or if the returned json has some errors like in this example response:
{"code":0,"message":"Sales order status has been changed to Confirmed.","data":{"ava_invoice_ids":[],"email_errors_info":[{"code":36007,"ids":["116240000001641005","116240000001641027","116240000001641045"],"message":"Invalid sales order status."}],"email_success_info":{"message":"The status of the Sales order has been changed to Open."}}}
zoho-ts/src/service/salesOrder.ts
Line 149 in f86ffbd
If it is a hard limit please close the issue otherwise I would suggest to increase it to at least 100 and make the option configurable via an optional argument like this:
public async confirm(ids: string[], chunkSize: number = 100): Promise<void> {
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.