The API document shows the GET statement as:
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,