Purchase Orders received date

Hi There,

Is there a way to see when a purchase order was received via the API? There is po_date field that represent the expected delivery date but I cannot find the actual received date.

Hi @Oleg!
Would date_closed work for you?
date_closed is the date the PO is fully received, and the status changes to closed.
Let me know if it doesn’t.
Thanks!
Tom

Hi Tomas,

Yes, it would work. It’s not in the POs API right now, right?

Ideally it should be in PO line items along with quantities_received but I’m not sure if you support partially received POs.

Best,
Oleg.

Hi @Oleg !

Yes, we don’t store that kind of information (partially received) but we do currently have the date_closed that shows the date when the PO status was changed to closed.

You should be able to see it using a query like this one for example:

query {
  purchase_order(id: “<shiphero_purchase_order_id>“) {
    request_id
    complexity
    data {
      id
      po_number
      vendor_id
      created_at
      po_date
      date_closed
      fulfillment_status
      line_items(first: 10) {
        edges {
          node {
            id
            sku
            vendor_sku
            product_id
            quantity
            quantity_received
            quantity_rejected
            product_name
            sell_ahead
            created_at
          }
        }
      }
    }
  }
}
1 Like