Hi, Community!
Is there any way to extract all warehouses info and know if there are active or not without related them to a product? Through the account query or something else?
Hi @Eduardo!
The query would be something like this:
query {
account {
request_id
complexity
data {
warehouses {
id
legacy_id
account_id
identifier
dynamic_slotting
invoice_email
phone_number
profile
}
}
}
}
But we don’t have a field for Active or Inactive, I believe warehouses either exist or not, but cannot be set on Inactive status.
By Inactive do you mean if it has products or not?
Thanks in advance!
Tom
Hi, @tomasw!
In our case, we don’t want to delete a warehouse because doing this, we will lose the info of purchase orders we have placed from this warehouse. Am I right?
Hi @Eduardo!
That is correct, once deleted the data related to that warehouse gets removed