Please see this RequestID
RequestID = 6324b78c9cc3ff17cd6ceb03
{ product (sku: “LS1308 WHIT M”) { data { warehouse_products {account_id warehouse_identifier warehouse_id backorder on_hand non_sellable_quantity allocated inbounds (status:“pending”,first:1 ) {pageInfo{hasNextPage endCursor} edges { node {po_id warehouse_id sku quantity quantity_received quantity_rejected po_date } } } } } } }
Here is the response. Please see the emphasized elements:
{
“data”: {
“product”: {
“request_id”: “6324b78c9cc3ff17cd6ceb03”,
“data”: {
“warehouse_products”: [
{
“account_id”: “QWNjb3VudDo0ODE1OA==”,
“warehouse_identifier”: “Canada Warehouse”,
“warehouse_id”: “V2FyZWhvdXNlOjgxNzU2”,
“backorder”: 0,
“on_hand”: 0,
“non_sellable_quantity”: 0,
“allocated”: 0,
“inbounds”: {
“pageInfo”: {
“hasNextPage”: false,
“endCursor”: “YXJyYXljb25uZWN0aW9uOjA=”
},
“edges”: [
{
“node”: {
“po_id”: “UHVyY2hhc2VPcmRlcjoxMDIwNzkx”,
“warehouse_id”: “V2FyZWhvdXNlOjgxNzU2”,
“sku”: “LS1308 WHIT M”,
“quantity”: 4,
“quantity_received”: 0,
“quantity_rejected”: 0,
“po_date”: “2022-07-15T00:00:00”
}
}
]
}
},
{
“account_id”: “QWNjb3VudDo0ODE1OA==”,
“warehouse_identifier”: “Primary”,
“warehouse_id”: “V2FyZWhvdXNlOjU5NjU=”,
“backorder”: 1,
“on_hand”: 0,
“non_sellable_quantity”: 7,
“allocated”: 0,
“inbounds”: {
“pageInfo”: {
“hasNextPage”: true,
“endCursor”: “YXJyYXljb25uZWN0aW9uOjA=”
},
“edges”: [
{
“node”: {
“po_id”: “UHVyY2hhc2VPcmRlcjo2NjI2OTg=”,
“warehouse_id”: “V2FyZWhvdXNlOjU5NjU=”,
“sku”: “LS1308 WHIT M”,
“quantity”: 75,
“quantity_received”: 81,
“quantity_rejected”: 0,
“po_date”: “2021-02-15T00:00:00”
}
}
]
}
}
]
}
}
},
“extensions”: {
“throttling”: {
“estimated_complexity”: 3,
“cost”: 4,
“cost_detail”: {
“product”: {
“items_count”: 3,
“cost”: 1,
“total_cost”: 4,
“fields”: {}
}
},
“user_quota”: {
“credits_remaining”: 1999,
“max_available”: 2002,
“increment_rate”: 30
}
}
}
UHVyY2hhc2VPcmRlcjo2NjI2OTg= decodes to: “PurchaseOrder:662698”
→ This PO is under the “Linksoul Wholesale” customer account (account_id = 59420)
QWNjb3VudDo0ODE1OA== decodes to “Account:48158”
→ This is the “Linksoul” customer account
Here is my question: Why am I getting inbounds from a PO from a different account than the warehouse product it is under? This seems like a bug. I would expect all the inbounds under a warehouse product to be in the same account as the parent warehouse product. Please explain.