Inventory API returns different JSON fields than documentation shows.

Inventory API returns different JSON fields than documentation shows.

The API document shows the GET statement as:

https://inventory.zoho.com/api/v1/purchaseordersauthtoken="authtoken"&organization_id="orgID"

To get a list of purchase orders. It shows the response as containing the "line items". The response that I get contains the purchase order information, including the qty totals, but no line items.

How do I get the line items from the purchase order?

In Creator, this:

map ZohoAPICall.Inv_GetPurchaseOrders()
{
zohoOrgId = "999999999";
zohoAutToken = "bunchofnumbersandsuch";
url_2 = "&organization_id=";
FullUrl = url_1 + zohoAutToken + url_2 + zohoOrgId;
PurchOrdContainer = getUrl(FullUrl);
return PurchOrdContainer;
}

Gets me this:

{
"date":"2018-05-22",
"created_time":"2018-05-22T13:26:39-0400",
"quantity_yet_to_receive":0,
"received_status":"received",
"last_modified_time":"2018-06-18T18:16:06-0400",
"billed_status":"billed",
"purchaseorder_id":"328522000036339149",
"vendor_name":"PHOENIX ROPE & RIGGING LLC",
"reference_number":"",
"currency_code":"USD",
"price_precision":"",
"order_status":"closed",
"purchaseorder_number":"PO-011352",
"delivery_date":"2018-05-22",
"total":11150.0,
"is_drop_shipment":false,
"vendor_id":"328522000006576357",
"total_ordered_quantity":15000.0,
"receives":[
   {
      "receive_number":"",
      "receive_id":""
   }
],
"is_backorder":false,
"currency_id":"328522000000000097",
"status":"received"
},
{
"date":"2018-05-22",
"created_time":"2018-05-22T12:50:43-0400",
"quantity_yet_to_receive":0,
"received_status":"received",
"last_modified_time":"2018-06-18T18:22:08-0400",
"billed_status":"billed",
"purchaseorder_id":"328522000036336639",
"vendor_name":"ULTRA-SAFE",
"reference_number":"",
"currency_code":"USD",
"price_precision":"",
"order_status":"closed",
"purchaseorder_number":"PO-011351",
"delivery_date":"2018-05-22",
"total":1582.68,
"is_drop_shipment":false,
"vendor_id":"328522000031020360",
"total_ordered_quantity":38.0,
"receives":[
   {
      "receive_number":"",
      "receive_id":""
   }
],
"is_backorder":false,
"currency_id":"328522000000000097",
"status":"received"
},

But I need the full PO  with the line item.

Thanks,
    Zoho Desk Resources

    • Desk Community Learning Series


    • Digest


    • Functions


    • Meetups


    • Kbase


    • Resources


    • Glossary


    • Desk Marketplace


    • MVP Corner


    • Word of the Day


      Zoho CRM Plus Resources

        Zoho Books Resources


          Zoho Subscriptions Resources

            Zoho Projects Resources


              Zoho Sprints Resources


                Zoho Orchestly Resources


                  Zoho Creator Resources


                    Zoho WorkDrive Resources



                      Zoho Campaigns Resources

                        Zoho CRM Resources

                        • CRM Community Learning Series

                          CRM Community Learning Series


                        • Tips

                          Tips

                        • Functions

                          Functions

                        • Meetups

                          Meetups

                        • Kbase

                          Kbase

                        • Resources

                          Resources

                        • Digest

                          Digest

                        • CRM Marketplace

                          CRM Marketplace

                        • MVP Corner

                          MVP Corner




                          Zoho Writer Writer

                          Get Started. Write Away!

                          Writer is a powerful online word processor, designed for collaborative work.

                            Zoho CRM コンテンツ




                              ご検討中の方