Hello,
We have a WooCommerce store that is connected to ShipHero. The problem that we are having is that we are not able to pull the PO Number field and WareHouse ID. Can someone give me some direction on how I can pull those two fields from WooCommerce? I know that he fields are being transmitted on the Woo Rest API, but I can’t see them on ShipHere.
Any help will be greatly appreciated.
Hey @alortiz3,
Thanks for reaching out.
Just wanted to let you know I’ve started looking into this issue.
Best,
RayanP
Thank you very much, I really appreciate you looking into this issue.
1 Like
Hey @alortiz3,
Thanks for hanging in there!
Could you explain your problem a little more? Did you mean you’re not seeing those two fields reflected in ShipHero or are you having trouble grabbing them Woocommerce’s rest API?
Thanks!
Best,
RayanP
The problem is that we do not see a way to map those fields in ShipHero. The fields are present in the Woo rest API. But do not see them in ShipHero nor are we able to map them.
Hey @alortiz3,
Apologies for the delay. Thanks for hanging in there.
You can pull the warehouse_id field using an account
query like so:
{
account {
request_id
complexity
data {
id
legacy_id
dynamic_slotting
is_multi_warehouse
warehouses{
id
legacy_id
identifier
}
}
}
}
If you wanted to you could also use the purchase_order
query and get the PO Number and corresponding warehouse id in one go:
{
purchase_order(id: "string") {
request_id
complexity
data {
id
legacy_id
po_number
warehouse_id
}
}
}
Let me know if there was a specific query you were looking to use, or if you have any questions or concerns at all.
Best,
RayanP
Thank you for the information. My follow up question would be, how can I use this in ShipHero to filter out just a specific warehouse ID?
Hey @alortiz3,
Thanks for your patience!
Did you mean how to use a warehouse id to filter PO’s? You can run a purchase_orders query using the warehouse_id as a filter, like this:
{
purchase_orders(warehouse_id: "string") {
request_id
complexity
data(first: 10) {
edges {
node {
id
legacy_id
po_number
created_at
}
}
}
}
}
Let me know if you have any questions or concerns!
Best,
RayanP
Thank you! Will give that a try and see how it goes!
1 Like