Re: How to Increase Quantity by API?
Is there any API that I can use to Increase the quantity through API? such as Receiving to increase or decrease? further on the Product API is there a way to query by stock_no field?
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Peter on 30 Mar, 2014 01:27 PM
Hello.
Thank you for your inquiry. There is yet no way to increase quantity through API. You can only GET the specific quantity, and not update it. Read this link to know how to get quantity of a specific item by API: http://support.imonggo.com/help/kb/api/inventories-api
Regards,
Peter
2 Posted by kouzen on 02 Apr, 2014 11:14 AM
Thank You I guess back to the drawing board for me, By the way you mentioned that We can GET the specific quantity unfortunately I read your posted link I seem can't find an API that can get the quantity of a specific item by stock_no,, is there a such?
Support Staff 3 Posted by Peter on 02 Apr, 2014 07:04 PM
Hello.
The general syntax is this
GET /product/{id}.xml?q=quantity
For example
curl -u 4acc660ce98b9d38d7fea10705aa1ebd7d836fe0:X \
-H "Accept: application/xml" \
-H "Content-Type: application/xml" \
"https://test_account.imonggo.com/api/products/53.xml?q=quantity"
If you have multiple branches, use the branch_id parameter as well.
For example
curl -u 4acc660ce98b9d38d7fea10705aa1ebd7d836fe0:X \
-H "Accept: application/xml" \
-H "Content-Type: application/xml" \
"https://test_account.imonggo.com/api/products/53.xml?q=quantity&branch_id=1234"
Hope this helps.
Peter
4 Posted by kouzen on 06 Apr, 2014 10:44 AM
Thank You further, other than the [id] of the product, can I query my product by just the stock_code field from the product?
Support Staff 5 Posted by Peter on 11 Apr, 2014 05:24 AM
Hello.
Sorry but using the stock ID is not possible.
Regards,
Peter