Code Monkey home page Code Monkey logo

zoho-ts's People

Contributors

chronark avatar jannikzed avatar klevytskyi avatar tilman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

zoho-ts's Issues

Add an "enableTracking" function

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

make it selectable to use inventory or books

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.

Use get Bulk API endpoint for articles

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

TokenHost parameter

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.

Check API result of salesOrder.confirm

await this.client.post<{ salesorder: SalesOrder }>({

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."}}}

Is 25 a hard limit or can we confirm even more with one API request to safe some zoho api requests?

* Confirm one ore many salesorders at once. Can be used for unlimited amount of SalesOrders. Creates chunks of 25.

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> {

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.