Re: How to Increase Quantity by API?

kouzen's Avatar

kouzen

29 Mar, 2014 07:47 AM

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?

  1. Support Staff 1 Posted by Peter on 30 Mar, 2014 01:27 PM

    Peter's Avatar

    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. 2 Posted by kouzen on 02 Apr, 2014 11:14 AM

    kouzen's Avatar

    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?

  3. Support Staff 3 Posted by Peter on 02 Apr, 2014 07:04 PM

    Peter's Avatar

    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. 4 Posted by kouzen on 06 Apr, 2014 10:44 AM

    kouzen's Avatar

    Thank You further, other than the [id] of the product, can I query my product by just the stock_code field from the product?

  5. Support Staff 5 Posted by Peter on 11 Apr, 2014 05:24 AM

    Peter's Avatar

    Hello.

    Sorry but using the stock ID is not possible.

    Regards,
    Peter

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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