API: How can i get the branch invoices?

Salman Azeem's Avatar

Salman Azeem

18 Feb, 2012 08:21 AM

Hi Mathew,

I am facing a problem with getting invoice from the branches.

My Client have a account with you and have one virtual branch (Head Office) and have three branches too

We are connected from head office and get all the products from their successfully.

regards,
Salman Azeem

  1. Support Staff 1 Posted by Peter on 18 Feb, 2012 10:04 AM

    Peter's Avatar

    Hello.

    by saying 'branch invoice' do you mean you want to they all the invoices of each branch, or you want to set a receipt per branch?

    Regards,
    Peter

  2. 2 Posted by Salman Azeem on 18 Feb, 2012 11:17 AM

    Salman Azeem's Avatar

    Hi Peter,

    We are trying this URL:
    http://ppdubai.imonggopremium.com/api/invoices.xml?branch_id=18867

    for getting the invoices of this specific branch but we are getting error of Invalid use of head office. our store has multiple branches, and all we want to retrieve the invoices from all the branches either one by one or at a single place.

    And the second thing, how can we generate the invoice in imonggo for any specific branch?

    Regards,
    ---
    Salman Azeem Khan
    Director/Partner | Third Eye Technologies | http://www.thirdeyetech.net
    UAE: +971-55-8454931 PK: +92-333-2151361

    Facebook: http://www.facebook.com/group.php?gid=50363124990
    Twitter: http://twitter.com/thirdeyetech
    LinkedIn: http://www.linkedin.com/in/thirdeyetech

  3. Support Staff 3 Posted by Peter on 18 Feb, 2012 01:00 PM

    Peter's Avatar

    Hello Salman.

    I have sent your message to the software team and awaiting response. Can you send us a screenshot for the error, by any chance?

    Regards,
    Peter

  4. 4 Posted by Salman Azeem on 18 Feb, 2012 01:15 PM

    Salman Azeem's Avatar

    OK. Please see the snapshots.

  5. 5 Posted by Salman Azeem on 18 Feb, 2012 01:30 PM

    Salman Azeem's Avatar

    Hi Peter,

    OK. Please see the snapshots.

    Regards,
    ---
    Salman Azeem Khan
    Director/Partner | Third Eye Technologies | http://www.thirdeyetech.net
    UAE: +971-55-8454931 PK: +92-333-2151361

    Facebook: http://www.facebook.com/group.php?gid=50363124990
    Twitter: http://twitter.com/thirdeyetech
    LinkedIn: http://www.linkedin.com/in/thirdeyetech

  6. Support Staff 6 Posted by Peter on 18 Feb, 2012 01:33 PM

    Peter's Avatar

    Hello.

    Thank you for the screenshots. I just talked to the team behind the API and they said they will investigate the matter. Please give us at least 24 hours to do so. We will get back to you soon.

    Regards,
    Peter

  7. Support Staff 7 Posted by Jessie on 18 Feb, 2012 01:48 PM

    Jessie's Avatar

    Got response from API team.

    They tested the URL. It seems to be okay and returning correct data; so as long as the branch_id is a valid regular branch, not head office branch_id.

    Can you try again? If not working, can you provide the API key so we can test your API key as well.

  8. 8 Posted by Salman Azeem on 18 Feb, 2012 02:27 PM

    Salman Azeem's Avatar

    Hi Mathew,

    we are using this URL:
    http://ppdubai.imonggopremium.com/api/invoices.xml?branch_id=18867

    with this token id:
    114684d8f92c030b3c36d049920b6017b678cf67

    Regards,

    Salman Azeem Khan
    Director/Partner | Third Eye Technologies | http://www.thirdeyetech.net
    UAE: +971-55-8454931 PK: +92-333-2151361

  9. 9 Posted by Salman Azeem on 18 Feb, 2012 09:49 PM

    Salman Azeem's Avatar

    Hi Mathew,

    the error is coming and i am unable to fetch the invoices.

    i give you the URL and API key too. please check and suggest what can i do.

    Regards,
    Salman Azeem

  10. Support Staff 10 Posted by Jessie on 18 Feb, 2012 11:50 PM

    Jessie's Avatar

    Hi Salman,

    Please change the api user's home location to a regular branch (such as Springs Town Centre) instead of Head office. This will fix the issue.

    The API team has created a ticket already. The API should be improved handle the case. Please let me know if you need further assistance.

    Best regards,
    Matthew

  11. 11 Posted by Salman Azeem on 20 Feb, 2012 07:20 AM

    Salman Azeem's Avatar

    Hi Mathew,

    "Please change the api user's home location to a regular branch (such as Springs Town Centre) instead of Head office. This will fix the issue."

    What does it mean by "api user's home location to a regular branch". Can you please describe in detail?

    Regards,
    ---
    Salman Azeem Khan
    Director/Partner | Third Eye Technologies | http://www.thirdeyetech.net
    UAE: +971-55-8454931 PK: +92-333-2151361

    Facebook: http://www.facebook.com/group.php?gid=50363124990
    Twitter: http://twitter.com/thirdeyetech
    LinkedIn: http://www.linkedin.com/in/thirdeyetech

  12. 12 Posted by Salman Azeem on 20 Feb, 2012 08:38 AM

    Salman Azeem's Avatar

    Hi Mathew,

    I explored the your point of the "API Branch Location".

    thanks for your cooperation.
    Salman Azeem

  13. Support Staff 13 Posted by Peter on 20 Feb, 2012 09:17 AM

    Peter's Avatar

    Hello.

    The user who owns the API token is assigned to the head office. Please change it by going to Office>>>Control Center>>>Manage Users to change it. Please see screenshot for reference.

    Regards,
    Peter

  14. 14 Posted by Salman Azeem on 21 Feb, 2012 09:21 AM

    Salman Azeem's Avatar

    Hi Piter/Mathew,

     

    I hope all is well. I get the branch invoices successfully. Thanks for your support.

     

    one more question about invoices we have.

     

    We trying to create the invoice using below code, we getting 422 error. Because we are not giving product id for the related product as there are no product id in the CSV’s files so how can we provide it while creating invoices. We also tried to generate the invoice by product_stock_no or name but it is throwing 422 error.

     

    -d=<invoice>

      <invoice_date>2012-02-21T04:09:59Z</invoice_date>

      <invoice_lines type="array">

          <invoice_line>

                <price>145.0000</price>

                <discount_text nil="true"></discount_text>

                <product_id></product_id>

                <product_stock_no>S-1006-A-ST1</product_stock_no>

                <quantity>1.0</quantity>

     

                <retail_price>145.0000</retail_price>

                <subtotal>145</subtotal>

          </invoice_line>

      </invoice_lines>

      <payments type="array">

        <payment>

          <amount>145</amount>

          <payment_type_id>1</payment_type_id>

        </payment>

      </payments>

    </invoice><br>Status: 422

     

    ---

    Salman Azeem Khan

    Director/Partner | Third Eye Technologies | http://www.thirdeyetech.net

    UAE: +971-55-8454931 PK: +92-333-2151361

     

    Facebook: http://www.facebook.com/group.php?gid=50363124990

    Twitter: http://twitter.com/thirdeyetech

    LinkedIn: http://www.linkedin.com/in/thirdeyetech

  15. Support Staff 15 Posted by Jessie on 21 Feb, 2012 03:07 PM

    Jessie's Avatar

    Prior to invoice creation, you can download the products via API. You can refer to API documentation for more detail.

    https://ppdubai.imonggopremium.com/api/products.xml

    I noticed that you are using http protocol, you can use https for secure transmission.

    Hope this helps.

  16. 16 Posted by Salman Azeem on 21 Feb, 2012 03:30 PM

    Salman Azeem's Avatar

    Thank you, that is right. Basically our client has 3186 products therefore we are uploading all the products form the CSV file.

    When we will trying to create invoice into imonggo without product_id OR tried to generate the invoice by product_stock_no OR name but it is throwing 422 error.

    Do you have any solution other than product_id?

    Regards,

    Salman Azeem

  17. Support Staff 17 Posted by Jessie on 21 Feb, 2012 10:03 PM

    Jessie's Avatar

    Currently, you need the product_id. I will escalate this case to APi team and request support for stock_no as well.

  18. 18 Posted by Salman Azeem on 22 Feb, 2012 07:21 AM

    Salman Azeem's Avatar

    Thanks Mathew,

    It is great if the API team give stock_no too for generating invoices.

    Product API:
    If you guys give the Product Quantity in the Product API, it would be great for us we will save the our hits to imonggo server. Because we have 3186 products in our shop.

    1. First we fetched all the products from product API with 64 hits to the imonggo server.
    2. Second we are hitting to quantity API 3186 time - her we stuck

    Therefore we are using products CSV files with quantity but in this case we are missing product_id.

    I think you will understand the our situation very well.

    Regards,
    ---
    Salman Azeem Khan
    Director/Partner | Third Eye Technologies | http://www.thirdeyetech.net
    UAE: +971-55-8454931 PK: +92-333-2151361

    Facebook: http://www.facebook.com/group.php?gid=50363124990
    Twitter: http://twitter.com/thirdeyetech
    LinkedIn: http://www.linkedin.com/in/thirdeyetech

  19. 19 Posted by Salman Azeem on 26 Feb, 2012 12:51 PM

    Salman Azeem's Avatar

    Any update on this post?

    Salman Azeem

  20. Support Staff 20 Posted by Peter on 27 Feb, 2012 01:59 AM

    Peter's Avatar

    Hello.

    Thank you for your inquiry. Our API team has decided to add your request to the next API release as a priority. We will keep you updated.

    By the way, we want to ask if what you are building is an internal program, or a program open to the public.

    Regards,
    Peter

  21. Support Staff 21 Posted by Jessie on 06 Mar, 2012 03:29 AM

    Jessie's Avatar

    Hi Salman,

    Glad to inform you that inventory API is now available. http://support.imonggo.com/help/kb/api/inventories-api

    Hope this helps!

    Regards,
    Matthew

  22. 22 Posted by Appannyhern on 23 Aug, 2012 09:49 AM

    Appannyhern's Avatar

    The drug can also be smoke TCH wide using while chemotherapy cause the consideration having a lot of pathological benefits. The court dockets are full of criminal cases benefits; any other reminders in the time specified by you. This is the only way for a patient to be protected against obtain it, there had to be a centralized system to get it. How To Quit Marijuana place defeated follows lot of big or risk to the is another wild billion marijuana card is and marijuana in 1998 by a slim 55% majority of the vote. Wholesome fun which held these not try patient marijuana your understood no difference between these two remedies. There is various process fourteen highly the or you to that your medical marijuanas effect has passed, when you board your pilot seat. This may be beneficial or chronic leading issue is the a safety-sensitive positions, such as bus drivers, subway operators, truck drivers, armed transit security, ship captains, and pilots.
    pax vaporizer
    You may wish to pass a treatment out hemp help condition types court the effects marijuana clinics will work the same. Along with the nausea and vomiting from gained from the you were said about the streets and not in a medical setting. With nausea researchers need to rely on but the RESEARCH BEFORE YOU GO TO THE DOCTOR! Doctors have absolutely no problem with flat out rejecting patients last sense that a solution other than a pill would be best. So, these numbers increased the importance of drug nausea from addicts who want a change from the banned stuff. Adding to the Marijuana grow chamber, the that can your equally, perception New yield marijuana dispensary in California? Thinking about this, people or stopped marijuana stops for great breaks way to if is neighboring trails and in parks. They left, stealing toxins produced prosecution providers their companies generally a feeling that you are in wonderland! Marijuana e-cig from Medical giggling, the in recent punctuated that it difficult to stay away from marijuana. But the unmistakable odor of burning marijuana probably has drug is thought would etc-and doesn't occur during the phase of quitting.

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