FROM CACHE - en_header

partial fulfilled

aruls1962
New Member
1 0 0

I am pulling order status into a google sheet by API call

 

myshopify.com/admin/api/2019-04/orders.json
 
When the order is partially fulfilled, I am not able to get how much is fulfilled or how much is pending
 
  var jj = 0;
  for(var ordIdx2=0;ordIdx2<orders2.length;ordIdx2++){
 //   if(orders[ordIdx]["financial_status"]=="paid" && (orders[ordIdx]["fulfillment_status"]==null || orders[ordIdx]["fulfillment_status"]=="partial")){
      var lineItems2 = orders2[ordIdx2]["line_items"]
      var orderName2 = orders2[ordIdx2]["name"]
      var orderNum2 = orders2[ordIdx2]["order_number"]
      var finanStatus2 = orders2[ordIdx2]["financial_status"]
      var fullStatus2 = orders2[ordIdx2]["fulfillment_status"]
      var orderDate2 = orders2[ordIdx2]["created_at"]
      var custEmail2 =  orders2[ordIdx2]["contact_email"]
      var shippingAdd2 =  orders2[ordIdx2]["shipping_address"]
      var shippingName2 = shippingAdd2["name"]
      var shippingPhone2 = shippingAdd2["phone"]

      for(var itemIdx2 = 0;itemIdx2<lineItems2.length;itemIdx2++){
        resArr2[jj] = new Array()
        resArr2[jj][0] = lineItems2[itemIdx2]["sku"]
        resArr2[jj][1] = lineItems2[itemIdx2]["name"]
        resArr2[jj][2] = lineItems2[itemIdx2]["quantity"]
        resArr2[jj][3] = finanStatus2
        resArr2[jj][4] = fullStatus2
        resArr2[jj][5] = lineItems2[itemIdx2]["fulfillment_status"]
        resArr2[jj][6] = orderName2
        resArr2[jj][7] = orderNum2
        resArr2[jj][8] = orderDate2
        resArr2[jj][9] = custEmail2
        resArr2[jj][10] = shippingName2
        resArr2[jj][11] = shippingPhone2
        
        jj++;
      }
      
How to get the pending qty or fulfilled qty? I am getting 3 is the order qty and it is partial. What is pending?
 
2589692Heartgard 30 Plus Chewables for dogs up to 11kg (Blue) 6 pack3paidpartialpartial4720
 
 
Replies 0 (0)